/* Parrocchia Santi Filippo e Giacomo – Zammarò
   Palette: bianco, oro, rosso. Font self-hosted (nessuna chiamata a Google). */

@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/fonts/source-sans-3-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/fonts/source-sans-3-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/fonts/source-sans-3-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --rosso: #8e1b1b;
  --rosso-scuro: #6b1212;
  --rosso-chiaro: #f6ecea;
  --oro: #b8913a;
  --oro-chiaro: #d9bf7f;
  --oro-testo: #8a6a22;      /* oro leggibile su bianco */
  --oro-velo: #faf5e8;
  --bianco: #ffffff;
  --avorio: #fdfbf6;
  --inchiostro: #2b2421;
  --grigio: #6b625c;
  --bordo: #e9e1d2;
  --ombra: 0 1px 2px rgba(60, 40, 20, .06), 0 8px 24px rgba(60, 40, 20, .07);
  --raggio: 6px;
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--inchiostro); background: var(--bianco); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rosso); text-underline-offset: .15em; }
a:hover { color: var(--rosso-scuro); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--inchiostro); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--rosso); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.stretto { width: min(780px, 100% - 32px); }
.mt { margin-top: 2.5rem; }

/* Ornamento: piccola croce dorata tra due linee */
.ornament { display: flex; align-items: center; gap: .75rem; justify-content: center; color: var(--oro); margin-bottom: .75rem; }
.ornament::before, .ornament::after { content: ''; height: 1px; width: 48px; background: currentColor; }
.ornament { --croce: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath d='M5 0h2v4h5v2H7v10H5V6H0V4h5z' fill='%23b8913a'/%3E%3C/svg%3E"); }
.ornament { background: var(--croce) center / 12px 16px no-repeat; min-height: 16px; gap: 1.6rem; }

/* Barra superiore */
.topbar { background: var(--rosso); color: #f3e3d3; font-size: .875rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar-in { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; flex-wrap: wrap; }

/* Intestazione */
.site-header { background: var(--bianco); border-bottom: 1px solid var(--bordo); position: sticky; top: 0; z-index: 50; }
.site-header::after { content: ''; display: block; height: 3px; background: linear-gradient(90deg, var(--oro), var(--oro-chiaro), var(--oro)); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--inchiostro); }
.logo-mark { width: 52px; height: 52px; color: var(--oro); flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt small { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--rosso); font-size: 1rem; }
.brand-txt strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; letter-spacing: .02em; }
.brand-txt em { font-style: normal; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--oro-testo); font-weight: 600; }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: .25rem; }
.nav a { display: block; padding: .55rem .8rem; text-decoration: none; color: var(--inchiostro); font-weight: 600; font-size: .95rem; border-radius: var(--raggio); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--rosso); background: var(--oro-velo); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--oro); border-radius: var(--raggio) var(--raggio) 0 0; }
.has-sub { position: relative; }
.has-sub > a::after { content: ' ▾'; font-size: .75em; color: var(--oro); }
.sub { position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border: 1px solid var(--bordo); border-top: 3px solid var(--oro); box-shadow: var(--ombra); padding: .4rem; display: none; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { font-weight: 400; }
.nav-toggle { display: none; background: none; border: 1px solid var(--bordo); border-radius: var(--raggio); width: 44px; height: 44px; padding: 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span:not(.sr) { display: block; height: 2px; background: var(--rosso); }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 3px solid var(--oro); box-shadow: var(--ombra); display: none; max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav.aperto { display: block; }
  .nav > ul { flex-direction: column; padding: .5rem 16px 1rem; }
  .sub { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 1rem; min-width: 0; }
  .has-sub > a::after { content: ''; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--oro); border-radius: 0; }
  .topbar-r { display: none; }
}

/* Galleria home: striscia alta */
.galleria { position: relative; height: clamp(230px, 34vh, 320px); background: var(--inchiostro); overflow: hidden; }
.slides, .slide { position: absolute; inset: 0; margin: 0; }
.slide { opacity: 0; transition: opacity 1.2s ease; }
.slide.attiva { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption { position: absolute; right: 12px; top: 12px; background: rgba(0, 0, 0, .45); color: #fff; font-size: .85rem; padding: .25rem .6rem; border-radius: 3px; z-index: 3; }
.slide-ph { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 50% 30%, rgba(217, 191, 127, .35), transparent 60%),
  repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 14px),
  linear-gradient(160deg, var(--rosso) 0%, var(--rosso-scuro) 60%, #3d0a0a 100%); }
.galleria::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(30, 10, 5, .65) 100%); z-index: 1; pointer-events: none; }
.galleria-testo { position: absolute; left: 0; right: 0; bottom: clamp(1.75rem, 4vh, 2.5rem); z-index: 2; text-align: center; color: #fff; }
.galleria-testo h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.4); margin-bottom: .25rem; }
.galleria-testo p { font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--oro-chiaro); margin: 0; }
.galleria .ornament { margin-bottom: .4rem; }
.galleria .ornament { color: var(--oro-chiaro); }
.sl-prev, .sl-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.25); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.sl-prev { left: 16px; } .sl-next { right: 16px; }
.sl-prev:hover, .sl-next:hover { background: var(--rosso); border-color: var(--oro); }
.sl-dots { position: absolute; z-index: 3; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.sl-dots button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.sl-dots button[aria-current="true"] { background: var(--oro-chiaro); border-color: var(--oro-chiaro); }
@media (max-width: 640px) { .sl-prev, .sl-next { display: none; } }

/* Intestazione pagine interne */
.page-hero { background: linear-gradient(160deg, var(--rosso) 0%, var(--rosso-scuro) 100%); color: #fff; text-align: center; padding: clamp(2.5rem, 7vw, 4.5rem) 0; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px); }
.page-hero.has-img { background: var(--inchiostro) var(--hero) center / cover no-repeat; }
.page-hero.has-img::before { background: linear-gradient(180deg, rgba(40,10,5,.45), rgba(40,10,5,.75)); }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: .25rem; }
.page-hero p { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--oro-chiaro); margin: 0; }
.page-hero .ornament { color: var(--oro-chiaro); }

/* Sezioni */
.sezione { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.sezione-alt { background: var(--avorio); border-block: 1px solid var(--bordo); }
.sez-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; border-bottom: 1px solid var(--bordo); }
.sez-head h2 { margin-bottom: .4rem; position: relative; }
.sez-head h2::after { content: ''; position: absolute; left: 0; bottom: -.45rem; width: 64px; height: 3px; background: var(--oro); }
.link-freccia { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-freccia::after { content: ' →'; color: var(--oro); }
.link-freccia.indietro::after { content: ''; }
.link-freccia.indietro::before { content: '← '; color: var(--oro); }
.vuoto { color: var(--grigio); font-style: italic; }
.meta { color: var(--grigio); font-size: .9rem; margin-bottom: .4rem; }
.nota { color: var(--grigio); font-size: .92rem; }
.tag { display: inline-block; background: var(--rosso-chiaro); color: var(--rosso); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: .1rem .5rem; border-radius: 3px; margin-right: .35rem; }

/* Card articoli */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.75rem; }
.card { background: #fff; border: 1px solid var(--bordo); border-radius: var(--raggio); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--ombra); transform: translateY(-2px); }
.card-img { aspect-ratio: 16 / 10; display: block; overflow: hidden; background: var(--oro-velo); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--oro-velo), #f1e6cc); position: relative; }
.card-ph::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath d='M5 0h2v4h5v2H7v10H5V6H0V4h5z' fill='%23d9bf7f'/%3E%3C/svg%3E") center / 30px 40px no-repeat; }
.card-body { padding: 1.1rem 1.25rem 1.3rem; flex: 1; }
.card-body h3 { margin-bottom: .4rem; }
.card-body h3 a { color: var(--inchiostro); text-decoration: none; }
.card-body h3 a:hover { color: var(--rosso); }
.card-body p:last-child { margin: 0; color: var(--grigio); font-size: .97rem; }

/* Eventi */
.lista-eventi { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.evento { display: flex; gap: 1.1rem; align-items: center; background: #fff; border: 1px solid var(--bordo); border-left: 4px solid var(--oro); padding: .85rem 1.1rem; border-radius: var(--raggio); }
.evento h3 { margin: 0; font-size: 1.3rem; }
.evento h3 a { color: var(--inchiostro); text-decoration: none; }
.evento h3 a:hover { color: var(--rosso); }
.evento .meta { margin: 0; }
.ev-data { flex: none; width: 62px; text-align: center; background: var(--rosso); color: #fff; border-radius: var(--raggio); padding: .35rem 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; line-height: 1.2; }
.ev-data strong { display: block; font-family: var(--serif); font-size: 1.8rem; letter-spacing: 0; }
.passati .evento { opacity: .7; border-left-color: var(--bordo); }
.passati .ev-data { background: var(--grigio); }

/* Tre colonne: Liturgia | Calendario | Orari */
.tre-colonne { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 980px) { .tre-colonne { grid-template-columns: 1fr; } }
.box { border: 1px solid var(--bordo); border-top: 4px solid var(--rosso); border-radius: var(--raggio); padding: 1.4rem 1.5rem 1.6rem; background: #fff; display: flex; flex-direction: column; }
.box-titolo { font-size: 1.6rem; text-align: center; padding-bottom: .6rem; margin-bottom: 1rem; border-bottom: 1px solid var(--bordo); position: relative; }
.box-titolo::after { content: ''; position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); width: 40px; height: 3px; background: var(--oro); }
.btn-block { display: block; width: 100%; text-align: center; margin-top: auto; }

.liturgia { display: flex; flex-direction: column; flex: 1; }
.liturgia h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.lit-data::first-letter { text-transform: uppercase; }
.lit-data { color: var(--oro-testo); font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
.lit-tempo { font-size: .88rem; color: var(--grigio); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.lit-colore { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); background: var(--lit); display: inline-block; flex: none; }
.colore-verde { --lit: #2e7d32; } .colore-viola { --lit: #6a1b9a; } .colore-bianco { --lit: #fff; } .colore-rosso { --lit: #b71c1c; } .colore-rosaceo { --lit: #e8a1b8; }
.lit-letture { list-style: none; padding: 0; margin: 0 0 .75rem; font-size: .95rem; }
.lit-letture li { padding: .3rem 0; border-bottom: 1px dashed var(--bordo); }
.lit-letture span { font-weight: 700; color: var(--rosso); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin-right: .3rem; }
.lit-vangelo { margin: 0 0 1rem; font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.45; border-left: 3px solid var(--oro); padding-left: .9rem; color: var(--inchiostro); }
.lit-azioni { margin-top: auto; display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.lit-ore { margin-top: 2.5rem; padding: 1.5rem; border: 1px solid var(--oro-chiaro); border-top: 4px solid var(--oro); border-radius: var(--raggio); background: var(--oro-velo); text-align: center; }
.lit-ore h3 { color: var(--rosso); }
.lit-ore .nota { margin: .75rem 0 0; font-size: .85rem; }
.liturgia-pagina h2 { text-align: center; }
.liturgia-pagina .lit-tempo { justify-content: center; margin-bottom: 2rem; }
.lettura { border-top: 1px solid var(--bordo); padding-top: 1.5rem; margin-top: 1.5rem; }
.lettura h3 { color: var(--rosso); }
.lettura h3 small { color: var(--oro-testo); font-family: var(--sans); font-size: .9rem; font-weight: 600; margin-left: .4rem; }
.lettura-titolo { font-style: italic; color: var(--grigio); }
.fonte { margin-top: 2rem; font-size: .85rem; color: var(--grigio); text-align: center; }

.orari h3 { font-size: 1.2rem; color: var(--rosso); margin-bottom: .25rem; }
.orari p { margin-bottom: 1.2rem; }

/* Calendario */
.calendario { margin-bottom: 1.25rem; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.cal-head strong { font-family: var(--serif); font-size: 1.4rem; text-transform: capitalize; }
.cal-nav { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--bordo); border-radius: 50%; text-decoration: none; font-size: 1.3rem; }
.cal-nav:hover { background: var(--oro-velo); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { text-align: center; font-size: .75rem; font-weight: 700; color: var(--oro-testo); text-transform: uppercase; padding: .25rem 0; }
.cal-cell { min-height: 92px; border: 1px solid var(--bordo); border-radius: 4px; padding: .25rem .35rem; font-size: .8rem; background: #fff; overflow: hidden; }
.cal-cell.vuota { border: 0; background: transparent; }
.cal-cell.passata { background: #faf9f7; color: #aaa; }
.cal-cell.oggi { border-color: var(--rosso); box-shadow: inset 0 0 0 1px var(--rosso); }
.cal-cell.oggi .cal-num { background: var(--rosso); color: #fff; border-radius: 50%; width: 1.6em; height: 1.6em; display: inline-grid; place-items: center; }
.cal-cell.occupata { background: repeating-linear-gradient(135deg, #fff 0 6px, var(--rosso-chiaro) 6px 8px); }
.cal-num { font-weight: 700; }
.cal-ev { display: block; background: var(--oro-velo); border-left: 3px solid var(--oro); padding: 1px 4px; margin-top: 2px; text-decoration: none; color: var(--inchiostro); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 2px; }
.calendario.compatto .cal-cell { min-height: 0; aspect-ratio: 1; text-align: center; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; font-size: .85rem; }
.calendario.compatto .cal-head strong { font-size: 1.2rem; }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--oro); position: absolute; bottom: 4px; }
.calendario.compatto .con-eventi { background: var(--oro-velo); }
.cal-legenda { display: flex; gap: 1rem; font-size: .8rem; color: var(--grigio); margin-top: .6rem; flex-wrap: wrap; }
.cal-legenda i { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; border-radius: 2px; margin-right: 3px; }
.lg-ev { background: var(--oro-velo); border: 1px solid var(--oro); }
.lg-occ { background: repeating-linear-gradient(135deg, #fff 0 3px, var(--rosso-chiaro) 3px 5px); border: 1px solid var(--bordo); }
@media (max-width: 700px) {
  .calendario:not(.compatto) .cal-cell { min-height: 54px; font-size: .7rem; }
  .calendario:not(.compatto) .cal-ev { font-size: 0; height: 6px; padding: 0; border: 0; background: var(--oro); }
}

/* Bottoni */
.btn { display: inline-block; font: 600 1rem var(--sans); padding: .7rem 1.4rem; border-radius: var(--raggio); border: 1px solid transparent; text-decoration: none; cursor: pointer; text-align: center; transition: background .15s, color .15s; }
.btn-primario { background: var(--rosso); color: #fff; border-color: var(--rosso); }
.btn-primario:hover { background: var(--rosso-scuro); color: #fff; }
.btn-outline { background: #fff; color: var(--rosso); border-color: var(--oro); }
.btn-outline:hover { background: var(--oro-velo); }
.btn-pericolo { background: #fff; color: #a11; border-color: #e2b4b4; }
.btn-pericolo:hover { background: #fbeaea; }
.btn-sm { padding: .4rem .9rem; font-size: .9rem; }

/* Testo ricco */
.testo h2 { margin-top: 1.6em; color: var(--rosso); }
.testo h3 { margin-top: 1.4em; }
.testo blockquote { margin: 1.5em 0; padding: .5em 1.2em; border-left: 3px solid var(--oro); font-family: var(--serif); font-style: italic; font-size: 1.2rem; background: var(--oro-velo); }
.testo img { margin: 1.5em auto; border-radius: var(--raggio); }
.testo ul, .testo ol { padding-left: 1.4em; }
.testo li { margin-bottom: .35em; }
.testo table { border-collapse: collapse; width: 100%; }
.testo td, .testo th { border: 1px solid var(--bordo); padding: .4rem .6rem; }
.img-articolo { width: 100%; border-radius: var(--raggio); margin-bottom: 2rem; }

/* Filtri / paginazione */
.filtri { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.filtri a { padding: .35rem .9rem; border: 1px solid var(--bordo); border-radius: 999px; text-decoration: none; color: var(--inchiostro); font-size: .92rem; }
.filtri a[aria-current="page"] { background: var(--rosso); color: #fff; border-color: var(--rosso); }
.paginazione { display: flex; justify-content: space-between; margin-top: 2rem; }

/* Moduli */
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.form label small, .form .nota { font-weight: 400; }
.form input:not([type="checkbox"]):not([type="radio"]), .form textarea, .form select { font: inherit; font-weight: 400; padding: .65rem .8rem; border: 1px solid #d6cbb6; border-radius: var(--raggio); background: #fff; width: 100%; color: var(--inchiostro); }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--oro); outline: 2px solid var(--oro-chiaro); outline-offset: 0; }
.form fieldset { border: 1px solid var(--bordo); border-radius: var(--raggio); padding: 1.1rem 1.25rem 1.25rem; margin: 0; display: grid; gap: 1rem; background: var(--avorio); }
.form legend { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--rosso); padding: 0 .4rem; }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--rosso); flex: none; }
.riga2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.riga3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: end; }
@media (max-width: 640px) { .riga2, .riga3 { grid-template-columns: 1fr; } }
.radio-riga { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.label-gruppo { font-weight: 600; margin: 0; font-size: .95rem; }
.hp { position: absolute !important; left: -9999px !important; }
.esito-data { margin: -.4rem 0 0; font-size: .92rem; min-height: 1.4em; }
.esito-data.ok { color: #2e6b2e; } .esito-data.no { color: #a11; font-weight: 600; }

.alert { padding: .9rem 1.1rem; border-radius: var(--raggio); margin-bottom: 1.25rem; border: 1px solid; }
.alert ul { margin: 0; padding-left: 1.2em; }
.alert-ok { background: #eef6ee; border-color: #b9d9b9; color: #234d23; }
.alert-errore { background: #fbeaea; border-color: #e7b3b3; color: #7a1414; }
.alert-info { background: var(--oro-velo); border-color: var(--oro-chiaro); color: #5c4715; }
.info-box { background: var(--oro-velo); border: 1px solid var(--oro-chiaro); border-radius: var(--raggio); padding: 1.1rem 1.4rem; margin-bottom: 2rem; }
.info-box ul { margin: .25rem 0 1rem; }

.cta-box { margin-top: 3rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: var(--avorio); border: 1px solid var(--bordo); border-left: 4px solid var(--oro); padding: 1.5rem 1.75rem; border-radius: var(--raggio); }
.cta-box h2 { font-size: 1.6rem; margin-bottom: .25rem; }
.cta-box p { margin: 0; color: var(--grigio); }

.grid-scelte { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.scelta { display: block; border: 1px solid var(--bordo); border-top: 4px solid var(--oro); border-radius: var(--raggio); padding: 1.5rem; text-decoration: none; color: var(--inchiostro); transition: box-shadow .2s; }
.scelta:hover { box-shadow: var(--ombra); color: var(--inchiostro); }
.scelta-ico { font-size: 2rem; color: var(--rosso); }
.scelta p { color: var(--grigio); }

/* Gruppi */
.grid-gruppi { display: grid; gap: 1.5rem; }
.gruppo { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; border: 1px solid var(--bordo); border-radius: var(--raggio); padding: 1.25rem; background: #fff; }
.gruppo:not(:has(img)) { grid-template-columns: 1fr; }
.gruppo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--raggio); }
.gruppo h2 { font-size: 1.7rem; color: var(--rosso); }
@media (max-width: 700px) { .gruppo { grid-template-columns: 1fr; } }

/* Documenti */
.lista-doc { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .6rem; }
.lista-doc li { display: flex; gap: 1rem; align-items: center; border: 1px solid var(--bordo); border-radius: var(--raggio); padding: .75rem 1rem; }
.lista-doc a { font-weight: 600; text-decoration: none; }
.lista-doc p { margin: 0; color: var(--grigio); font-size: .92rem; }
.lista-doc small { color: var(--grigio); }
.doc-ico { flex: none; width: 46px; height: 54px; display: grid; place-items: center; background: var(--rosso); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 3px 12px 3px 3px; }

/* Contatti */
.due-colonne { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 860px) { .due-colonne { grid-template-columns: 1fr; } }
.contatto strong { color: var(--rosso); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.mappa { border: 1px solid var(--bordo); border-radius: var(--raggio); overflow: hidden; margin: 1.5rem 0 .75rem; aspect-ratio: 4 / 3; }
.mappa iframe { width: 100%; height: 100%; border: 0; }

/* Piè di pagina */
.site-footer { background: #241d1a; color: #d9cfc4; margin-top: 0; border-top: 4px solid var(--oro); }
.site-footer a { color: #f1e3c4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding: 3rem 0 2rem; }
.footer-grid h3 { color: var(--oro-chiaro); font-size: 1.3rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.footer-grid p { margin-bottom: .4rem; }
.footer-brand { display: flex; gap: .7rem; align-items: center; font-family: var(--serif); font-size: 1.3rem; color: #fff; margin-bottom: .75rem; }
.footer-brand .logo-mark { color: var(--oro-chiaro); width: 44px; height: 44px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; padding: 1rem 0; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .site-header, .site-footer, .galleria button { display: none; } }
.cal-scarica { margin: 1rem 0 0; text-align: right; }
