:root {
  --fondo: #f4f9fc;
  --chiaro: #fbfdfe;
  --blu: #1f6fb2;
  --notte: #0e2f4f;
  --verde: #5cb531;
  --azzurro: #d8ecf7;
  --testo: #14324d;
  --secondario: #4a6278;
  --bordo: #c9dce9;
  --ombra: 0 18px 40px #1f6fb21f;
  --raggio: 24px;
  --fascia: 36px;
  color: var(--testo);
  background: var(--fondo);
  font: 400 1rem/1.6 Inter, system-ui, sans-serif;
  scroll-padding-top: calc(var(--fascia) + 1rem);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding-top: var(--fascia); }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blu); outline-offset: 3px; }
button, input, textarea { font: inherit; }
button, label.chip { cursor: pointer; }
img { display: block; max-width: 100%; }
figure, p { margin: 0; }
p + p { margin-top: .75rem; }
h1, h2, h3 { margin: 0; font: 800 1rem/1.08 Nunito, system-ui, sans-serif; color: var(--notte); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.65rem); letter-spacing: -.025em; }
h3 { font-size: 1.3rem; }
.wrap { width: min(1200px, calc(100% - 32px)); margin-inline: auto; }
.defs { position: absolute; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.i-wa, .i-paw { fill: currentColor; stroke: none; }
.fascia-bozza {
  position: fixed; top: 0; left: 0; right: 0; z-index: 7;
  background: var(--azzurro); color: var(--notte); text-align: center;
  font-weight: 700; font-size: .92rem; padding: 7px 12px; line-height: 22px;
}
.skip { position: fixed; top: var(--fascia); left: 1rem; z-index: 8; transform: translateY(-200%); background: var(--chiaro); padding: .5rem 1rem; }
.skip:focus { transform: none; }
.testata { background: var(--chiaro); border-bottom: 1px solid var(--bordo); }
.testata-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; padding-block: .8rem; }
.brand { display: inline-flex; gap: .55rem; align-items: center; text-decoration: none; }
.brand img { object-fit: contain; }
.brand strong { display: block; font: 800 1.35rem/1 Nunito, sans-serif; }
.brand small { display: block; font-size: .76rem; margin-top: .12rem; }
.testata nav { display: flex; order: 2; width: 100%; gap: 1.2rem; font-size: .94rem; font-weight: 600; }
.testata nav a { text-decoration: none; padding-block: .2rem; }
.testata nav a:hover { text-decoration: underline; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 44px; padding: .58rem .95rem; border: 1px solid transparent;
  border-radius: 12px; background: var(--blu); color: var(--chiaro);
  line-height: 1.3; font-weight: 700; text-decoration: none;
}
.button:hover { background: var(--notte); }
.button.outline { background: var(--chiaro); border-color: var(--bordo); color: var(--notte); }
.button.outline:hover { background: var(--azzurro); }
.hero, .notte { position: relative; overflow: hidden; }
.hero { background: radial-gradient(ellipse at 82% 22%, #d8ecf7 0%, transparent 62%), var(--fondo); padding-block: clamp(1.65rem, 4vw, 3.75rem); }
.apertura { position: relative; z-index: 1; display: grid; align-items: start; gap: 1.4rem; }
.apertura > *, .campi > *, .dove-grid > * { min-width: 0; }
.occhiello { color: var(--blu); font-size: .87rem; font-weight: 700; margin-bottom: .6rem; }
.lead { color: var(--secondario); font-size: clamp(1rem, 2vw, 1.13rem); max-width: 51ch; margin-top: .9rem; }
.fiducia { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; font-size: .81rem; font-weight: 600; }
.fiducia > * { border: 1px solid var(--bordo); border-radius: 100px; background: var(--chiaro); padding: .2rem .55rem; }
.fiducia a span { color: var(--blu); }
.azioni { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.15rem; }
.foto-hero { position: relative; margin-top: 1.2rem; overflow: hidden; border-radius: var(--raggio); box-shadow: var(--ombra); }
.foto-hero img { width: 100%; height: auto; aspect-ratio: 1.62; object-fit: cover; object-position: center 47%; }
.foto-hero figcaption { position: absolute; left: .7rem; bottom: .7rem; border-radius: 100px; background: var(--chiaro); padding: .4rem .7rem; font-size: .84rem; font-weight: 700; box-shadow: var(--ombra); }
.foto-hero figcaption::before { content: ''; display: inline-block; width: .56rem; height: .56rem; margin-right: .4rem; border-radius: 50%; background: var(--blu); }
.foto-hero figcaption[data-aperto]::before { background: var(--verde); }
.zampa-decorativa { position: absolute; pointer-events: none; width: 10rem; right: -2rem; bottom: -3rem; color: var(--blu); opacity: .07; transform: rotate(-18deg); }
.form { display: grid; gap: .83rem; background: var(--chiaro); border-radius: var(--raggio); border: 1px solid var(--bordo); border-top: 4px solid var(--blu); box-shadow: var(--ombra); padding: clamp(1rem, 2.4vw, 1.65rem); }
.form h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); margin-bottom: .1rem; }
.campi { display: grid; gap: .65rem; }
.campo, legend { display: block; font-size: .9rem; font-weight: 700; }
small { color: var(--secondario); font-weight: 400; }
.campo input, .campo textarea {
  display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 44px; margin-top: .25rem;
  border: 1px solid #a9c5d8; border-radius: 10px; padding: .45rem .6rem;
  background: var(--fondo); color: var(--testo); font-size: 1rem; font-weight: 400;
}
.campo textarea { resize: vertical; }
.campo input[type="date"] { appearance: none; }
.campo small[id] { display: block; margin-top: .2rem; }
fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
legend { padding: 0; margin-bottom: .3rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; min-height: 42px; padding: .32rem .62rem; border: 1px solid var(--bordo); border-radius: 100px; background: var(--fondo); font-size: .84rem; font-weight: 600; }
.chip input:checked + span { background: #e8f6df; border-color: var(--verde); box-shadow: inset 0 0 0 1px var(--verde); }
.chip input:focus-visible + span { outline: 3px solid var(--blu); outline-offset: 2px; }
.invia, .whatsapp-fisso { background: #25d366; color: #0c3622; }
.invia:hover, .whatsapp-fisso:hover { background: #72e59b; color: #0c3622; }
.invia:disabled { opacity: .65; cursor: default; }
.form-note, .privacy { margin: 0; font-size: .8rem; color: var(--secondario); text-align: center; }
.form-note { font-weight: 600; }
.privacy { margin-top: -.5rem; }
.telefono-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .55rem; margin-top: .85rem; background: var(--azzurro); border-radius: 16px; padding: .75rem .9rem; font-size: .9rem; }
.telefono-box strong { flex: 1 1 200px; }
.section { padding-block: clamp(2.4rem, 6vw, 5rem); }
.section h2 + p { margin-top: .75rem; }
.surface { background: var(--chiaro); }
.cards, .motivi, .passaggi, .galleria, .dove-grid { display: grid; gap: 1rem; margin-top: 1.35rem; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; min-width: 0; border: 1px solid var(--bordo); background: var(--fondo); border-radius: var(--raggio); padding: 1.2rem; text-decoration: none; }
.card:hover { border-color: var(--blu); box-shadow: var(--ombra); }
.icona-servizio { display: inline-grid; place-items: center; width: 46px; height: 46px; color: var(--blu); background: var(--azzurro); border-radius: 14px; }
.icona-servizio .icon { width: 25px; height: 25px; }
.card p { color: var(--secondario); }
.card-link { margin-top: auto; color: var(--blu); font-weight: 700; font-size: .88rem; text-decoration: underline; }
.notte, .footer { background: var(--notte); color: var(--fondo); }
.notte h2 { color: inherit; }
.notte .wrap { position: relative; z-index: 1; }
.notte .zampa-decorativa { color: var(--azzurro); }
.motivi { list-style: none; padding: 0; margin-bottom: 0; }
.motivi li { display: flex; gap: .65rem; min-width: 0; }
.motivi li > .icon { color: #9de877; margin-top: .18rem; }
.motivi strong { font-family: Nunito, sans-serif; font-size: 1.15rem; }
.motivi p { color: var(--azzurro); margin-top: .35rem; }
.passaggi { list-style: none; padding: 0; margin-bottom: 0; counter-reset: step; }
.passaggi li { display: flex; align-items: center; gap: .7rem; padding: .8rem; background: var(--azzurro); border-radius: 16px; font-weight: 700; }
.passaggi li::before { counter-increment: step; content: counter(step); color: var(--chiaro); background: var(--blu); border-radius: 50%; display: grid; place-items: center; flex: 0 0 2rem; height: 2rem; }
.galleria { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.galleria figure, .entrata img { border-radius: 16px; overflow: hidden; }
.galleria img, .entrata img { width: 100%; aspect-ratio: 1.15; object-fit: cover; }
.galleria figure:nth-child(2) img { object-position: center 45%; }
.mappa iframe { display: block; width: 100%; height: 250px; border: 0; border-radius: var(--raggio); background: var(--azzurro); margin-bottom: .65rem; }
.orari { padding: 1rem; border-radius: var(--raggio); border: 1px solid var(--bordo); background: var(--chiaro); }
.orari dl { margin: .6rem 0 0; }
.orari dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .5rem; padding: .42rem .45rem; border-bottom: 1px solid var(--bordo); font-size: .88rem; }
.orari dl div:last-child { border-bottom: 0; }
.orari dl div[aria-current] { border-radius: 8px; background: var(--azzurro); font-weight: 700; }
.orari dd { margin: 0; }
.entrata { margin-top: 1.5rem; }
.entrata > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-top: .65rem; max-width: 500px; }
.entrata img { object-fit: contain; background: var(--azzurro); }
.percorso { font-size: .9rem; margin-bottom: .85rem; }
.servizio h1 { margin-top: .55rem; }
.articolo { background: var(--chiaro); border: 1px solid var(--bordo); border-radius: var(--raggio); padding: clamp(1rem, 3vw, 1.6rem); }
.articolo section + section { margin-top: 1.4rem; }
.articolo h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-bottom: .5rem; }
.footer { padding: 2rem 0 5.2rem; }
.footer small { color: var(--azzurro); }
.footer :focus-visible { outline-color: var(--azzurro); }
.footer-inner, .footer-links { display: flex; flex-wrap: wrap; gap: .75rem 1.4rem; align-items: center; }
.footer-inner { justify-content: space-between; }
.footer-links { font-weight: 600; }
.whatsapp-fisso { position: fixed; z-index: 6; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 8px 26px #0e2f4f38; animation: richiamo 3s ease-out 3; }
.whatsapp-fisso .icon { width: 28px; height: 28px; }
@keyframes richiamo { 0%, 75%, 100% { box-shadow: 0 8px 26px #0e2f4f38, 0 0 0 0 #25d36600; } 38% { box-shadow: 0 8px 26px #0e2f4f38, 0 0 0 9px #25d36638; } }
.intro { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 10; display: grid; place-items: center; padding: 0; border: 0; background: var(--fondo); animation: velo .4s ease-in 1.8s both; }
.intro img { position: relative; object-fit: contain; animation: battito .65s ease-out 1.05s both; }
.passo { position: absolute; width: clamp(36px, 8vw, 78px); color: var(--blu); transform: rotate(27deg); animation: impronta .45s ease-out both; }
.passo-1 { left: 11%; bottom: 11%; }
.passo-2 { left: 19%; bottom: 19%; color: var(--verde); animation-delay: .18s; }
.passo-3 { left: 26%; bottom: 26%; animation-delay: .36s; }
.passo-4 { left: 34%; bottom: 34%; color: var(--verde); animation-delay: .54s; }
.passo-5 { left: 42%; bottom: 40%; animation-delay: .72s; }
@keyframes impronta { from { opacity: 0; transform: rotate(27deg) scale(.8); } to { opacity: .55; } }
@keyframes battito { 0% { opacity: 0; transform: scale(.9); } 60% { opacity: 1; transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes velo { to { transform: translateY(-100%); } }
@media (min-width: 540px) {
  .campi, .cards, .dove-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galleria { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .testata nav { order: 0; width: auto; margin-left: auto; }
}
@media (min-width: 800px) {
  .wrap { width: min(1200px, calc(100% - 64px)); }
  .apertura { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 1.4rem clamp(1.5rem, 4vw, 3.5rem); }
  .servizio .prenotazione { grid-column: 2; grid-row: 1 / span 2; }
  .servizio .articolo { grid-column: 1; }
  .campi { grid-template-columns: 1fr; }
  .motivi, .passaggi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .galleria { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .galleria figure:first-child { grid-column: span 2; }
  .galleria figure:first-child img { height: 100%; aspect-ratio: 2.3; }
}
@media (min-width: 1050px) {
  .campi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  .whatsapp-fisso { animation: none; }
}
