/* ==========================================================
   assets/agenzia.css  -  sito pubblico (blocco 15)
   Grafica "itinerario": testata a tutta larghezza nel colore
   dell'agenzia con il tracciato di viaggio tratteggiato, titoli
   larghi in Archivo espanso, date come timbri di viaggio.
   I colori dell'agenzia arrivano da branding_css_vars():
   --ag-brand, --ag-on-brand, --ag-brand-ink, --ag-brand-soft,
   --ag-brand-deep, --ag-accent, --ag-on-accent, --ag-accent-soft
   ========================================================== */

:root {
    --ag-brand: #0F4C5C;
    --ag-on-brand: #FFFFFF;
    --ag-brand-ink: #0F4C5C;
    --ag-brand-soft: #E7EEF0;
    --ag-brand-deep: #0A313C;
    --ag-accent: #F2A93B;
    --ag-on-accent: #13233A;
    --ag-accent-soft: #FDF0DC;

    --ag-ink: #13233A;
    --ag-muted: #556476;
    --ag-line: #DCE3E9;
    --ag-line-strong: #C3CED8;
    --ag-ground: #F3F6F8;
    --ag-paper: #FFFFFF;
    --ag-ok: #1E7A4C;
    --ag-warn-bg: #FFF4D6;
    --ag-warn-ink: #6B4A00;
    --ag-bad-bg: #FDE7E7;
    --ag-bad-ink: #8A1C1C;

    --ag-font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ag-r-sm: 8px;
    --ag-r: 14px;
    --ag-r-lg: 22px;
    --ag-shadow: 0 1px 2px rgba(19, 35, 58, .06), 0 8px 24px -12px rgba(19, 35, 58, .18);
    --ag-shadow-lg: 0 2px 4px rgba(19, 35, 58, .06), 0 24px 48px -20px rgba(19, 35, 58, .35);
    --ag-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body.ag {
    margin: 0;
    font-family: var(--ag-font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ag-ink);
    background: var(--ag-ground);
    overflow-x: hidden;
}
body.ag img { max-width: 100%; }
body.ag a { color: var(--ag-brand-ink); }
body.ag :focus-visible { outline: 3px solid var(--ag-accent); outline-offset: 2px; border-radius: 4px; }
body.ag h1, body.ag h2, body.ag h3, body.ag h4 { font-family: var(--ag-font); line-height: 1.12; margin: 0; color: inherit; }

.ag-container { width: 100%; max-width: var(--ag-max); margin: 0 auto; padding: 0 20px; }
.ag-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ag-skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ag-ink); color: #fff !important; padding: 10px 14px; border-radius: var(--ag-r-sm); }
.ag-skip:focus { top: 12px; }
.ag-ico { flex: 0 0 auto; vertical-align: -3px; }

/* ---------- pulsanti ---------- */
.ag-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 18px;
    border: 2px solid transparent; border-radius: 999px;
    font: 700 15px/1.1 var(--ag-font); letter-spacing: .01em;
    text-decoration: none !important; cursor: pointer; white-space: nowrap;
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.ag-btn:hover { transform: translateY(-1px); }
.ag-btn:active { transform: none; }
.ag-btn[disabled], .ag-btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; }
.ag-btn-brand { background: var(--ag-brand); color: var(--ag-on-brand) !important; }
.ag-btn-brand:hover { background: var(--ag-brand-deep); color: #fff !important; }
.ag-btn-accent { background: var(--ag-accent); color: var(--ag-on-accent) !important; }
.ag-btn-accent:hover { box-shadow: 0 6px 16px -6px var(--ag-accent); }
.ag-btn-ghost { background: transparent; color: var(--ag-brand-ink) !important; border-color: var(--ag-line-strong); }
.ag-btn-ghost:hover { border-color: var(--ag-brand-ink); }
.ag-btn-light { background: #fff; color: var(--ag-ink) !important; }
.ag-btn-lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.ag-btn-block { width: 100%; }

/* ---------- testata ---------- */
.ag-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--ag-line);
}
.ag-header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.ag-brandmark { display: inline-flex; align-items: center; gap: 12px; min-width: 0; color: var(--ag-ink) !important; text-decoration: none !important; }
.ag-brandname { font-weight: 800; font-stretch: 112%; font-size: 18px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.ag-logo-img { height: 42px; width: auto; max-width: 140px; object-fit: contain; display: block; }
.ag-logo-mono {
    display: inline-grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px;
    border-radius: 12px; background: var(--ag-brand); color: var(--ag-on-brand);
    font-weight: 800; font-stretch: 125%; font-size: 16px; letter-spacing: .02em;
}
.ag-nav { display: flex; align-items: center; gap: 4px; }
.ag-nav a { padding: 10px 12px; border-radius: 999px; color: var(--ag-ink) !important; font-weight: 600; font-size: 15px; text-decoration: none !important; }
.ag-nav a:hover { background: var(--ag-ground); }
.ag-nav .ag-call, .ag-nav .ag-nav-cta {
    display: inline-flex; align-items: center; gap: 8px; margin-left: 6px;
    background: var(--ag-brand); color: var(--ag-on-brand) !important; padding: 10px 16px;
}
.ag-nav .ag-call:hover, .ag-nav .ag-nav-cta:hover { background: var(--ag-brand-deep); color: #fff !important; }
@media (max-width: 760px) {
    .ag-nav-wide { display: none; }
    .ag-header-in { min-height: 60px; }
    .ag-brandname { font-size: 16px; }
    .ag-logo-img { height: 36px; }
    .ag-logo-mono { width: 36px; height: 36px; flex-basis: 36px; font-size: 14px; }
    .ag-nav .ag-call span { display: none; }
    .ag-nav .ag-call { padding: 10px 12px; }
}

/* ---------- hero con tracciato ---------- */
.ag-hero {
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--ag-brand); color: var(--ag-on-brand);
    padding: 56px 0 64px;
}
.ag-hero.has-photo { background: var(--ag-brand-deep) var(--ag-hero-img) center / cover no-repeat; }
.ag-hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--ag-brand-deep) 20%, color-mix(in srgb, var(--ag-brand-deep) 55%, transparent) 75%); }
.ag-route { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.ag-route path { fill: none; stroke: var(--ag-accent); stroke-width: 2.5; stroke-dasharray: 2 12; stroke-linecap: round; opacity: .75; vector-effect: non-scaling-stroke; }
.ag-route circle { fill: var(--ag-accent); opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
    .ag-route path { animation: ag-route-in 2.4s ease-out both; stroke-dashoffset: 0; }
    @keyframes ag-route-in { from { opacity: 0; stroke-dashoffset: 280; } to { opacity: .75; stroke-dashoffset: 0; } }
}
.ag-hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.ag-hero-solo { grid-template-columns: minmax(0, 1fr); }
.ag-hero-tag { margin: 0 0 14px; font-weight: 600; font-size: 16px; opacity: .85; }
.ag-hero h1 {
    font-weight: 800; font-stretch: 125%;
    font-size: clamp(34px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -.025em;
    max-width: 15ch; text-wrap: balance;
}
.ag-hero-lead { margin: 18px 0 28px; font-size: 18px; line-height: 1.5; max-width: 52ch; opacity: .92; }

.ag-search {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px;
    background: var(--ag-paper); color: var(--ag-ink);
    padding: 12px; border-radius: var(--ag-r-lg); box-shadow: var(--ag-shadow-lg);
}
.ag-search-field { flex: 1 1 130px; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 4px 8px; }
.ag-search-wide { flex: 2 1 220px; }
.ag-search-field label { font-size: 12px; font-weight: 700; color: var(--ag-muted); }
.ag-search-field input, .ag-search-field select {
    width: 100%; min-height: 40px; border: 0; border-bottom: 2px solid var(--ag-line);
    background: transparent; font: 500 16px var(--ag-font); color: var(--ag-ink); padding: 4px 0; border-radius: 0;
}
.ag-search-field input:focus, .ag-search-field select:focus { outline: none; border-bottom-color: var(--ag-brand); }
.ag-search-go { flex: 0 0 auto; min-height: 52px; padding: 12px 22px; }
.ag-search-foot { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding: 0 8px 4px; font-size: 14px; color: var(--ag-muted); }
.ag-search-foot a { font-weight: 700; }

/* scheda "in evidenza" nel hero */
.ag-feature {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--ag-paper); color: var(--ag-ink) !important; text-decoration: none !important;
    border-radius: var(--ag-r-lg); box-shadow: var(--ag-shadow-lg);
    transform: rotate(1.2deg); transition: transform .25s ease;
}
.ag-feature:hover { transform: rotate(0) translateY(-3px); }
.ag-feature-media { aspect-ratio: 16 / 10; }
.ag-feature-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.ag-feature-label { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--ag-brand-ink); background: var(--ag-brand-soft); padding: 4px 10px; border-radius: 999px; }
.ag-feature-title { font-size: 22px; font-weight: 800; font-stretch: 110%; line-height: 1.15; }
.ag-feature-meta { display: flex; flex-direction: column; gap: 4px; color: var(--ag-muted); font-size: 15px; }
.ag-feature-meta > span { display: flex; gap: 8px; align-items: center; }
.ag-feature-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--ag-line-strong); }
.ag-feature-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ag-brand-ink); }
.ag-price-tag { font-weight: 800; font-size: 22px; font-stretch: 110%; }
.ag-price-tag small { font-size: 13px; font-weight: 500; color: var(--ag-muted); font-stretch: 100%; }

@media (max-width: 900px) {
    .ag-hero { padding: 36px 0 44px; }
    .ag-hero-in { grid-template-columns: 1fr; gap: 28px; }
    .ag-feature { transform: none; }
    .ag-hero-lead { font-size: 17px; margin-bottom: 22px; }
}
@media (max-width: 560px) {
    .ag-search { padding: 8px; border-radius: var(--ag-r); }
    .ag-search-field { flex-basis: calc(50% - 10px); }
    .ag-search-wide { flex-basis: 100%; }
    .ag-search-go { flex-basis: 100%; }
}

/* ---------- immagini: locandina su fondo sfocato ---------- */
.ag-media { position: relative; overflow: hidden; background: var(--ag-brand-soft); display: grid; place-items: center; }
.ag-media::before {
    content: ""; position: absolute; inset: -20px;
    background: var(--ag-img) center / cover no-repeat;
    filter: blur(22px) saturate(1.2); opacity: .75; transform: scale(1.1);
}
.ag-media img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.ag-media-empty { color: var(--ag-brand-ink); }
.ag-media-empty::before { display: none; }

/* timbro data */
.ag-stamp {
    position: absolute; left: 14px; top: 14px; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 64px; padding: 6px 0 8px; border-radius: 12px;
    background: var(--ag-paper); color: var(--ag-ink);
    border: 2px dashed var(--ag-brand); box-shadow: 0 6px 14px -6px rgba(19, 35, 58, .4);
    line-height: 1; transform: rotate(-4deg);
}
.ag-stamp-wd { font-size: 11px; font-weight: 700; color: var(--ag-muted); }
.ag-stamp-day { font-size: 26px; font-weight: 800; font-stretch: 115%; margin: 3px 0 2px; }
.ag-stamp-mon { font-size: 13px; font-weight: 700; color: var(--ag-brand-ink); }
.ag-stamp-lg { width: 82px; left: -12px; top: auto; bottom: 26px; }
.ag-stamp-lg .ag-stamp-day { font-size: 34px; }
.ag-flag {
    position: absolute; right: 12px; top: 12px; z-index: 2;
    background: var(--ag-accent); color: var(--ag-on-accent);
    font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px;
}
.ag-flag-inline { position: static; display: inline-block; margin-left: 8px; vertical-align: 2px; }

/* ---------- sezioni elenco ---------- */
.ag-section { padding: 56px 20px 24px; }
.ag-section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
.ag-section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; font-stretch: 120%; letter-spacing: -.02em; }
.ag-section-head p { margin: 0; color: var(--ag-muted); font-weight: 600; }
.ag-month { margin-top: 28px; }
.ag-month-title { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-size: 18px; font-weight: 700; color: var(--ag-brand-ink); }
.ag-month-title::after { content: ""; flex: 1; border-top: 2px dashed var(--ag-line-strong); }

.ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.ag-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--ag-paper); border-radius: var(--ag-r-lg);
    border: 1px solid var(--ag-line); box-shadow: var(--ag-shadow);
}
.ag-card.is-highlight { border-color: var(--ag-accent); box-shadow: 0 0 0 2px var(--ag-accent-soft), var(--ag-shadow); }
.ag-card-media { position: relative; display: block; }
.ag-card-media .ag-media { aspect-ratio: 4 / 3; }
.ag-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.ag-kicker { margin: 0; font-size: 13px; font-weight: 700; color: var(--ag-brand-ink); }
.ag-card-title { font-size: 21px; font-weight: 800; font-stretch: 108%; letter-spacing: -.01em; line-height: 1.18; }
.ag-card-title a { color: var(--ag-ink) !important; text-decoration: none; }
.ag-card-title a::after { content: ""; }
.ag-card-title a:hover { color: var(--ag-brand-ink) !important; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ag-card-sub { margin: 0; color: var(--ag-muted); font-size: 15px; }
.ag-card-org { margin: 0; font-size: 14px; font-weight: 600; }
.ag-meta { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--ag-muted); }
.ag-meta li { display: flex; gap: 8px; align-items: flex-start; }
.ag-meta .ag-ico { margin-top: 3px; color: var(--ag-brand-ink); }
.ag-chips, .ag-docs { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
    background: var(--ag-ground); border: 1px solid var(--ag-line); color: var(--ag-ink) !important; text-decoration: none !important;
}
a.ag-chip:hover { border-color: var(--ag-brand-ink); }
.ag-state { margin: 4px 0 0; font-size: 14px; font-weight: 700; padding: 8px 12px; border-radius: var(--ag-r-sm); }
.ag-state.is-wait { background: var(--ag-warn-bg); color: var(--ag-warn-ink); }
.ag-state.is-closed { background: var(--ag-bad-bg); color: var(--ag-bad-ink); }
.ag-card-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--ag-line-strong); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ag-price strong { font-size: 22px; font-weight: 800; font-stretch: 110%; }
.ag-price small { color: var(--ag-muted); font-size: 13px; }
.ag-price-none { font-size: 14px; color: var(--ag-muted); }

.ag-empty { margin-top: 24px; padding: 40px 24px; text-align: center; background: var(--ag-paper); border: 2px dashed var(--ag-line-strong); border-radius: var(--ag-r-lg); color: var(--ag-muted); }
.ag-empty .ag-ico { color: var(--ag-brand-ink); }
.ag-empty p { max-width: 50ch; margin: 12px auto 16px; font-size: 17px; }

/* ---------- come funziona: tappe sul tracciato ---------- */
.ag-how { padding: 48px 0 32px; }
.ag-how h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; font-stretch: 120%; letter-spacing: -.02em; margin-bottom: 28px; }
.ag-how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; counter-reset: step; }
.ag-how-steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 24px; border-top: 3px dotted var(--ag-accent); z-index: 0; }
.ag-how-steps li { position: relative; z-index: 1; counter-increment: step; }
.ag-how-dot { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--ag-brand); color: var(--ag-on-brand); box-shadow: 0 0 0 6px var(--ag-ground); margin-bottom: 14px; }
.ag-how-steps h3 { font-size: 19px; font-weight: 800; font-stretch: 108%; margin-bottom: 6px; }
.ag-how-steps h3::before { content: counter(step) ". "; color: var(--ag-brand-ink); }
.ag-how-steps p { margin: 0; color: var(--ag-muted); max-width: 34ch; }
@media (max-width: 760px) {
    .ag-how-steps { grid-template-columns: 1fr; gap: 22px; padding-left: 0; }
    .ag-how-steps::before { left: 24px; right: auto; top: 24px; bottom: 24px; border-top: 0; border-left: 3px dotted var(--ag-accent); }
    .ag-how-steps li { display: grid; grid-template-columns: 50px 1fr; column-gap: 16px; }
    .ag-how-dot { grid-row: span 2; margin: 0; }
}

/* ---------- prenotazione veloce ---------- */
.ag-quick-wrap { padding-top: 8px; padding-bottom: 24px; }
.ag-quick { background: var(--ag-paper); border: 1px solid var(--ag-line); border-radius: var(--ag-r-lg); box-shadow: var(--ag-shadow); }
.ag-quick > summary {
    list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 17px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ag-quick > summary::-webkit-details-marker { display: none; }
.ag-quick > summary > span { display: inline-flex; gap: 10px; align-items: center; }
.ag-quick > summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--ag-brand-ink); transition: transform .2s; }
.ag-quick[open] > summary::after { transform: rotate(45deg); }
.ag-quick-body { padding: 0 22px 22px; border-top: 1px solid var(--ag-line); }
.ag-quick-row { display: grid; grid-template-columns: minmax(0, 1fr) 180px 110px; gap: 12px; margin: 18px 0 6px; }
.ag-quick-row .ag-field-day[hidden] { display: none; }
.ag-quick-row:has(.ag-field-day[hidden]) { grid-template-columns: minmax(0, 1fr) 110px; }
@media (max-width: 640px) { .ag-quick-row, .ag-quick-row:has(.ag-field-day[hidden]) { grid-template-columns: 1fr; } }
.ag-quick-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 16px; }
.ag-note { margin: 0; font-size: 13px; color: var(--ag-muted); }

/* campi comuni */
.ag-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; min-width: 0; }
.ag-field label, .ag-private-form label { font-size: 14px; font-weight: 700; }
.ag input[type="text"], .ag input[type="email"], .ag input[type="tel"], .ag input[type="number"],
.ag input[type="password"], .ag input[type="date"], .ag select, .ag textarea {
    width: 100%; min-height: 46px; padding: 10px 12px;
    border: 1.5px solid var(--ag-line-strong); border-radius: 10px; background: #fff;
    font: 500 16px var(--ag-font); color: var(--ag-ink);
}
.ag .ag-search input, .ag .ag-search select { border: 0; border-bottom: 2px solid var(--ag-line); border-radius: 0; padding: 4px 0; min-height: 40px; }
.ag textarea { min-height: 90px; resize: vertical; }
.ag input:focus, .ag select:focus, .ag textarea:focus { outline: none; border-color: var(--ag-brand); box-shadow: 0 0 0 3px var(--ag-brand-soft); }
.ag input:disabled { background: var(--ag-ground); color: var(--ag-muted); }
.ag-check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; padding: 6px 0; }
.ag-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ag-brand); flex: 0 0 auto; }
.ag-check-rules { display: flex; margin: 10px 0 4px; padding: 12px 14px; background: var(--ag-ground); border-radius: 10px; }
.ag-check-rules a { font-weight: 700; }

.ag-people { display: flex; flex-direction: column; gap: 14px; margin: 12px 0; }
.ag-person { margin: 0; padding: 16px; border: 1.5px solid var(--ag-line); border-radius: var(--ag-r); background: var(--ag-ground); min-width: 0; }
.ag-person legend { padding: 0 8px; font-weight: 800; font-stretch: 110%; color: var(--ag-brand-ink); }
.ag-person-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
@media (max-width: 760px) { .ag-person-grid { grid-template-columns: 1fr; } }
.ag-opts { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.ag-opts-title { font-size: 14px; font-weight: 700; display: block; margin-bottom: 2px; }
.ag-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 14px; background: #fff; border: 1.5px solid var(--ag-line); border-radius: 10px; cursor: pointer; }
.ag-opt em { font-style: normal; font-weight: 700; color: var(--ag-brand-ink); }
.ag .ag-opt input[type="number"] { width: 76px; min-height: 40px; text-align: center; }
.ag-opt input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--ag-brand); }
.ag-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 8px; }
.ag .ag-inline input[type="text"] { max-width: 220px; }
.ag-diet { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.ag-diet .ag-opts-title { flex-basis: 100%; }
.ag .ag-allergy { flex: 1 1 180px; max-width: 280px; }

/* ---------- contatti ---------- */
.ag-contact-band { margin: 40px 0 8px; }
.ag-contact-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 32px; align-items: start; background: var(--ag-paper); border: 1px solid var(--ag-line); border-radius: var(--ag-r-lg); padding: 32px; box-shadow: var(--ag-shadow); }
.ag-contact-head h2 { font-size: clamp(24px, 2.8vw, 30px); font-weight: 800; font-stretch: 118%; letter-spacing: -.015em; }
.ag-contact-head p { margin: 10px 0 0; color: var(--ag-muted); }
.ag-contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ag-contact { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--ag-r); background: var(--ag-ground); color: var(--ag-ink) !important; text-decoration: none !important; border: 1.5px solid transparent; }
a.ag-contact:hover { border-color: var(--ag-brand-ink); background: #fff; }
.ag-contact-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--ag-brand); color: var(--ag-on-brand); }
.ag-contact-txt { display: flex; flex-direction: column; min-width: 0; }
.ag-contact-k { font-size: 13px; color: var(--ag-muted); font-weight: 600; }
.ag-contact-v { font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 860px) { .ag-contact-in { grid-template-columns: 1fr; padding: 22px; gap: 18px; } }
.ag-ev-content .ag-contact-band { margin-top: 32px; }
.ag-ev-content .ag-contact-in { grid-template-columns: 1fr; padding: 24px; gap: 16px; }

/* ---------- telegram ---------- */
.ag-telegram { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 24px 0 8px; padding: 22px 26px; border-radius: var(--ag-r-lg); background: var(--ag-ink); color: #fff; }
.ag-telegram > div { flex: 1 1 260px; }
.ag-telegram h2 { font-size: 20px; font-weight: 800; font-stretch: 110%; }
.ag-telegram p { margin: 4px 0 0; opacity: .8; }
.ag-telegram-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #229ED9; }

/* ---------- piede ---------- */
.ag-footer { margin-top: 56px; background: var(--ag-ink); color: rgba(255, 255, 255, .82); padding: 44px 0 24px; font-size: 15px; }
.ag-footer a { color: #fff !important; }
.ag-footer-cols { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 28px; }
.ag-footer-col { display: flex; flex-direction: column; gap: 6px; }
.ag-footer-col strong { color: #fff; margin-bottom: 4px; }
.ag-footer-col p { margin: 8px 0 0; }
.ag-brandmark-light { color: #fff !important; }
.ag-footer-social { display: flex; gap: 14px; margin-top: 10px; font-weight: 700; }
.ag-footer-credit { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; color: rgba(255, 255, 255, .6); }
@media (max-width: 860px) { .ag-footer-cols { grid-template-columns: 1fr 1fr; } .ag-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ag-footer-cols { grid-template-columns: 1fr; } }

/* ---------- avvisi e finestre ---------- */
.ag-toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 1000; transform: translate(-50%, 20px);
    max-width: min(560px, calc(100% - 32px)); padding: 14px 18px; border-radius: var(--ag-r);
    background: var(--ag-ink); color: #fff; font-weight: 600; box-shadow: var(--ag-shadow-lg);
    opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.ag-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ag-toast.error { background: var(--ag-bad-ink); }
.ag-modal-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(19, 35, 58, .55); }
.ag-modal { width: 100%; max-width: 440px; background: #fff; border-radius: var(--ag-r-lg); padding: 26px; box-shadow: var(--ag-shadow-lg); border-top: 6px solid var(--ag-brand); }
.ag-modal h2 { font-size: 22px; font-weight: 800; font-stretch: 112%; }
.ag-modal p { margin: 10px 0 20px; color: var(--ag-muted); }
.ag-modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

.ag-empty-page { min-height: 70vh; display: grid; place-items: center; padding-top: 48px; padding-bottom: 48px; }
.ag-empty-card { max-width: 520px; text-align: center; background: #fff; border-radius: var(--ag-r-lg); padding: 40px 32px; box-shadow: var(--ag-shadow); border: 1px solid var(--ag-line); }
.ag-empty-card > .ag-ico { color: var(--ag-brand-ink); }
.ag-empty-card h1 { font-size: 28px; font-weight: 800; font-stretch: 115%; margin: 14px 0 10px; }
.ag-empty-card p { color: var(--ag-muted); margin: 0 0 22px; }
.ag-private-form { text-align: left; display: flex; flex-direction: column; gap: 10px; }
.ag-field-error { margin: 0; color: var(--ag-bad-ink); font-weight: 700; }

/* ---------- portale: elenco agenzie ---------- */
.ag-hero-portal { padding: 72px 0 80px; }
.ag-hero-portal h1 { max-width: 18ch; }
.ag-agency-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin-top: 24px; }
.ag-agency { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--ag-line); border-radius: var(--ag-r-lg); box-shadow: var(--ag-shadow); color: var(--ag-ink) !important; text-decoration: none !important; transition: transform .2s; }
.ag-agency:hover { transform: translateY(-3px); }
.ag-agency-top { display: grid; place-items: center; height: 120px; background: var(--c-brand); position: relative; }
.ag-agency-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-bottom: 4px dotted var(--c-accent); }
.ag-agency-top img { max-height: 76px; max-width: 70%; object-fit: contain; background: #fff; padding: 8px 12px; border-radius: 12px; }
.ag-agency-mono { font-size: 34px; font-weight: 800; font-stretch: 125%; color: var(--c-on); }
.ag-agency-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.ag-agency-body strong { font-size: 20px; font-weight: 800; font-stretch: 110%; }
.ag-agency-tag { color: var(--ag-muted); }
.ag-agency-next { font-size: 14px; display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; }
.ag-agency-foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ag-muted); border-top: 1px dashed var(--ag-line-strong); }
.ag-agency-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ag-ink); }

/* ==========================================================
   SCHEDA EVENTO
   ========================================================== */
.ag-ev-hero { background: var(--ag-paper); border-bottom: 1px solid var(--ag-line); padding: 18px 0 44px; position: relative; }
.ag-ev-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 52%; background: var(--ag-brand-soft); z-index: 0; }
.ag-ev-hero > .ag-container { position: relative; z-index: 1; }
.ag-crumb { margin-bottom: 18px; }
.ag-crumb a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; text-decoration: none; padding: 8px 0; }
.ag-crumb a:hover { text-decoration: underline; }
.ag-ev-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 44px; align-items: start; }
.ag-ev-poster { position: relative; }
.ag-ev-poster > a { display: block; }
.ag-ev-media { aspect-ratio: 4 / 5; max-height: 560px; width: 100%; border-radius: var(--ag-r-lg); box-shadow: var(--ag-shadow-lg); }
.ag-ev-head { padding-top: 8px; display: flex; flex-direction: column; gap: 14px; }
.ag-ev-title { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; font-stretch: 122%; letter-spacing: -.025em; line-height: 1.02; text-wrap: balance; }
.ag-ev-sub { margin: 0; font-size: 19px; color: var(--ag-muted); max-width: 48ch; }
.ag-facts { margin: 6px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1.5px solid var(--ag-line); border-radius: var(--ag-r); overflow: hidden; background: #fff; }
.ag-facts > div { padding: 12px 16px; border-bottom: 1px dashed var(--ag-line-strong); }
.ag-facts > div:nth-child(odd) { border-right: 1px dashed var(--ag-line-strong); }
.ag-facts > div:nth-last-child(-n+2):nth-child(odd), .ag-facts > div:last-child { border-bottom: 0; }
.ag-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.ag-facts dt { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ag-muted); }
.ag-facts dd { margin: 3px 0 0; font-weight: 700; font-size: 16px; }
.ag-ev-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 6px; }
.ag-ev-price { margin: 0; }
.ag-ev-price strong { font-size: 34px; font-weight: 800; font-stretch: 115%; letter-spacing: -.02em; }
.ag-ev-price span { color: var(--ag-muted); }
@media (max-width: 900px) {
    .ag-ev-grid { grid-template-columns: 1fr; gap: 26px; }
    .ag-ev-media { aspect-ratio: 4 / 3; }
    .ag-stamp-lg { left: 12px; top: 12px; bottom: auto; width: 70px; }
    .ag-ev-hero::before { height: 28%; }
}
@media (max-width: 480px) { .ag-facts { grid-template-columns: 1fr; } .ag-facts > div:nth-child(odd) { border-right: 0; } .ag-facts > div { border-bottom: 1px dashed var(--ag-line-strong) !important; } .ag-facts > div:last-child { border-bottom: 0 !important; } }

.ag-ev-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: start; padding-top: 40px; }
.ag-ev-content > h2, .ag-book-card h2 { margin-top: 0; font-size: 26px; font-weight: 800; font-stretch: 118%; letter-spacing: -.015em; margin-bottom: 14px; }
.ag-prose { font-size: 17px; line-height: 1.7; max-width: 70ch; }
.ag-sections { margin-top: 24px; }
.ag-sections > div { border-radius: var(--ag-r) !important; }
.ag-note-box { margin-top: 18px; padding: 16px 18px; border-radius: var(--ag-r); }
.ag-ev-book { position: sticky; top: 88px; }
.ag-book-card { background: #fff; border: 1px solid var(--ag-line); border-top: 6px solid var(--ag-brand); border-radius: var(--ag-r-lg); padding: 24px; box-shadow: var(--ag-shadow-lg); }
.ag-book-card h2 + form, .ag-book-card .ag-alert + form { margin-top: 16px; }
.ag-book-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.ag-alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 15px; }
.ag-alert.is-wait { background: var(--ag-warn-bg); color: var(--ag-warn-ink); }
.ag-alert.is-closed { background: var(--ag-bad-bg); color: var(--ag-bad-ink); }
@media (max-width: 1000px) {
    .ag-ev-layout { grid-template-columns: 1fr; }
    .ag-ev-book { position: static; }
}

/* campi generati dallo script della scheda (stessi nomi di prima) */
.ag-event .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.ag-event .field > label { font-size: 14px; font-weight: 700; }
.ag-event .field-check { margin-bottom: 4px; }
.ag-event .field-check > label { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; font-size: 15px; }
.ag-event .field-check input { width: 20px; height: 20px; accent-color: var(--ag-brand); margin: 0; }
.ag-field-static { font-weight: 800; font-size: 17px; }
.ag-event .person-block { margin: 14px 0; padding: 16px; background: var(--ag-ground); border: 1.5px solid var(--ag-line); border-radius: var(--ag-r); }
.ag-event .person-title { font-weight: 800; font-stretch: 112%; font-size: 17px; color: var(--ag-brand-ink); margin-bottom: 10px; }
.ag-event .menu-flags { display: flex; flex-direction: column; gap: 6px; }
.ag-event .cat-title { font-size: 13px; font-weight: 700; color: var(--ag-muted); margin-top: 6px; }
.ag-event .opt-radio { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 14px; background: #fff; border: 1.5px solid var(--ag-line); border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 500; }
.ag-event .opt-radio:has(input:checked) { border-color: var(--ag-brand); }
.ag-event .opt-radio input[type="radio"], .ag-event .opt-radio input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--ag-brand); margin: 0; flex: 0 0 auto; }
.ag-event .opt-radio input[type="number"] { width: 76px !important; min-height: 40px; text-align: center; flex: 0 0 auto; }
.ag-event .ag-addon-field > label { color: var(--ag-muted); }
.ag-total { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; margin: 16px 0 12px; padding: 14px 16px; border-radius: var(--ag-r); background: var(--ag-accent-soft); border: 1.5px dashed var(--ag-accent); }
.ag-total[hidden] { display: none; }
.ag-total span { font-weight: 700; }
.ag-total strong { font-size: 24px; font-weight: 800; font-stretch: 112%; }
.ag-total small { grid-column: 1 / -1; color: var(--ag-muted); font-size: 13px; }
.ag-event .form-actions { margin: 14px 0 10px; }

/* barra in basso su telefono */
.ag-mobile-bar { display: none; }
@media (max-width: 1000px) {
    .ag-mobile-bar {
        position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--ag-ink); color: #fff;
        box-shadow: var(--ag-shadow-lg); transition: transform .25s, opacity .25s;
    }
    .ag-mobile-bar strong { font-size: 19px; }
    .ag-mobile-bar > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ag-mobile-bar.is-hidden { transform: translateY(140%); opacity: 0; }
    .ag-event .ag-footer { padding-bottom: 96px; }
}

/* stampa */
@media print {
    .ag-header, .ag-mobile-bar, .ag-ev-book, .ag-telegram, .ag-route, .ag-footer { display: none !important; }
    body.ag { background: #fff; }
}

/* ---- Blocco 16: landing agenzia personalizzabile ---- */
.ag-about { padding: 48px 0 16px; }
.ag-about-in { display: grid; gap: 36px; align-items: center; }
.ag-about-in.has-img { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.ag-about-img { margin: 0; border-radius: var(--ag-r-lg); overflow: hidden; box-shadow: var(--ag-shadow); aspect-ratio: 4 / 3; background: var(--ag-brand-soft); }
.ag-about-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-about-text h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; font-stretch: 120%; letter-spacing: -.02em; margin-bottom: 14px; }
.ag-about-text h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--ag-accent); margin-top: 12px; }
.ag-prose { font-size: 17px; line-height: 1.65; color: var(--ag-ink); max-width: 62ch; }
.ag-feats { padding: 40px 0 16px; }
.ag-feats h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; font-stretch: 118%; letter-spacing: -.02em; margin-bottom: 22px; }
.ag-feats-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ag-feats-grid li { background: var(--ag-paper); border: 1px solid var(--ag-line); border-radius: var(--ag-r-lg); padding: 22px; box-shadow: var(--ag-shadow); }
.ag-feat-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ag-brand-soft); color: var(--ag-brand-ink); margin-bottom: 12px; }
.ag-feats-grid h3 { font-size: 18px; font-weight: 800; font-stretch: 108%; margin-bottom: 6px; }
.ag-feats-grid p { margin: 0; color: var(--ag-muted); }
.ag-map { margin-top: 18px; border-radius: var(--ag-r); overflow: hidden; border: 1px solid var(--ag-line); aspect-ratio: 16 / 10; background: var(--ag-ground); }
.ag-map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 820px) {
    .ag-about-in.has-img { grid-template-columns: 1fr; }
}

/* ---- Blocco 16: presentazione del portale per le agenzie ---- */
.ag-lp-hero { padding: 64px 0 84px; }
.ag-lp-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.ag-lp-hero h1 { max-width: 16ch; }
.ag-lp-kicker { display: inline-block; margin: 0 0 16px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--ag-accent) 22%, transparent); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .01em; }
.ag-lp-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ag-lp-ghost { color: #fff !important; border-color: rgba(255,255,255,.45); }
.ag-lp-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.ag-lp-mock { background: #fff; color: var(--ag-ink); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); overflow: hidden; transform: rotate(1.5deg); }
.ag-lp-mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #EEF1F2; }
.ag-lp-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #CBD3D6; }
.ag-lp-mock-bar em { font-style: normal; margin-left: 10px; font-size: 13px; color: var(--ag-muted); background: #fff; padding: 3px 10px; border-radius: 999px; }
.ag-lp-mock-body { padding: 14px; display: grid; gap: 10px; }
.ag-lp-mock-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--ag-line); border-radius: 12px; }
.ag-lp-mock-row strong { display: block; font-size: 15px; line-height: 1.25; }
.ag-lp-mock-row span { font-size: 13px; color: var(--ag-muted); }
.ag-lp-mock-row i { font-style: normal; font-weight: 800; font-size: 13px; padding: 4px 8px; border-radius: 8px; background: var(--ag-brand-soft); color: var(--ag-brand-ink); }
.ag-lp-mock-row i.full { background: #FDE7E4; color: #A12A1C; }
.ag-lp-stamp { display: grid; place-items: center; height: 54px; border-radius: 10px; background: var(--ag-brand); color: var(--ag-on-brand); font-size: 22px; font-weight: 800; line-height: 1; }
.ag-lp-stamp small { font-size: 11px; letter-spacing: .08em; font-weight: 700; color: var(--ag-accent); }
.ag-lp-mock-pay { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 700; color: #1F6B3A; background: #E5F4EA; border-radius: 10px; padding: 10px 12px; }
.ag-lp-section { padding-top: 64px; padding-bottom: 24px; }
.ag-lp-head { max-width: 760px; margin-bottom: 28px; }
.ag-lp-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; font-stretch: 120%; letter-spacing: -.02em; line-height: 1.1; }
.ag-lp-head p { margin: 12px 0 0; color: var(--ag-muted); font-size: 18px; }
.ag-lp-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.ag-lp-feats li { background: var(--ag-paper); border: 1px solid var(--ag-line); border-radius: var(--ag-r-lg); padding: 24px; box-shadow: var(--ag-shadow); transition: transform .2s, border-color .2s; }
.ag-lp-feats li:hover { transform: translateY(-3px); border-color: var(--ag-brand-ink); }
.ag-lp-feats h3 { font-size: 19px; font-weight: 800; font-stretch: 108%; margin-bottom: 6px; }
.ag-lp-feats p { margin: 0; color: var(--ag-muted); }
.ag-lp-steps-wrap { margin: 56px 0 24px; padding: 56px 0; background: var(--ag-brand-soft); }
.ag-lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ag-lp-steps li { background: var(--ag-paper); border-radius: var(--ag-r-lg); padding: 26px; position: relative; }
.ag-lp-steps li > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ag-accent); color: var(--ag-on-accent); font-weight: 800; font-size: 20px; margin-bottom: 14px; }
.ag-lp-steps h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.ag-lp-steps p { margin: 0; color: var(--ag-muted); }
.ag-lp-final { margin: 56px 0 48px; padding: 40px; border-radius: var(--ag-r-lg); background: var(--ag-brand-deep); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.ag-lp-final h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; font-stretch: 118%; color: #fff; }
.ag-lp-final p { margin: 8px 0 0; opacity: .85; max-width: 52ch; }
.ag-lp-final-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.ag-lp-light { background: #fff; color: var(--ag-brand-deep) !important; }
@media (max-width: 880px) {
    .ag-lp-hero-in, .ag-lp-final { grid-template-columns: 1fr; }
    .ag-lp-mock { transform: none; }
    .ag-lp-steps { grid-template-columns: 1fr; }
    .ag-lp-final-actions { justify-content: flex-start; }
    .ag-lp-final { padding: 28px; }
}

/* ---- Blocco 17: liberatoria nel modulo di prenotazione ---- */
.ag-waiver { margin: 14px 0 4px; border: 1.5px solid var(--ag-line); border-radius: var(--ag-r); background: var(--ag-ground); }
.ag-waiver summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; font-weight: 700; color: var(--ag-brand-ink); list-style: none; }
.ag-waiver summary::-webkit-details-marker { display: none; }
.ag-waiver summary::after { content: "+"; margin-left: auto; font-size: 20px; line-height: 1; }
.ag-waiver[open] summary::after { content: "\2212"; }
.ag-waiver-text { max-height: 260px; overflow: auto; padding: 0 14px 14px; font-size: 14px; line-height: 1.55; color: var(--ag-ink); }
.ag-waiver-text:focus { outline: 2px solid var(--ag-brand-ink); outline-offset: -2px; }
