@font-face { font-family: "Inter"; src: url("caratteri/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("caratteri/inter-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("caratteri/inter-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
:root {
  /* Idea: il sito come il biglietto da visita. Fronte nero antracite con filetti oro, pagine bianche e avorio con l'angolo nero; titoli con grazie, motto in maiuscole spaziate. Gli spazi per le foto sono già impaginati. */
  --antracite: #1B1C21;
  --antracite-scuro: #141517;
  --bianco: #FFFFFF;
  --avorio: #F7F4EE;
  --inchiostro: #1E1F24;
  --grigio: #67645D;
  --linea: #E5DED0;
  --oro: #C9A35A;
  --oro-chiaro: #F3E2A8;
  --oro-testo: #85631F;
  --oro-metallo: linear-gradient(115deg, #9C7425 0%, #C9A35A 26%, #F3E2A8 50%, #C9A35A 74%, #A2761D 100%);
  --font-display: "Cormorant Garamond", Cormorant, Garamond, "EB Garamond", Baskerville, "Baskerville Old Face", "Hoefler Text", Georgia, serif;
  --font-testo: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--bianco); color: var(--inchiostro);
  font-family: var(--font-testo); font-size: 1.04rem; line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--antracite); margin: 0; text-wrap: balance; font-weight: 600; }
h1 { font-size: clamp(3rem, 6.2vw, 5.4rem); line-height: 0.98; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.3rem, 4.2vw, 3.4rem); line-height: 1.05; }
h3 { font-size: 1.55rem; line-height: 1.15; font-weight: 700; }
p { margin: 0; max-width: 64ch; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); position: relative; }
.sezione { position: relative; padding-block: clamp(80px, 10vw, 128px); overflow: hidden; background: var(--bianco); }
.sezione.avorio { background: var(--avorio); }
.sezione.nera { background: radial-gradient(ellipse at 30% 25%, #2A2B31 0%, var(--antracite) 50%, var(--antracite-scuro) 100%); color: #C9C5BC; }
.nera h2, .nera h3 { color: #FFFFFF; }

.filetto { display: flex; align-items: center; gap: 14px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--oro-testo); }
.filetto::before { content: ""; width: 40px; height: 1.5px; background: var(--oro); flex: none; }
.filetto-centro { justify-content: center; }
.filetto-centro::after { content: ""; width: 40px; height: 1.5px; background: var(--oro); flex: none; }
.nera .filetto, .testa .filetto, .testa-pagina .filetto { color: var(--oro); }

.intro { display: grid; gap: 16px; margin-bottom: clamp(44px, 5vw, 64px); max-width: 760px; }
.intro p { color: var(--grigio); font-size: 1.1rem; }
.intro-centro { margin-inline: auto; text-align: center; justify-items: center; }
.intro-riga { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.intro-riga > div { display: grid; gap: 16px; }
.due-colonne { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.allinea-centro { align-items: center; }
.blocco-testo { display: grid; gap: 20px; align-content: start; }
.blocco-testo > p { color: var(--grigio); }
.link-oro {
  justify-self: start; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; color: var(--antracite); padding-bottom: 6px; border-bottom: 1.5px solid var(--oro);
}
.link-oro:hover { color: var(--oro-testo); }
.nera .link-oro { color: #FFFFFF; }

/* Decorazioni del biglietto */
.righe { position: absolute; top: 0; right: 0; pointer-events: none; width: clamp(110px, 22vw, 340px); height: auto; }
.righe-basso { top: auto; right: auto; bottom: 0; left: 0; width: clamp(90px, 11vw, 150px); }
.angolo-retro { position: absolute; top: 0; right: 0; width: clamp(90px, 13vw, 200px); height: auto; pointer-events: none; }

/* Pulsanti */
.pulsanti { display: flex; flex-wrap: wrap; gap: 12px; }
.pulsanti-centro { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-testo); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; padding: 17px 26px; border-radius: 2px; border: 1.5px solid transparent;
  cursor: pointer; line-height: 1.2; transition: filter 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  position: relative; overflow: hidden;
}
.btn-oro { background: var(--oro-metallo); color: var(--antracite); box-shadow: 0 14px 34px -16px rgba(201, 163, 90, 0.8); }
.btn-oro:hover { filter: brightness(1.08); }
.btn-chiaro { border-color: rgba(243, 226, 168, 0.5); color: #FFFFFF; background: transparent; }
.btn-chiaro:hover { border-color: var(--oro-chiaro); background: rgba(243, 226, 168, 0.06); }

/* Barra alta e testata */
.barra-alta { background: #0E0F11; color: #A9A59C; font-size: 0.82rem; }
.barra-alta .wrap { display: flex; align-items: center; gap: 28px; min-height: 38px; }
.barra-alta span { margin-right: auto; }
.barra-alta a { text-decoration: none; }
.barra-alta a:hover { color: var(--oro-chiaro); }
.avanzamento { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--oro-metallo); transform-origin: left; transform: scaleX(var(--p, 0)); pointer-events: none; }
.testata { position: sticky; top: 0; z-index: 30; background: rgba(20, 21, 23, 0.96); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(201, 163, 90, 0.25); }
.testata > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.marchio { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.marchio img { height: 36px; width: auto; }
.marchio span { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: 0.06em; color: #FFFFFF; white-space: nowrap; }
.menu { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.voce { position: relative; display: block; padding: 29px 0; color: #D4D0C7; font-size: 0.76rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }
.voce:hover { color: #FFFFFF; }
.voce::after { content: ""; position: absolute; left: 0; right: 0; bottom: 21px; height: 1.5px; background: var(--oro); transform: scaleX(0); transition: transform 0.2s ease; }
.voce:hover::after, .voce[aria-current="page"]::after, .gruppo.attivo > .voce::after { transform: scaleX(1); }
.gruppo { position: relative; }
.gruppo > .voce { padding-right: 16px; }
.gruppo > .voce::before { content: ""; position: absolute; right: 0; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--oro); border-bottom: 1.5px solid var(--oro); transform: translateY(-75%) rotate(45deg); }
.sottomenu { position: absolute; top: 100%; left: -22px; min-width: 260px; background: var(--antracite); border-top: 2px solid var(--oro); padding: 10px 0; display: none; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.6); }
.gruppo:hover .sottomenu, .gruppo:focus-within .sottomenu { display: block; }
.sottomenu a { display: block; padding: 11px 22px; color: #D4D0C7; text-decoration: none; font-size: 0.95rem; }
.sottomenu a:hover, .sottomenu a[aria-current="page"] { color: var(--oro-chiaro); background: rgba(255, 255, 255, 0.04); }
.menu-preventivo { margin-left: 6px; padding: 14px 18px; box-shadow: none; }
.apri-menu { display: none; align-items: center; gap: 10px; background: none; border: 1px solid rgba(201, 163, 90, 0.5); color: #FFFFFF; padding: 10px 14px; border-radius: 2px; cursor: pointer; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.linee, .linee::before, .linee::after { display: block; width: 18px; height: 1.5px; background: var(--oro); position: relative; }
.linee::before, .linee::after { content: ""; position: absolute; left: 0; }
.linee::before { top: -6px; }
.linee::after { top: 6px; }

/* Apertura della home e delle pagine interne */
.testa, .testa-pagina { position: relative; overflow: hidden; color: #C9C5BC; background: radial-gradient(ellipse at 62% 40%, #2C2D33 0%, var(--antracite) 52%, var(--antracite-scuro) 100%); }
.testa h1, .testa-pagina h1 { color: #FFFFFF; }
.testa-griglia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(56px, 7vw, 100px) clamp(48px, 6vw, 80px); }
.testa-testo { display: grid; gap: 24px; }
.lead { font-size: 1.14rem; color: #C9C5BC; }
.testa-pagina h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.testa-pagina .testa-griglia { padding-block: clamp(44px, 6vw, 84px) clamp(56px, 7vw, 96px); }
.briciole { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8E8A82; }
.briciole a { color: #C9C5BC; text-decoration: none; }
.briciole a:hover { color: var(--oro-chiaro); }
.briciole [aria-current] { color: var(--oro); }
.testa-foto, .foto-con-cornice { position: relative; padding: 0 18px 18px 0; }
.cornice { position: absolute; top: 18px; left: 18px; right: 0; bottom: 0; border: 1px solid var(--oro); }
.testa-foto .foto, .foto-con-cornice .foto { position: relative; z-index: 1; aspect-ratio: 5 / 4; }
.fatti { list-style: none; margin: 0; padding: 0 0 clamp(56px, 6vw, 84px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.fatti li { border-left: 1.5px solid var(--oro); padding-left: 18px; display: grid; gap: 4px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #A9A59C; line-height: 1.5; }
.fatti strong { font-family: var(--font-display); font-weight: 600; font-size: 1.65rem; letter-spacing: 0; text-transform: none; color: #FFFFFF; line-height: 1.1; }

/* Spazio per le foto */
.foto {
  position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; color: var(--oro);
  background: radial-gradient(ellipse at 50% 42%, #303137 0%, #1D1E23 55%, #131416 100%);
}
.foto::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(201, 163, 90, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 163, 90, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 35%, transparent 85%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 35%, transparent 85%);
}
.foto::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(201, 163, 90, 0.28); pointer-events: none; z-index: 2; }
.foto svg { position: absolute; left: 14%; top: 14%; width: 72%; height: 72%; transition: transform 0.5s ease; }
.foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Competenze */
.pilastri { display: grid; gap: clamp(56px, 7vw, 100px); }
.pilastro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pilastro:nth-child(even) .foto { order: 2; }
.pilastro .foto { aspect-ratio: 16 / 11; }
.pilastro-testo { display: grid; gap: 18px; }
.pilastro h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 600; line-height: 1.05; }
.pilastro-testo > p { color: var(--grigio); }
.lineette { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lineette li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.lineette li::before { content: ""; width: 22px; height: 1.5px; background: var(--oro); flex: none; }

/* Schede servizi */
.schede { display: grid; gap: 24px; }
.schede-quattro { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.schede-tre { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scheda { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--bianco); border: 1px solid var(--linea); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.scheda:hover { transform: translateY(-4px); box-shadow: 0 34px 50px -36px rgba(27, 28, 33, 0.55); }
.scheda:hover .foto svg { transform: scale(1.05); }
.scheda .foto { border-bottom: 2px solid var(--oro); }
.scheda-testo { padding: 22px 22px 26px; display: grid; gap: 10px; flex: 1; align-content: start; }
.scheda-gruppo { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--oro-testo); }
.scheda p { color: var(--grigio); font-size: 0.95rem; }
.scheda-link { margin-top: 6px; justify-self: start; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 1.5px solid var(--oro); }

/* Perché sceglierci */
.motivi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 44px; }
.motivi li { border-top: 1px solid rgba(201, 163, 90, 0.3); padding: 30px 0 38px; display: grid; gap: 12px; align-content: start; }
.motivi p { color: #B7B4AC; font-size: 0.98rem; }
.icona-oro { width: 36px; height: 36px; stroke: var(--oro); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* Metodo */
.passi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; position: relative; }
.passi::before {
  content: ""; position: absolute; top: 25px; left: 26px; right: 0; height: 3px;
  background: repeating-linear-gradient(90deg, #A2761D 0 22px, #F3E2A8 22px 30px, #C9A35A 30px 40px);
  background-size: 40px 3px; animation: flusso 1.6s linear infinite;
}
@keyframes flusso { to { background-position: 40px 0; } }
.passi li { position: relative; padding-top: 82px; display: grid; gap: 10px; align-content: start; }
.nodo {
  position: absolute; top: 0; left: 0; width: 54px; height: 54px; border-radius: 50%;
  background: var(--antracite); border: 2px solid var(--oro); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: var(--oro-chiaro); font-size: 1.5rem;
}
.passi li:last-child .nodo { background: var(--oro-metallo); color: var(--antracite); border-color: transparent; box-shadow: 0 0 0 8px rgba(201, 163, 90, 0.18); }
.passi h3 { font-size: 1.4rem; }
.passi p { color: var(--grigio); font-size: 0.95rem; }

/* Zone */
.province { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.province li { border-top: 1px solid #D6CCB8; padding: 14px 0; display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.province span { font-family: var(--font-testo); font-size: 0.74rem; letter-spacing: 0.2em; color: var(--oro-testo); font-weight: 600; align-self: center; }
.mappa { margin: 0; overflow: hidden; background: radial-gradient(circle at 45% 55%, #2C2D33, var(--antracite-scuro) 80%); box-shadow: 0 40px 70px -40px rgba(20, 21, 23, 0.8); border-top: 2px solid var(--oro); }
.mappa svg { width: 100%; height: auto; }
.mappa .tubo-mappa { fill: none; stroke: url(#oro-mappa); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(201, 163, 90, 0.6)); }
.mappa .flusso-mappa { fill: none; stroke: #FFF6D8; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 14; animation: flusso-mappa 1.2s linear infinite; opacity: 0.85; }
@keyframes flusso-mappa { to { stroke-dashoffset: -16; } }
.mappa .citta { font-family: var(--font-display); font-weight: 700; font-size: 21px; fill: #FFFFFF; }
.mappa .prov { font-family: var(--font-testo); font-size: 12.5px; fill: #A9A59C; }
.mappa .nota { font-family: var(--font-testo); font-size: 12px; fill: #7D7A72; }
.alone { transform-box: fill-box; transform-origin: center; animation: alone 2.4s ease-out infinite; }
@keyframes alone { from { transform: scale(0.6); opacity: 0.8; } to { transform: scale(2.4); opacity: 0; } }

/* Invito finale */
.cta-interno { display: grid; gap: 20px; justify-items: center; text-align: center; max-width: 780px; }
.cta h2 { font-size: clamp(2.6rem, 5vw, 4rem); }
.cta p { color: #B7B4AC; }

/* Chi siamo */
.quota { margin-top: 12px; }
.quota-valore { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.8rem, 5.4vw, 4.2rem); line-height: 1; text-align: center; background: var(--oro-metallo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quota svg { width: 100%; height: 28px; margin-top: 10px; overflow: visible; }
.quota line { stroke: var(--oro); stroke-width: 1.5; }
.ruoli { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ruolo { background: var(--bianco); border: 1px solid var(--linea); border-top: 2px solid var(--oro); padding: 28px 24px; display: grid; gap: 10px; align-content: start; }
.ruolo dt { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; color: var(--antracite); line-height: 1.1; }
.ruolo dd { margin: 0; color: var(--grigio); font-size: 0.96rem; }
.biglietti { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.biglietto {
  position: relative; overflow: hidden; aspect-ratio: 91 / 61; background: var(--avorio); border-radius: 3px;
  display: grid; align-content: center; justify-items: center; gap: 10px; padding: 24px 20px; text-align: center;
  box-shadow: 0 40px 60px -36px rgba(0, 0, 0, 0.8);
}
.biglietti-uno { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin-inline: auto; }
.biglietto .angolo-retro { width: 34%; }
.biglietto a { margin-top: 4px; font-weight: 600; text-decoration: none; color: var(--inchiostro); font-variant-numeric: tabular-nums; }
.biglietto a:hover { color: var(--oro-testo); }
.biglietto img { height: 42px; width: auto; margin-bottom: 6px; }
.biglietto h3 { font-size: clamp(1.15rem, 1.9vw, 1.45rem); letter-spacing: 0.08em; text-transform: uppercase; color: var(--antracite); }
.ruolo-biglietto { display: flex; align-items: center; gap: 10px; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--inchiostro); text-align: center; }
.ruolo-biglietto::before, .ruolo-biglietto::after { content: ""; width: 22px; height: 1.5px; background: var(--oro); flex: none; }
.impegni { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 44px; }
.impegni li { border-top: 1px solid var(--linea); padding: 30px 0 10px; display: grid; gap: 12px; align-content: start; }
.impegni p { color: var(--grigio); }

/* Pagine dei servizi */
.lista-oro { list-style: none; margin: 0; padding: 0; }
.lista-oro li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--linea); font-size: 1.04rem; font-weight: 500; }
.lista-oro li:first-child { border-top: 1px solid var(--linea); }
.spunta { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--oro); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.passi-servizio { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.passi-servizio li { background: var(--bianco); border: 1px solid var(--linea); border-top: 2px solid var(--oro); padding: 28px 24px 30px; display: grid; gap: 10px; align-content: start; }
.numero-passo { font-family: var(--font-display); font-size: 2.8rem; font-weight: 600; line-height: 1; background: var(--oro-metallo); -webkit-background-clip: text; background-clip: text; color: transparent; justify-self: start; }
.passi-servizio h3 { font-size: 1.4rem; }
.passi-servizio p { color: var(--grigio); font-size: 0.95rem; }
.faq details { border-bottom: 1px solid var(--linea); }
.faq details:first-child { border-top: 1px solid var(--linea); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.2; color: var(--antracite); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--font-testo); font-weight: 400; font-size: 1.6rem; color: var(--oro); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 0 24px; color: var(--grigio); }

/* Contatti */
.contatti-griglia { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.modulo { display: grid; gap: 20px; background: radial-gradient(ellipse at 30% 20%, #2C2D33, var(--antracite) 60%); color: #DAD6CD; padding: clamp(24px, 3.6vw, 44px); border-top: 2px solid var(--oro); box-shadow: 0 40px 70px -40px rgba(20, 21, 23, 0.8); }
.modulo h2 { color: #FFFFFF; font-size: clamp(1.9rem, 3vw, 2.4rem); }
.campi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.campo { display: grid; gap: 6px; }
.campo-pieno { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--oro-chiaro); }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--inchiostro); background: var(--avorio); border: 1.5px solid transparent; border-radius: 2px; padding: 13px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--oro); outline: none; box-shadow: 0 0 0 3px rgba(201, 163, 90, 0.3); }
textarea { min-height: 130px; resize: vertical; }
.esito { font-size: 0.95rem; color: #B7B4AC; min-height: 1.6em; }
.esito strong { color: #FFFFFF; }
.recapiti-colonna { display: grid; gap: 28px; align-content: start; }
.recapiti-colonna h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.recapiti { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.recapiti li { display: flex; align-items: center; gap: 16px; overflow-wrap: anywhere; font-weight: 500; }
.recapiti small { display: block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grigio); }
.recapiti a { font-weight: 600; font-size: 1.08rem; text-decoration: none; }
.recapiti a:hover { color: var(--oro-testo); }
.tondo { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--antracite); display: grid; place-items: center; }
.tondo svg { width: 20px; height: 20px; }
.zone-breve { border-left: 1.5px solid var(--oro); padding-left: 20px; display: grid; gap: 8px; }
.zone-breve p:last-child { color: var(--grigio); }

/* Piè di pagina */
.piede { position: relative; overflow: hidden; background: var(--antracite-scuro); color: #A9A59C; padding-top: 76px; font-size: 0.95rem; border-top: 1px solid rgba(201, 163, 90, 0.3); }
.piede .righe { width: clamp(90px, 12vw, 170px); }
.piede-griglia { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; padding-bottom: 52px; }
.piede h3 { font-family: var(--font-testo); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--oro); margin-bottom: 8px; }
.piede nav, .piede-contatti { display: grid; gap: 10px; align-content: start; }
.piede a { text-decoration: none; color: #CFCBC2; overflow-wrap: anywhere; }
.piede a:hover { color: var(--oro-chiaro); }
.piede-marchio { display: grid; gap: 14px; align-content: start; }
.motto { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--oro); }
.piede-fondo { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.82rem; }

/* Pagine legali */
.testa-sola { grid-template-columns: minmax(0, 1fr); }
.testa-sola .testa-testo { max-width: 860px; }
.testo-legale { max-width: 820px; display: grid; gap: 16px; }
.testo-legale h2 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); margin-top: 28px; }
.testo-legale h3 { font-size: 1.3rem; margin-top: 8px; }
.testo-legale p, .testo-legale li { color: #46443F; }
.testo-legale ul { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.testo-legale li::marker { color: var(--oro); }
.testo-legale a { color: var(--oro-testo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.aggiornamento { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grigio); }
.nota-privacy { font-size: 0.85rem; color: #A9A59C; }
.nota-privacy a { color: var(--oro-chiaro); }
.piede-legale { display: flex; gap: 20px; }

/* Barra per telefono */
.barra-mobile { display: none; }

@media (max-width: 1100px) {
  .barra-alta { display: none; }
  .testata { backdrop-filter: none; background: var(--antracite-scuro); }
  .testata > .wrap { min-height: 70px; }
  .apri-menu { display: inline-flex; }
  .menu {
    position: fixed; top: 70px; left: 0; right: 0; bottom: 0; z-index: 29; display: none;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px clamp(16px, 4vw, 40px) 40px;
    background: var(--antracite-scuro); overflow-y: auto;
  }
  .menu.aperto { display: flex; }
  .voce { padding: 16px 0; font-size: 0.86rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .voce::after, .gruppo > .voce::before { display: none; }
  .voce[aria-current="page"], .gruppo.attivo > .voce { color: var(--oro-chiaro); }
  .sottomenu { position: static; display: block; min-width: 0; background: none; border: 0; box-shadow: none; padding: 6px 0 12px 16px; }
  .sottomenu a { padding: 9px 0; }
  .menu-preventivo { margin: 24px 0 0; }
  .schede-quattro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .passi { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .passi::before { display: none; }
  .motivi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ruoli { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .piede-griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .testa-griglia, .due-colonne, .pilastro, .contatti-griglia { grid-template-columns: minmax(0, 1fr); }
  .pilastro:nth-child(even) .foto { order: 0; }
  .schede-tre, .passi-servizio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fatti { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .biglietti { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin-inline: auto; }
  .impegni { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body { padding-bottom: 54px; }
  .marchio img { height: 30px; }
  .marchio span { font-size: 1.2rem; }
  .schede-quattro, .schede-tre, .passi-servizio, .motivi, .ruoli, .campi, .piede-griglia { grid-template-columns: minmax(0, 1fr); }
  .passi { grid-template-columns: minmax(0, 1fr); row-gap: 34px; }
  .passi::before { display: block; top: 0; bottom: 0; left: 25px; right: auto; width: 3px; height: auto; background: repeating-linear-gradient(180deg, #A2761D 0 22px, #F3E2A8 22px 30px, #C9A35A 30px 40px); background-size: 3px 40px; animation: flusso-giu 1.6s linear infinite; }
  .passi li { padding-top: 8px; padding-left: 80px; }
  .fatti strong { font-size: 1.35rem; }
  .filetto { letter-spacing: 0.2em; gap: 10px; }
  .filetto::before, .filetto-centro::after { width: 26px; }
  .barra-mobile { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; }
  .barra-mobile a { padding: 17px 10px; text-align: center; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; background: var(--antracite); color: #FFFFFF; border-top: 1px solid rgba(201, 163, 90, 0.4); }
  .barra-mobile .barra-mobile-oro { background: var(--oro-metallo); color: var(--antracite); }
}
@keyframes flusso-giu { to { background-position: 0 40px; } }
@media (prefers-reduced-motion: reduce) {
  .passi::before, .mappa .flusso-mappa, .alone { animation: none; }
  .scheda, .btn, .foto svg, .voce::after { transition: none; }
}

/* ---------- Animazioni ---------- */
@keyframes sali { from { opacity: 0; transform: translateY(0.45em); } to { opacity: 1; transform: none; } }
@keyframes sali-piano { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes compari { from { opacity: 0; } to { opacity: 1; } }
@keyframes comparsa-giu { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes filo { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes righe { from { opacity: 0; transform: translate(35%, -35%); } to { opacity: 1; transform: none; } }
@keyframes cornice { from { opacity: 0; transform: translate(-18px, -18px); } to { opacity: 1; transform: none; } }
@keyframes traccia { 0% { stroke-dashoffset: 1; opacity: 0; } 6% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes riflesso { from { left: -60%; } to { left: 130%; } }
@keyframes riflesso-ciclo { 0% { left: -60%; } 16% { left: 130%; } 100% { left: 130%; } }
@keyframes accendi { 0%, 18%, 100% { box-shadow: 0 0 0 0 rgba(201, 163, 90, 0); } 8% { box-shadow: 0 0 0 10px rgba(201, 163, 90, 0.28); } }
@keyframes bagliore { from { transform: translate(-8%, -6%); } to { transform: translate(22%, 14%); } }

.btn-oro::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.scheda { position: relative; }
.scheda::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 3px; background: var(--oro-metallo); transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease; }
.scheda:hover::after { transform: scaleX(1); }
.testa::before { content: ""; position: absolute; inset: -20%; pointer-events: none; background: radial-gradient(circle at 30% 35%, rgba(201, 163, 90, 0.11), transparent 38%); }

@media (prefers-reduced-motion: no-preference) {
  /* Entrata dell'apertura */
  .testa .filetto::before, .testa-pagina .filetto::before { transform-origin: left; animation: filo 0.9s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .testa .filetto, .testa-pagina .filetto, .briciole { animation: compari 0.8s 0.1s ease both; }
  .parola { display: inline-block; animation: sali 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.2s + var(--i) * 0.09s); }
  .testa .lead, .testa-pagina .lead { animation: sali-piano 0.9s 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .testa .pulsanti, .testa-pagina .pulsanti { animation: sali-piano 0.9s 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .fatti li { animation: sali-piano 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.9s + var(--i) * 0.12s); }
  .testa .righe, .testa-pagina .righe { animation: righe 1.4s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .testa-foto .cornice { animation: cornice 1.1s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .testa-foto .foto { animation: compari 0.9s 0.25s ease both; }
  .testa::before { animation: bagliore 14s ease-in-out infinite alternate; }

  /* Disegni in oro che si tracciano */
  .testa-foto .foto svg > :not(.tratteggio) { stroke-dasharray: 1; animation: traccia 2.2s cubic-bezier(0.45, 0.05, 0.25, 1) both; animation-delay: calc(0.5s + var(--i) * 45ms); }
  .testa-foto .foto svg > .tratteggio { animation: compari 0.8s 2s both; }
  .foto.da-tracciare svg > :not(.tratteggio) { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
  .foto.da-tracciare svg > .tratteggio { opacity: 0; }
  .foto.in-vista svg > :not(.tratteggio) { animation: traccia 1.8s cubic-bezier(0.45, 0.05, 0.25, 1) both; animation-delay: calc(var(--i) * 45ms); }
  .foto.in-vista svg > .tratteggio { animation: compari 0.8s 1.1s both; }

  /* Comparsa mentre si scorre */
  .rivela-attesa { opacity: 0; transform: translateY(28px); }
  .rivela-attesa.rivelato { opacity: 1; transform: none; transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--r, 0s); }
  .rivelato .icona-oro > *, .rivelato .spunta > * { stroke-dasharray: 1; animation: traccia 1.3s cubic-bezier(0.45, 0.05, 0.25, 1) both; animation-delay: calc(var(--r, 0s) + 0.25s); }
  .rivela-attesa.rivelato.scheda:hover { transform: translateY(-4px); }
  .rivelato.scheda { transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.2s ease; }

  /* Riflesso sui pulsanti oro */
  .btn-oro:hover::after { animation: riflesso 0.8s ease; }
  .testa .btn-oro::after, .cta .btn-oro::after { animation: riflesso-ciclo 6s 2.2s ease-in-out infinite; }

  /* Il metodo: i passaggi si accendono in sequenza */
  .passi .nodo { animation: accendi 5s ease-in-out infinite; animation-delay: calc(var(--i) * 1s); }
  .passi li:last-child .nodo { animation: none; }

  /* Menu, domande e cambi di pagina */
  .sottomenu { animation: comparsa-giu 0.25s ease both; }
  .menu.aperto { animation: comparsa-giu 0.3s ease both; }
  .faq details[open] p { animation: comparsa-giu 0.35s ease both; }
  .vista:not([hidden]) { animation: compari 0.45s ease both; }
  .voce, .testata > .wrap { transition: padding 0.3s ease, min-height 0.3s ease, color 0.2s ease; }
}

/* Testata più bassa mentre si scorre (solo schermi grandi) */
@media (min-width: 1101px) {
  .scorrendo .testata > .wrap { min-height: 64px; }
  .scorrendo .voce { padding-block: 21px; }
  .scorrendo .voce::after { bottom: 14px; }
  .scorrendo .testata { box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7); }
}
