/* Ritenz Immobiliare — foglio di stile condiviso
   Layout: hero beige con la mappa della Sardegna in nero e oro, poi sezioni
   bianche e beige con accenti oro, schede arrotondate e sottotitoli calligrafici. */

/* Avenir e Zapfino sono i font del Keynote: si usano quelli installati sul
   dispositivo (Apple), altrimenti Jost e Italianno come alternative. */
@font-face { font-family: "Ritenz Sans"; src: local("Avenir Next"), local("AvenirNext-Regular"), local("Avenir Book"), local("Avenir-Book"), local("Avenir"); font-weight: 400; }
@font-face { font-family: "Ritenz Sans"; src: local("Avenir Next Medium"), local("AvenirNext-Medium"), local("Avenir Medium"), local("Avenir-Medium"); font-weight: 500; }
@font-face { font-family: "Ritenz Sans"; src: local("Avenir Next Demi Bold"), local("AvenirNext-DemiBold"), local("Avenir Heavy"), local("Avenir-Heavy"); font-weight: 600; }
@font-face { font-family: "Ritenz Script"; src: local("Zapfino"); size-adjust: 52%; ascent-override: 100%; descent-override: 45%; } /* Zapfino ha svolazzi molto alti: riga più compatta */
:root {
  --ink: #0f1013;        /* nero del logo, fondo della mappa */
  --ink-2: #1b1d22;      /* superfici scure secondarie */
  --gold: #d7a841;       /* oro Ritenz */
  --gold-deep: #a9802a;  /* oro su bianco per testi piccoli */
  --paper: #ffffff;
  --mist: #f6f1e7;       /* beige chiaro, fondo sezioni alternate */
  --sand: #efe6d4;       /* beige del mare sulla mappa */
  --text: #1b1b1d;
  --muted: #5f5f66;
  --line: rgba(215, 168, 65, .55);
  --font-display: "Ritenz Sans", "Jost", "Segoe UI", sans-serif;
  --font-body: "Ritenz Sans", "Jost", "Segoe UI", system-ui, sans-serif;
  --font-script: "Ritenz Script", "Italianno", "Snell Roundhand", cursive;
  --radius: 28px;
  --sec: 88px;           /* spazio sopra e sotto ogni sezione */
  --gap-title: 40px;     /* spazio tra titolo di sezione e contenuto */
  --shadow: 0 10px 30px rgba(15, 16, 19, .10);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.section { padding: var(--sec) 0; }
.section--mist { background: var(--mist); }
@media (max-width: 760px) { :root { --sec: 56px; --gap-title: 26px; } }

/* Titolo di sezione: titolo + sottotitolo calligrafico in oro */
.title { text-align: center; display: grid; gap: 2px; margin-bottom: var(--gap-title); }
.title h2 { font-size: clamp(30px, 4vw, 44px); }
.title h2 em, .gold { color: var(--gold); font-style: normal; }
.title .script { font-family: var(--font-script); color: var(--gold); font-size: clamp(34px, 4.4vw, 50px); line-height: 1.05; }
.title p.lead { max-width: 640px; margin: 10px auto 0; color: var(--muted); }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 26px; border-radius: 999px;
  font: 500 14px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn b { font-weight: 600; }
.btn--gold { background: var(--gold); color: #fff; box-shadow: 0 6px 16px rgba(215, 168, 65, .35); }
.btn--gold:hover { background: #c99a33; }
.btn--line { border-color: var(--gold); color: var(--text); background: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.04); }
.btn--ghost:hover { border-color: var(--gold); }
.btn--dark { background: var(--ink); color: #fff; }

/* Header a pillola */
.site-header { position: fixed; top: 18px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.site-header .bar {
  pointer-events: auto;
  width: min(1100px, 100% - 28px); margin-inline: auto;
  display: flex; align-items: center; gap: 18px;
  padding: 8px 10px 8px 22px; border-radius: 999px;
  background: rgba(255, 255, 255, .96); box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
  backdrop-filter: blur(10px);
}
.brand img { height: 42px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a.link { text-decoration: none; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; padding: 10px 12px; border-radius: 999px; }
.nav a.link:hover, .nav a.link[aria-current="page"] { color: var(--gold); }
.nav .btn { min-height: 42px; padding: 0 20px; font-size: 13px; }
.lang { font-size: 13px; letter-spacing: .08em; color: var(--muted); padding: 0 6px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); margin: 4px auto; transition: transform .2s; }
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: calc(100% + 10px); left: 14px; right: 14px;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 14px;
    background: #fff; border-radius: 24px; box-shadow: 0 16px 40px rgba(0,0,0,.18);
    display: none; pointer-events: auto;
  }
  .site-header.open .nav { display: flex; }
  .nav a.link { padding: 14px 12px; }
  .nav .btn { min-height: 48px; }
  .lang { display: none; }
  .site-header .bar { position: relative; }
  .brand img { height: 36px; }
}

/* Intestazione delle pagine interne */
/* intestazione delle pagine interne: sotto l'header fisso, poi il contenuto alla distanza standard */
.page-head { padding: calc(92px + var(--sec) * .2) 0 var(--gap-title); text-align: center; position: relative; }
.page-head .title { margin-bottom: 0; }
.page-head + .section { padding-top: 0; }
.stack { display: grid; gap: var(--sec); }
.after-carousel { margin-top: var(--gap-title); }
.h-sm { font-size: 26px !important; }
.chips--page { margin: var(--gap-title) 0; }
.watermark { position: absolute; opacity: .07; pointer-events: none; width: 220px; }

/* Schede foto arrotondate */
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--mist); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Segnaposto per foto mancanti */
.ph {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(120% 90% at 30% 20%, #2a2c33 0%, var(--ink) 70%);
  color: rgba(255,255,255,.7); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}
.ph img { width: 64px !important; height: auto !important; opacity: .9; margin: 0 auto 10px; object-fit: contain; }

/* Carosello a scorrimento con la scheda centrale in evidenza */
.carousel { position: relative; }
.track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px max(20px, calc(50% - 240px)); scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(480px, 82vw); scroll-snap-align: center; transition: transform .35s ease, opacity .35s ease; transform: scale(.9); opacity: .75; }
.slide.is-active { transform: scale(1); opacity: 1; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: rgba(215,168,65,.35); cursor: pointer; transition: width .3s, background-color .3s; }
.dots button[aria-current="true"] { width: 44px; background: var(--gold); }
.car-arrows { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.car-arrows button { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--gold); background: #fff; color: var(--text); cursor: pointer; font-size: 18px; }

/* Schede casa */
.house .photo { aspect-ratio: 4 / 3.1; }
.house .cap { text-align: center; padding-top: 14px; }
.house h3 { font-size: 20px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.house .place { color: var(--muted); font-size: 15px; }
.house .tag { color: var(--gold); font-size: 15px; }

/* Barra prenotazione */
.booking {
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 8px; align-items: center;
  background: #fff; border-radius: 999px; padding: 10px 10px 10px 30px;
  box-shadow: 0 12px 34px rgba(0,0,0,.13); width: min(820px, 100%); margin-inline: auto;
}
.b-ico { display: none; width: 20px; height: 20px; }
@media (max-width: 760px) { .b-txt { display: none; } .b-ico { display: block; } }
.booking label { display: grid; gap: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
/* iPhone centra la data scelta: la riportiamo a sinistra, allineata alle etichette */
.booking input[type="date"] { text-align: left; display: block; }
.booking input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.booking input, .booking select { text-align: left; border: 0; font: 400 16px var(--font-body); color: var(--gold); background: transparent; padding: 2px 0; min-width: 0; }
@media (max-width: 760px) {
  /* una sola riga, come la barra di Kross: arrivo | partenza | ospiti | cerca */
  /* tre colonne uguali (arrivo, partenza, ospiti) con lo stesso margine interno, poi il pulsante */
  .booking { grid-template-columns: repeat(3, minmax(0, 1fr)) 46px; gap: 0; border-radius: 999px; padding: 6px 6px 6px 8px; align-items: center; }
  .booking label { font-size: 9.5px; letter-spacing: .1em; padding: 0 6px 0 11px; text-align: left; justify-items: start; }
  .booking input[type="date"] { font-size: 12.5px; letter-spacing: -.01em; }
  .booking input[type="date"]::-webkit-calendar-picker-indicator { display: none; }
  .booking label + label { border-left: 1px solid rgba(215,168,65,.35); }
  .booking input, .booking select { font-size: 13px; width: 100%; -webkit-appearance: none; appearance: none; min-height: 20px; }
  .booking .btn { width: 46px; height: 46px; min-height: 0; padding: 0; border-radius: 50%; }
}

/* Moduli */
.form { display: grid; gap: 10px; width: min(520px, 100%); margin-inline: auto; }
.field { display: grid; gap: 4px; }
.field label { font-size: 13px; color: var(--muted); padding-left: 18px; }
.field label b { color: var(--gold); font-weight: 400; }
.input {
  width: 100%; min-width: 0; height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font: 400 16px var(--font-body); color: var(--text);
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
textarea.input { height: auto; border-radius: 22px; min-height: 110px; padding: 12px 18px; resize: vertical; }
/* date: iPhone le disegna a modo suo (più alte e centrate); le uniformiamo alle altre caselle */
input[type="date"].input { -webkit-appearance: none; appearance: none; display: block; line-height: 44px; text-align: left; }
input[type="date"].input::-webkit-date-and-time-value { text-align: left; margin: 0; }
input[type="date"].input::-webkit-datetime-edit { padding: 0; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%); background-position: calc(100% - 26px) 50%, calc(100% - 20px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,168,65,.2); }
.radios { display: flex; gap: 22px; padding-left: 20px; }
.radios label { display: flex; align-items: center; gap: 8px; padding: 0; color: var(--text); }
.radios input { accent-color: var(--gold); width: 18px; height: 18px; }
.form .btn { min-height: 48px; font-size: 14px; margin-top: 6px; }
.fine { text-align: center; font-size: 13px; color: var(--muted); }
.form-msg { text-align: center; padding: 14px 18px; border-radius: 18px; background: rgba(215,168,65,.12); color: var(--text); display: none; }
.form-msg.show { display: block; }
.card-form { background: #fff; border-radius: 34px; box-shadow: var(--shadow); padding: 40px clamp(20px, 5vw, 56px); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.82); padding: 72px 0 28px; font-size: 16px; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr; gap: 40px; }
.foot-grid h4 { margin: 0 0 10px; color: var(--gold); font: 500 15px var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--gold); }
.foot-logo { width: 150px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.foot-brand .socials { margin-top: 34px; gap: 8px; width: 150px; justify-content: center; }
.foot-brand .socials a { width: 32px; height: 32px; }
.socials a { width: 44px; height: 44px; display: block; transition: transform .2s; }
.socials a:hover { transform: translateY(-2px) scale(1.05); }
.socials img { width: 100%; height: 100%; object-fit: contain; }
.contact-list li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.contact-list svg { width: 16px; height: 16px; margin-top: 5px; color: var(--gold); }
.contact-list li.sub { display: block; }
.contact-list .sub { color: rgba(255,255,255,.55); font-size: 14px; margin-top: 10px; grid-column: 1 / -1; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14px; color: rgba(255,255,255,.55); }
.foot-bottom a { color: rgba(255,255,255,.75); }
@media (max-width: 820px) {
  .site-footer { padding: 48px 0 24px; font-size: 14.5px; }
  .foot-grid { grid-template-columns: 1fr 1.25fr; gap: 30px 20px; }
  .foot-brand { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .foot-logo { width: 74px; }
  .socials, .foot-brand .socials { margin-top: 0; gap: 10px; width: auto; }
  .socials a, .foot-brand .socials a { width: 38px; height: 38px; }
  .foot-grid h4 { font-size: 13px; }
  .contact-list li { grid-template-columns: 18px 1fr; gap: 6px; word-break: break-word; }
  .contact-list .sub { font-size: 12.5px; }
  .foot-bottom { margin-top: 30px; flex-direction: column; align-items: center; text-align: center; font-size: 12.5px; gap: 8px; }
}

/* ---------- HOME: mappa allo scroll ---------- */
.map-scroll { position: relative; background: var(--sand); height: calc(var(--stops, 5) * 90vh + 127vh); }
.map-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--text); }
.map-stage canvas { position: absolute; inset: 0; display: block; }
/* Titolo della home: tre versioni da confrontare (A, B, C), scelte con data-hero su <html> */
.hero-copy { position: absolute; z-index: 2; display: grid; justify-items: center; text-align: center; gap: 12px; left: 50%; transform: translateX(-50%); top: 104px; width: min(640px, calc(100% - 40px)); }
.hero-copy h1 { font-weight: 400; line-height: 1.2; }
.hero-copy h1 span { display: inline; }
.hero-copy .l3 { color: var(--gold); }
.hero-logo { display: none; height: auto; }
.hero-rule { width: 56px; height: 1px; background: var(--gold); }
/* A: logo verticale e titolo centrati */
:root[data-hero="a"] .hero-logo--v, :root:not([data-hero]) .hero-logo--v { display: block; width: 78px; }
:root[data-hero="a"] .hero-copy h1, :root:not([data-hero]) .hero-copy h1 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: .02em; }
:root[data-hero="a"] .hero-copy .l3, :root:not([data-hero]) .hero-copy .l3 { display: block; }
/* B: logo orizzontale e titolo a sinistra, isola a destra */
:root[data-hero="b"] .hero-copy { left: max(24px, calc(50% - 560px)); transform: translateY(-50%); top: 52%; width: min(440px, 40%); justify-items: start; text-align: left; gap: 22px; }
:root[data-hero="b"] .hero-logo--h { display: block; width: 230px; }
:root[data-hero="b"] .hero-copy h1 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 300; line-height: 1.15; }
:root[data-hero="b"] .hero-copy .l1, :root[data-hero="b"] .hero-copy .l2, :root[data-hero="b"] .hero-copy .l3 { display: block; }
:root[data-hero="b"] .hero-copy .l3 { font-weight: 500; }
/* C: maiuscolo spaziato come nel Keynote, senza logo */
:root[data-hero="c"] .hero-copy { top: 120px; }
:root[data-hero="c"] .hero-copy h1 { font-size: clamp(20px, 2.3vw, 30px); letter-spacing: .16em; text-transform: uppercase; font-weight: 400; line-height: 1.5; }
:root[data-hero="c"] .hero-copy .l3 { display: block; font-weight: 500; }
:root[data-hero="c"] .hero-rule { order: -1; }
@media (max-width: 760px) {
  :root[data-hero] .hero-copy, .hero-copy { left: 50%; transform: translateX(-50%); width: calc(100% - 40px); justify-items: center; text-align: center; gap: 10px; }
  :root[data-hero="a"] .hero-logo--v, :root:not([data-hero]) .hero-logo--v { width: 64px; }
  :root[data-hero="b"] .hero-logo--h { width: 170px; }
  :root[data-hero="b"] .hero-copy h1 { font-size: 28px; }
  :root[data-hero="c"] .hero-copy h1 { font-size: 17px; letter-spacing: .12em; }
}
.variant-switch { position: fixed; left: 14px; bottom: 14px; z-index: 60; display: flex; align-items: center; gap: 4px; padding: 5px 6px 5px 12px; border-radius: 999px; background: rgba(15,16,19,.88); color: #fff; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.variant-switch span { margin-right: 4px; color: rgba(255,255,255,.7); }
.variant-switch button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: #fff; font: 600 12px var(--font-body); cursor: pointer; }
.variant-switch button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.map-legend { position: absolute; right: max(20px, calc(50% - 560px)); bottom: 28px; z-index: 2; display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.map-legend .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
@media (max-width: 760px) { .map-legend { right: auto; left: 50%; transform: translateX(-50%); bottom: 16px; white-space: nowrap; font-size: 10.5px; } }
.scroll-hint { position: absolute; left: max(24px, calc(50% - 560px)); bottom: 30px; justify-items: start; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); display: grid; gap: 8px; z-index: 2; }
.scroll-hint::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); }

.zone-nav { display: none !important; position: absolute; right: max(20px, calc(50% - 560px)); top: 104px; z-index: 3; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 60%; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.zone-nav.show { opacity: 1; visibility: visible; }
.zone-nav button { border: 1px solid var(--line); background: rgba(255,255,255,.85); color: var(--text); border-radius: 999px; padding: 7px 14px; font: 500 12px var(--font-body); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.zone-nav button[aria-current="true"] { background: var(--gold); color: #fff; border-color: var(--gold); }

/* La scheda sta accanto al punto sulla mappa: il punto è al 30% della
   larghezza (computer) o al 26% dell'altezza (telefono), vedi mappa.js */
.zone-card {
  position: absolute; z-index: 2; left: calc(30% + 64px); top: 50%;
  width: min(360px, calc(70% - 100px)); transform: translate(-12px, -50%); opacity: 0; visibility: hidden;
  transition: opacity .45s ease, transform .45s ease, visibility .45s;
  background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: 0 22px 50px rgba(15,16,19,.14);
}
.zone-card.is-on { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.zone-card .zc-photo { aspect-ratio: 16 / 10; }
.zone-card .zc-photo > img { width: 100%; height: 100%; object-fit: cover; }
.zone-card .zc-body { padding: 18px 22px 22px; display: grid; gap: 2px; }
.zone-card .zc-zone { color: var(--gold); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; }
.zone-card h3 { font-size: 24px; margin-top: 2px; }
.zone-card .zc-place { color: var(--muted); font-size: 14px; }
.zone-card p { color: var(--text); font-size: 15px; margin-top: 6px; }
.zone-card .btn { margin-top: 12px; justify-self: start; min-height: 40px; font-size: 12px; }

@media (max-width: 760px) {
  :root[data-hero] .hero-copy, .hero-copy { left: 50%; transform: translateX(-50%); width: calc(100% - 40px); justify-items: center; text-align: center; gap: 10px; }
  :root[data-hero="a"] .hero-logo--v, :root:not([data-hero]) .hero-logo--v { width: 64px; }
  :root[data-hero="b"] .hero-logo--h { width: 170px; }
  :root[data-hero="b"] .hero-copy h1 { font-size: 28px; }
  :root[data-hero="c"] .hero-copy h1 { font-size: 17px; letter-spacing: .12em; }
}
.variant-switch { position: fixed; left: 14px; bottom: 14px; z-index: 60; display: flex; align-items: center; gap: 4px; padding: 5px 6px 5px 12px; border-radius: 999px; background: rgba(15,16,19,.88); color: #fff; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.variant-switch span { margin-right: 4px; color: rgba(255,255,255,.7); }
.variant-switch button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: #fff; font: 600 12px var(--font-body); cursor: pointer; }
.variant-switch button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.map-legend { position: absolute; right: max(20px, calc(50% - 560px)); bottom: 28px; z-index: 2; display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.map-legend .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
@media (max-width: 760px) { .map-legend { right: auto; left: 50%; transform: translateX(-50%); bottom: 16px; white-space: nowrap; font-size: 10.5px; } }
.scroll-hint { position: absolute; left: max(24px, calc(50% - 560px)); bottom: 30px; justify-items: start; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); display: grid; gap: 8px; z-index: 2; }
.scroll-hint::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); }

.zone-nav { position: absolute; right: max(20px, calc(50% - 560px)); top: 104px; z-index: 3; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 60%; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.zone-nav.show { opacity: 1; visibility: visible; }
.zone-nav button { border: 1px solid var(--line); background: rgba(255,255,255,.85); color: var(--text); border-radius: 999px; padding: 7px 14px; font: 500 12px var(--font-body); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.zone-nav button[aria-current="true"] { background: var(--gold); color: #fff; border-color: var(--gold); }

/* La scheda sta accanto al punto sulla mappa: il punto è al 30% della
   larghezza (computer) o al 26% dell'altezza (telefono), vedi mappa.js */
.zone-card {
  position: absolute; z-index: 2; left: calc(30% + 64px); top: 50%;
  width: min(380px, calc(70% - 100px)); transform: translate(-12px, -50%); opacity: 0; visibility: hidden;
  transition: opacity .45s ease, transform .45s ease, visibility .45s;
  background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 26px 26px 24px;
  box-shadow: 0 22px 50px rgba(15,16,19,.14); display: grid; gap: 6px;
}
.zone-card.is-on { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.zone-card .zc-zone { color: var(--gold); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.zone-card h3 { font-size: 24px; }
.zc-count { color: var(--muted); font-size: 15px; }
.zc-count b { color: var(--text); font-weight: 600; }
.zc-thumbs { list-style: none; margin: 10px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.zc-thumbs li { display: grid; gap: 4px; font-size: 12px; color: var(--muted); line-height: 1.3; align-content: start; }
.zc-thumbs img, .zc-thumbs .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.zc-thumbs .ph img { width: 26px !important; aspect-ratio: auto; margin: 0; }
.zc-thumbs .more { aspect-ratio: 1; border-radius: 14px; background: var(--mist); display: grid; place-items: center; font-size: 18px; color: var(--gold); }
.zone-card .btn { margin-top: 8px; justify-self: start; min-height: 42px; font-size: 13px; }

@media (max-width: 760px) {
  .hero-copy { left: 20px; right: 20px; width: auto; top: 104px; transform: none; text-align: center; }
  .hero-copy h1 { font-size: clamp(34px, 9.6vw, 44px); }
  .zone-nav { display: none; }
  .zone-card { left: 16px; right: 16px; width: auto; top: calc(30% + 40px); transform: translateY(12px); display: grid; grid-template-columns: 108px 1fr; }
  .zone-card.is-on { transform: translateY(0); }
  .zone-card .zc-photo { aspect-ratio: auto; height: 100%; }
  .zone-card .zc-body { padding: 14px 16px; }
  .zone-card h3 { font-size: 20px; }
  .zone-card p { font-size: 13px; margin-top: 2px; }
  .zone-card .btn { min-height: 36px; padding: 0 14px; font-size: 11px; margin-top: 8px; }
  .scroll-hint { display: none; }
}

/* ---------- HOME: prenota ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 6px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 999px; padding: 9px 16px; font: 500 13px var(--font-body); letter-spacing: .06em; cursor: pointer; }
.chip span { color: var(--gold); margin-left: 4px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-pressed="true"] span { color: var(--gold); }
.slide[hidden], .grid-item[hidden] { display: none; }
.kross-note { text-align: center; margin: -22px auto 40px; font-size: 13px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 16px; padding: 12px; width: min(820px, 100%); }
.featured-h { margin-bottom: 18px; text-align: center; font-size: 22px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.house-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px 24px; }
.grid-count { text-align: center; color: var(--muted); margin: 14px 0 26px; font-size: 15px; }
.grid-count b { color: var(--text); }
/* la sezione successiva sale sopra la parte vuota in fondo alla mappa;
   il beige della mappa sfuma nel bianco poco prima del titolo */
.stay {
  position: relative; z-index: 3; margin-top: -20vh; padding: 12vh 0 var(--sec);
  background: linear-gradient(rgba(255,255,255,0) 0, rgba(255,255,255,.75) 6vh, #fff 10.5vh);
}
@media (max-width: 760px) { .stay { margin-top: -30vh; } }
.stay .booking { margin-bottom: var(--sec); }
.center { text-align: center; }

/* ---------- HOME: perché Ritenz ---------- */
.why { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; position: relative; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.why-list li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: center; }
.icon3d { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.12)); }
.why-list li + li { padding-top: 30px; border-top: 1px solid rgba(215,168,65,.3); }
.icon { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; color: var(--gold); }
.icon svg { width: 24px; height: 24px; }
.why-list h3 { font-size: 18px; color: var(--gold); font-weight: 500; margin-bottom: 2px; }
.why-list p { color: var(--muted); }
.why .photo { aspect-ratio: 4 / 5; border-radius: 40px; }
.why-mark { position: absolute; right: 8%; top: -190px; width: 200px; opacity: .08; pointer-events: none; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; gap: var(--gap-title); } .why .photo { aspect-ratio: 4 / 3; } .why-mark { display: none; } }

/* ---------- Servizi ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service {
  position: relative; overflow: hidden; text-align: center; display: grid; gap: 14px; justify-items: center;
  padding: 48px 36px 40px; border-radius: 38px; border: 1.5px solid var(--gold);
  background: linear-gradient(180deg, #f1efeb, #fff 60%); box-shadow: var(--shadow);
}
.service .bg-word { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); font-size: clamp(60px, 9vw, 104px); font-weight: 600; letter-spacing: .02em; color: rgba(15,16,19,.05); white-space: nowrap; pointer-events: none; text-transform: uppercase; line-height: 1; }
.service .kicker { font-size: 22px; position: relative; }
.service h3 { font-size: clamp(34px, 4vw, 44px); color: var(--gold); font-weight: 500; margin-top: -16px; position: relative; }
.service p { color: var(--muted); max-width: 34ch; position: relative; }
.service--alt { border-color: #a99468; }
.service--alt h3 { color: #a99468; }
.btn--taupe { background: #a99468; color: #fff; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* ---------- Recensioni ---------- */
.review { background: #fff; border-radius: 30px; padding: 30px; box-shadow: var(--shadow); display: grid; gap: 14px; height: 100%; }
.review .who { display: flex; align-items: center; gap: 14px; }
.avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-size: 20px; flex: none; }
.review .name { font-weight: 500; }
.review .role { font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.stars { color: var(--gold); letter-spacing: 3px; font-size: 15px; }
.review blockquote { margin: 0; font-size: 18px; line-height: 1.55; }
/* Recensioni che scorrono lente da sole; si fermano al tocco o col mouse sopra */
.marquee { overflow: hidden; padding-block: 6px 14px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.marquee:active { cursor: grabbing; }
.marquee-track { display: flex; gap: 18px; width: max-content; padding-inline: 20px; will-change: transform; }
.marquee .slide { flex: 0 0 min(400px, 78vw); transform: none; opacity: 1; }
.marquee .review { height: 100%; align-content: start; }
@media (max-width: 760px) { .review { padding: 24px; gap: 10px; border-radius: 24px; } .review blockquote { font-size: 16px; } }

/* ---------- Pagine interne ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: var(--sec); }
.split .photo { aspect-ratio: 4 / 5; border-radius: 40px; }
.split h3 { font-size: 22px; color: var(--gold); font-weight: 500; margin-bottom: 14px; }
.split .prose { display: grid; gap: 14px; font-size: 18px; max-width: 46ch; }
.signature { display: grid; gap: 2px; margin-top: 20px; padding-left: 14px; border-left: 2px solid var(--gold); }
.sig-name { font-size: 17px; font-weight: 500; color: var(--text); }
.sig-role { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 760px) { .split .prose { font-size: 16.5px; } }
.split--rev .photo { order: -1; }
/* sul telefono: testo e poi la sua foto, per entrambi i blocchi */
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--gap-title); } .split--rev .photo { order: 2; } .split .photo { aspect-ratio: 4 / 3.4; } }
.office-text { max-width: 820px; margin: 0 auto var(--gap-title); display: grid; gap: 12px; text-align: center; font-size: 18px; }
.office .slide .photo { aspect-ratio: 16 / 11; }
.partners { border-radius: 34px; box-shadow: var(--shadow); padding: var(--sec) 24px; background: #fff; }
.partner-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.partner { height: 84px; border-radius: 18px; border: 1px solid rgba(215,168,65,.4); display: grid; place-items: center; padding: 16px 18px; background: #fff; }
.partner span { font-size: 18px; font-weight: 500; letter-spacing: .02em; color: var(--text); }
.partner img { max-height: 38px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 760px) { .partner-row { grid-template-columns: 1fr 1fr; } .partner { height: 70px; } .partner span { font-size: 16px; } }
.cta-band { text-align: center; display: grid; justify-items: center; }
.social-band { overflow: hidden; background: var(--ink); color: #fff; border-radius: 40px; padding: var(--sec) clamp(24px, 6vw, 72px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.social-band h2 { font-size: clamp(28px, 3.4vw, 40px); }
.social-band p { color: rgba(255,255,255,.75); margin-top: 12px; max-width: 40ch; }
.social-band .handle { display: inline-block; max-width: 100%; overflow-wrap: anywhere; margin-top: 18px; font-family: var(--font-script); color: var(--gold); font-size: clamp(30px, 8vw, 44px); line-height: 1.25; text-decoration: none; }
/* telefono con il profilo Instagram: sale dal basso e si raddrizza mentre scorri (vedi main.js) */
.phone-stage { display: block; perspective: 1100px; justify-self: center; }
.phone {
  --p: 1; width: min(250px, 62vw); border-radius: 38px; padding: 9px; background: #0b0b0c;
  box-shadow: 0 0 0 1.5px #3a3b40, 0 30px 60px rgba(0,0,0,.55), 0 0 60px rgba(215,168,65,.12);
  transform: translateY(calc((1 - var(--p)) * 140px)) rotateX(calc((1 - var(--p)) * 28deg)) rotateY(calc((1 - var(--p)) * -32deg)) rotateZ(calc((1 - var(--p)) * -8deg));
  opacity: calc(.35 + var(--p) * .65); will-change: transform;
}
.phone img { display: block; width: 100%; height: auto; border-radius: 30px; } /* screenshot intero, senza tagli */
.social-band .socials { margin-top: 18px; }
@media (max-width: 760px) { .social-band { grid-template-columns: 1fr; } }

.contact-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 22px; }
.contact-info h3 { font-size: 22px; font-weight: 400; line-height: 1.3; }
.contact-info .row { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; }
.contact-info .row small { display: block; color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.contact-info .row a, .contact-info .row span { text-decoration: none; font-size: 17px; }
.contact-info .icon { width: 46px; height: 46px; }
.contact-info .icon svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .contact-split { grid-template-columns: 1fr; } }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 48px; margin: 10px 0 36px; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: center; }
.feature .icon { width: 50px; height: 50px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; font-weight: 500; color: var(--gold); margin-bottom: 4px; }
.feature p { color: var(--muted); }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }
dialog.plan {
  width: min(980px, calc(100% - 24px)); max-height: calc(100dvh - 40px); overflow: hidden;
  padding: 0; border-radius: 30px; border: 1px solid var(--line);
  background: #fff; color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
dialog.plan::backdrop { background: rgba(15,16,19,.55); backdrop-filter: blur(4px); }
dialog.plan[open] { animation: pop .3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { dialog.plan[open] { animation: none; } }
.dlg-body { max-height: calc(100dvh - 42px); overflow: auto; padding: 52px clamp(20px, 5vw, 60px) 40px; overscroll-behavior: contain; }
.dlg-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(245,243,239,.92); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.dlg-close svg { width: 16px; height: 16px; }
.dlg-close:hover { color: var(--text); background: var(--mist); }
.plan .title { margin-bottom: 36px; }
.plan .title .kicker { font-size: 24px; }
.plan .title h2 { color: var(--gold); font-weight: 500; font-size: clamp(36px, 4.6vw, 52px); margin-top: -6px; }
.plan--alt .title h2 { color: #a99468; }
.soon { text-align: center; max-width: 620px; margin-inline: auto; display: grid; gap: 18px; justify-items: center; color: var(--muted); font-size: 18px; }
.dlg-body:focus { outline: none; }

/* Comparsa leggera allo scroll: solo per ciò che è sotto lo schermo all'apertura */
.rv { transition: opacity .8s ease, transform .85s cubic-bezier(.2,.7,.2,1), filter .8s ease; transition-delay: var(--rv-delay, 0ms); }
.rv.rv-wait { opacity: 0; transform: translateY(32px); }
.rv-pop.rv-wait { transform: scale(.5) rotate(-10deg); }
.rv-zoom.rv-wait { transform: scale(.93); }
@media (prefers-reduced-motion: reduce) {
  .rv { transition: opacity .9s ease, filter .9s ease; transition-delay: var(--rv-delay, 0ms); }
  .rv.rv-wait, .rv-pop.rv-wait, .rv-zoom.rv-wait { transform: none; filter: blur(6px); }
}

/* Pagina Strutture: pannello filtri */
.filters { background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: 22px; display: grid; gap: 16px; margin-bottom: var(--gap-title); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-field { display: grid; gap: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.f-field .input { min-height: 46px; font-size: 15px; text-transform: none; letter-spacing: 0; padding-right: 40px; text-overflow: ellipsis; }
.f-am { display: flex; flex-wrap: wrap; gap: 8px; }
.chip--am { padding: 8px 14px; font-size: 13px; }
.f-reset { justify-self: start; border: 0; background: none; padding: 2px 0; font: 500 13px var(--font-body); color: var(--gold); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.house .meta { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.grid-empty { text-align: center; display: grid; gap: 16px; justify-items: center; color: var(--muted); padding: var(--gap-title) 0; }
@media (max-width: 760px) {
  .filters { padding: 18px; border-radius: 24px; }
  .f-am { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .f-am::-webkit-scrollbar { display: none; }
  .chip--am { flex: none; }
}
.f-search { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--mist); }
.f-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,168,65,.2); }
.f-search svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.f-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 16px var(--font-body); color: var(--text); outline: none; }
.more-wrap { margin-top: var(--gap-title); }
.grid-empty b { color: var(--text); font-weight: 500; font-size: 18px; }
.f-search input::-webkit-calendar-picker-indicator { display: none !important; }

/* attributo hidden sempre rispettato, anche su elementi con display impostato */
[hidden] { display: none !important; }

/* Scheda della singola struttura */
html, body { overflow-x: clip; } /* niente spostamenti laterali durante lo scroll */
.sd { padding-top: 96px; }
.sd-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; padding-top: calc(var(--sec) * .4); }
.sd-back { grid-column: 1 / -1; font-size: 14px; color: var(--muted); text-decoration: none; }
.sd-back:hover { color: var(--gold); }
.gallery { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--mist); }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; }
.g-track::-webkit-scrollbar { display: none; }
.g-slide { flex: 0 0 100%; scroll-snap-align: start; }
.g-pic { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.g-slide img, .g-slide .ph { width: 100%; height: 100%; object-fit: cover; }
.g-count { position: absolute; right: 14px; bottom: 14px; background: rgba(15,16,19,.6); color: #fff; font-size: 13px; padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(6px); pointer-events: none; }
.g-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.g-prev { left: 12px; } .g-next { right: 12px; }
.sd-head { display: grid; gap: 4px; }
.sd-zone { color: var(--gold); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; }
.sd-head h1 { font-size: clamp(32px, 4vw, 46px); }
.sd-place { color: var(--muted); }
.sd-facts { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sd-facts li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.sd-facts b { font-weight: 600; }
.sd-cta { margin-top: 18px; }
.sd-body { max-width: 820px; padding-block: var(--sec); display: grid; gap: var(--sec); }
.sd-block h2 { font-size: 22px; color: var(--gold); font-weight: 500; margin-bottom: 14px; }
.sd-desc { display: grid; gap: 12px; font-size: 17px; }
.sd-spaces { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sd-spaces li { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid var(--gold); }
.sd-spaces b { font-weight: 500; }
.sd-spaces span { color: var(--muted); font-size: 15px; }
.sd-serv { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
.sd-serv + .sd-serv { margin-top: 14px; }
.sd-serv li { display: flex; align-items: center; gap: 12px; }
.sd-serv svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.link-btn { margin-top: 16px; border: 0; background: none; padding: 0; font: 500 15px var(--font-body); color: var(--text); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.sd-times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sd-times div { background: var(--mist); border-radius: 18px; padding: 14px 18px; display: grid; }
.sd-times small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sd-times b { font-weight: 500; }
.sd-rules { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.sd-rules li::marker { color: var(--gold); }
.sd-cin { margin-top: 16px; font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.sd-bar { display: none; }
/* foto a schermo intero */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b0b0c; color: #fff; }
.viewer::backdrop { background: #0b0b0c; }
.v-track { height: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.v-track::-webkit-scrollbar { display: none; }
.v-slide { flex: 0 0 100%; margin: 0; display: grid; place-items: center; scroll-snap-align: center; padding: 60px 0; }
.v-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.v-close { position: absolute; top: 14px; left: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.v-close svg { width: 18px; height: 18px; }
.v-count { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-size: 14px; color: rgba(255,255,255,.8); }
@media (max-width: 760px) {
  .sd-top { grid-template-columns: 1fr; gap: 18px; }
  .gallery { margin-inline: -20px; border-radius: 0; box-shadow: none; }
  .g-arrow { display: none; }
  .sd-cta { display: none; }
  .sd-serv { gap: 12px 14px; font-size: 15px; }
  .sd-bar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: rgba(255,255,255,.96); border-radius: 999px; padding: 8px 8px 8px 22px; box-shadow: 0 10px 30px rgba(0,0,0,.18); backdrop-filter: blur(10px); }
  .sd-bar div { display: grid; line-height: 1.2; min-width: 0; }
  .sd-bar b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sd-bar span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sd-bar .btn { min-height: 44px; padding: 0 18px; font-size: 12px; flex: none; }
  .sd ~ .site-footer { padding-bottom: 90px; }
}
.sd-bar { transition: transform .35s ease, opacity .35s ease; } .sd-bar.is-away { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* sezioni con modulo: meno spazio sopra/sotto e tra titolo e caselle */
#richiesta, #contattaci { padding-block: calc(var(--sec) * .7); }
#richiesta .title, #contattaci .title { margin-bottom: 14px; gap: 2px; }


/* Affidaci: i tre passaggi */
.steps { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; }
.steps li { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 26px 22px; border-radius: 26px; background: #fff; border: 1px solid rgba(215,168,65,.35); box-shadow: var(--shadow); }
.steps .icon3d { width: 52px; height: 52px; }
/* numero oro a sinistra del titolo, testo sotto allineato al titolo */
.steps li div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; text-align: left; }
.step-n { color: var(--gold); font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.steps h3 { grid-column: 2; }
.steps p { grid-column: 1 / -1; }
/* i tre passaggi entrano uno dopo l'altro all'apertura della pagina */
.js .steps li { opacity: 0; }
.steps.go li { opacity: 1; animation: stepIn .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 300ms + 150ms); }
@keyframes stepIn { from { opacity: 0; transform: translateY(28px); } }
.steps.go li .icon3d { animation: iconPop .7s cubic-bezier(.2,.9,.3,1.3) both; animation-delay: calc(var(--i, 0) * 300ms + 400ms); }
@keyframes iconPop { from { opacity: 0; transform: scale(.4) rotate(-12deg); } }
@media (prefers-reduced-motion: reduce) {
  @keyframes stepIn { from { opacity: 0; filter: blur(6px); } }
  @keyframes iconPop { from { opacity: 0; } }
}
.steps h3 { font-size: 18px; font-weight: 500; margin-bottom: 4px; }
.steps p { font-size: 15px; color: var(--muted); }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .steps li { grid-template-columns: 44px 1fr; justify-items: start; text-align: left; align-items: center; padding: 18px; gap: 16px; border-radius: 22px; }
  .steps .icon3d { width: 44px; height: 44px; }
  .step-n { font-size: 14px; }
  .steps h3 { margin: 0; font-size: 16.5px; }
  .steps p { font-size: 14.5px; margin-top: 4px; }
}
.fieldset { border: 0; padding: 0; margin: 4px 0 0; }
.fieldset legend { font-size: 13px; color: var(--muted); padding-left: 18px; margin-bottom: 6px; }

/* Selettore lingua: solo bandierine. Computer: bandiera della lingua attuale con menu a tendina.
   Telefono: tre bandiere in fondo al menu. */
.flag { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex: none; }
.flag-it { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Cpath fill='%23009246' d='M0 0h1v2H0z'/%3E%3Cpath fill='%23fff' d='M1 0h1v2H1z'/%3E%3Cpath fill='%23ce2b37' d='M2 0h1v2H2z'/%3E%3C/svg%3E"); }
.flag-de { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'%3E%3Cpath d='M0 0h5v1H0z'/%3E%3Cpath fill='%23dd0000' d='M0 1h5v1H0z'/%3E%3Cpath fill='%23ffce00' d='M0 2h5v1H0z'/%3E%3C/svg%3E"); }
.flag-en { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cpath fill='%23012169' d='M0 0h60v30H0z'/%3E%3Cpath stroke='%23fff' stroke-width='6' d='M0 0l60 30M60 0L0 30'/%3E%3Cpath stroke='%23C8102E' stroke-width='2' d='M0 0l60 30M60 0L0 30'/%3E%3Cpath stroke='%23fff' stroke-width='10' d='M30 0v30M0 15h60'/%3E%3Cpath stroke='%23C8102E' stroke-width='6' d='M30 0v30M0 15h60'/%3E%3C/svg%3E"); }
.lang-dd { position: relative; }
.lang-dd summary { list-style: none; cursor: pointer; padding: 6px 4px 6px 6px; display: flex; align-items: center; gap: 5px; color: var(--muted); }
.lang-dd summary::-webkit-details-marker { display: none; }
.lang-dd summary::after { content: ""; width: 5px; height: 5px; border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,.14); padding: 6px; display: grid; min-width: 150px; }
.lang-menu a { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.lang-menu .flag { width: 18px; height: 18px; }
.lang-menu a:hover { background: var(--mist); }
.lang-menu a[aria-current="true"] { color: var(--gold); font-weight: 500; }
.lang-row { display: none; }
@media (max-width: 980px) {
  .lang-dd { display: none; }
  .lang-row { display: flex; justify-content: center; gap: 14px; padding-top: 12px; margin-top: 4px; border-top: 1px solid rgba(215,168,65,.25); }
  .lang-row a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; }
  .lang-row .flag { width: 26px; height: 26px; opacity: .55; transition: opacity .2s; }
  .lang-row a[aria-current="true"] { box-shadow: 0 0 0 1.5px var(--gold); }
  .lang-row a[aria-current="true"] .flag { opacity: 1; }
}

/* Rifiniture versione computer */
.why .photo { position: relative; z-index: 1; }
@media (min-width: 861px) {
  .plan .title h2 { margin-top: -12px; line-height: 1.05; }
}
@media (min-width: 861px) {
  .hero-copy { width: min(900px, calc(100% - 40px)); }
  :root:not([data-hero]) .hero-copy .l3, :root[data-hero="a"] .hero-copy .l3 { display: inline; }
  :root:not([data-hero]) .hero-logo--v, :root[data-hero="a"] .hero-logo--v { width: 96px; }
}

/* Header da computer: stesso margine a destra (bandiera) e a sinistra (logo) */
@media (min-width: 981px) {
  .site-header .bar { padding-right: 20px; }
  .nav a.link { padding-inline: 10px; }
}
/* Chi siamo – rifiniture computer */
@media (min-width: 861px) {
  .split .photo { aspect-ratio: 4 / 3.3; }
  .split .photo img { object-position: center 30%; }
  .social-band { grid-template-columns: auto auto; justify-content: center; column-gap: clamp(60px, 10vw, 150px); padding-block: 44px; }
  .social-band .phone { width: 215px; }
}
.nav a.link, .nav .btn { white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1180px) {
  .site-header .bar { gap: 10px; padding-left: 18px; padding-right: 16px; }
  .nav { gap: 2px; }
  .nav a.link { font-size: 13px; padding-inline: 7px; letter-spacing: .04em; }
  .nav .btn { padding: 0 14px; font-size: 12px; }
}

/* Entrata degli elementi già visibili all'apertura della pagina */
.rv-in { animation: rvIn .85s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: var(--rv-delay, 0ms); }
@keyframes rvIn { from { opacity: 0; transform: translateY(28px); } }
@media (prefers-reduced-motion: reduce) {
  .rv-in { animation-name: rvInSoft; }
  @keyframes rvInSoft { from { opacity: 0; filter: blur(6px); } }
}

/* I nostri partner: i loghi si accendono uno alla volta (oro sotto), su tutti i dispositivi */
.partner-row { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.partner { position: relative; border: 0; background: #fff; border-radius: 22px; height: 96px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 6px 18px rgba(15,16,19,.05);
  transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s ease; }
.partner img { filter: grayscale(1); opacity: .45; transition: filter .6s ease, opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.partner::after { content: ""; position: absolute; left: 50%; bottom: 14px; width: 34px; height: 2px; border-radius: 2px; background: var(--gold);
  transform: translateX(-50%) scaleX(0); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.partner.on { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15,16,19,.10), 0 0 0 1px rgba(215,168,65,.35); }
.partner.on img { filter: none; opacity: 1; transform: scale(1.06); }
.partner.on::after { transform: translateX(-50%) scaleX(1); }
@media (max-width: 760px) { .partner-row { grid-template-columns: 1fr 1fr; gap: 12px; } .partner { height: 78px; border-radius: 18px; } .partner::after { bottom: 10px; } }

/* Schede strutture: posti letto e bagni con piccola icona */
.house .meta { display: flex; justify-content: center; gap: 14px; margin-top: 4px; font-size: 13.5px; color: var(--muted); letter-spacing: .02em; }
.house .meta .mi { display: inline-flex; align-items: center; gap: 6px; }
.house .meta svg { width: 17px; height: 17px; color: var(--gold); flex: none; }
/* Invito finale (Chi siamo, Strutture): da computer diventa un riquadro beige proporzionato */
@media (min-width: 861px) {
  .section--cta { background: transparent; padding-top: 0; }
  .soon p { max-width: 54ch; }
  .section--cta .cta-band, .soon { background: var(--mist); border-radius: 40px; max-width: 920px; margin-inline: auto; padding: 60px 56px; }
}

/* Scheda struttura da computer: mosaico foto centrato, poi titolo e dettagli sulla stessa colonna */
.g-mosaic, .v-arrow { display: none; }
@media (min-width: 861px) {
  .sd-top { grid-template-columns: 1fr; gap: 28px; max-width: 1000px; align-items: start; }
  .sd-body { max-width: 1000px; }
  .g-mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: clamp(380px, 36vw, 520px); position: relative; }
  .g-mosaic button { padding: 0; border: 0; background: var(--mist); overflow: hidden; cursor: zoom-in; border-radius: 14px; }
  .g-mosaic .gm-0 { grid-row: 1 / 3; border-radius: var(--radius) 14px 14px var(--radius); }
  .g-mosaic .gm-1 { border-top-right-radius: var(--radius); }
  .g-mosaic .gm-2 { border-bottom-right-radius: var(--radius); }
  .g-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
  .g-mosaic button:hover img { transform: scale(1.04); }
  .g-mosaic .gm-all { position: absolute; right: 16px; bottom: 16px; background: rgba(255,255,255,.95); border-radius: 999px; padding: 10px 18px; font: 500 13px var(--font-body); letter-spacing: .06em; color: var(--text); cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.15); display: inline-flex; gap: 8px; align-items: center; }
  .g-mosaic .gm-all:hover { background: #fff; }
  .gallery--m { display: none; }
  .sd-head { grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
  .sd-side { display: grid; justify-items: end; }
  .sd-facts { margin-top: 0; justify-content: flex-end; }
  .v-arrow { display: grid; place-items: center; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
  .v-arrow:hover { background: rgba(255,255,255,.22); }
  .v-prev { left: 20px; } .v-next { right: 20px; }
  /* Richiedi disponibilità in un riquadro beige arrotondato, come le CTA */
  #richiesta, #contattaci { background: transparent; }
  #richiesta, #contattaci.section--mist { padding-top: 0; }
  #richiesta > .wrap, #contattaci > .wrap { background: var(--mist); border-radius: 40px; max-width: 920px; padding: 56px 56px 48px; }
}
/* Scheda struttura da computer: rifiniture */
@media (min-width: 861px) {
  .sd-head { grid-template-columns: 1fr; align-items: start; gap: 4px; }
  .sd-side { justify-items: start; margin-top: 10px; }
  .sd-facts { justify-content: flex-start; }
  .sd-body { gap: calc(var(--sec) * .5); padding-top: calc(var(--sec) * .5); }
  /* foto a schermo intero: finestra contenuta, non a tutto schermo */
  .viewer { width: min(980px, 88vw); height: min(680px, 84vh); border-radius: 28px; overflow: hidden; margin: auto; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
  .viewer::backdrop { background: rgba(10,10,12,.82); backdrop-filter: blur(6px); }
  .v-slide { padding: 64px 80px 40px; }
  .v-slide { height: 100%; box-sizing: border-box; }
  .v-slide img { border-radius: 16px; max-height: calc(min(680px, 84vh) - 104px); max-width: 100%; }
  .v-close { left: auto; right: 16px; }
}

.sd-facts li { display: inline-flex; align-items: center; gap: 6px; }
.sd-facts svg { width: 17px; height: 17px; color: var(--gold); flex: none; }
/* Contatti da computer: recapiti in schede, centrati in altezza rispetto al modulo, che si evidenziano al passaggio */
@media (min-width: 861px) {
  .contact-split { align-items: center; gap: 48px; }
  .contact-info { gap: 16px; }
  .contact-info .row { position: relative; grid-template-columns: 56px 1fr; gap: 18px; background: #fff; border-radius: 22px; padding: 20px 24px;
    box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 6px 18px rgba(15,16,19,.05);
    transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease; }
  .contact-info .row .icon3d { width: 56px; height: 56px; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .contact-info .row::after { content: ""; position: absolute; left: 104px; bottom: 14px; width: 34px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .contact-info .row:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15,16,19,.10), 0 0 0 1px rgba(215,168,65,.35); }
  .contact-info .row:hover .icon3d { transform: scale(1.1) rotate(-4deg); }
  .contact-info .row:hover::after { transform: scaleX(1); }
  .contact-info .row:hover a { color: var(--gold); }
  .contact-info .row a { transition: color .3s; }
  .contact-info .row a::before { content: ""; position: absolute; inset: 0; border-radius: 22px; } /* tutta la scheda è cliccabile */
}

/* Affidaci da computer: i tre passaggi occupano tutta la larghezza e i titoli stanno su una riga */
@media (min-width: 861px) { .steps { max-width: none; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .steps h3 { white-space: nowrap; } html[lang="de"] .steps h3 { white-space: normal; } }
/* Affidaci da computer: i passaggi si animano al passaggio del mouse */
@media (hover: hover) and (min-width: 861px) {
  .steps li { position: relative; transition: translate .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease, border-color .5s ease; }
  .steps li::after { content: ""; position: absolute; left: 50%; bottom: 14px; width: 34px; height: 2px; margin-left: -17px; border-radius: 2px; background: var(--gold); scale: 0 1; transition: scale .5s cubic-bezier(.2,.7,.2,1); }
  .steps .icon3d { transition: scale .5s cubic-bezier(.2,.9,.3,1.3), rotate .5s cubic-bezier(.2,.9,.3,1.3); }
  .steps .step-n { display: inline-block; transition: scale .4s ease; }
  .steps li:hover { translate: 0 -6px; border-color: var(--gold); box-shadow: 0 18px 38px rgba(15,16,19,.12); }
  .steps li:hover::after { scale: 1 1; }
  .steps li:hover .icon3d { scale: 1.15; rotate: -6deg; }
  .steps li:hover .step-n { scale: 1.15; }
}
/* Affidaci da computer: i passaggi reagiscono al passaggio del mouse (come le schede dei contatti) */
@media (hover: hover) and (min-width: 861px) {
  .steps li { position: relative; transition: translate .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease, border-color .5s ease; }
  .steps li .icon3d { transition: scale .5s cubic-bezier(.2,.9,.3,1.3), rotate .5s cubic-bezier(.2,.9,.3,1.3); }
  .steps li::after { content: ""; position: absolute; left: 50%; bottom: 14px; width: 34px; height: 2px; margin-left: -17px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .steps li:hover { translate: 0 -6px; border-color: rgba(215,168,65,.8); box-shadow: 0 18px 40px rgba(15,16,19,.12); }
  .steps li:hover .icon3d { scale: 1.15; rotate: -6deg; }
  .steps li:hover::after { transform: scaleX(1); }
  .steps li:hover h3 { color: var(--gold); }
  .steps h3 { transition: color .3s; }
}
b, strong { font-weight: 600; }
/* Pagine legali */
.legal { max-width: 760px; display: grid; gap: 12px; }
.legal h2 { font-size: 21px; color: var(--gold); font-weight: 500; margin-top: 18px; }
.legal p { color: var(--text); }
.legal .legal-upd { color: var(--muted); font-size: 14px; }
.legal a { color: var(--gold); }
/* Pagine zona e domande frequenti */
a.sd-zone { text-decoration: none; }
a.sd-zone:hover { text-decoration: underline; text-underline-offset: 3px; }
.zone-locs { text-align: center; color: var(--muted); font-size: 14px; letter-spacing: .06em; margin: 0 auto 26px; max-width: 760px; }
.faq { max-width: 820px; display: grid; gap: 40px; }
.faq-h { font-size: 22px; font-weight: 500; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.faq-item { border-bottom: 1px solid rgba(15,16,19,.1); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-size: 17px; font-weight: 500; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.6px solid var(--gold); border-bottom: 1.6px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform .3s; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item summary:hover { color: var(--gold); }
.faq-item p { padding: 0 0 20px; color: var(--muted); line-height: 1.7; }
.foot-zones { font-size: 13px; color: rgba(255,255,255,.6); padding: 18px 0 0; margin-top: 26px; border-top: 1px solid rgba(255,255,255,.12); line-height: 1.9; }
.foot-zones a { color: rgba(255,255,255,.85); text-decoration: none; }
.foot-zones a:hover { color: var(--gold); }
.zone-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 272px)); justify-content: center; }
@media (max-width: 760px) { .zone-grid { grid-template-columns: 1fr; } }
/* Gestione Completa / Parziale: la parola di sfondo si "riempie" d'oro quando la scheda entra nello schermo;
   col mouse (o il dito) una luce dorata segue il puntatore e la scheda si solleva leggermente */
.service { --mx: 50%; --my: 0%; --ink: 215,168,65; transition: translate .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease; }
.service--alt { --ink: 169,148,104; }
.service .bg-word {
  color: transparent; -webkit-text-stroke: 1px rgba(var(--ink), .11);
  background: linear-gradient(90deg, rgba(var(--ink), .06) 0 50%, transparent 50% 100%) no-repeat;
  background-size: 200% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  transition: background-position 1.6s cubic-bezier(.6,.05,.25,1), -webkit-text-stroke-color .6s;
}
.service.ink .bg-word { background-position: 0 0; }
.service::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .45s ease;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--ink), .20), transparent 60%); }
.service.lit::before { opacity: 1; }
.service.lit { translate: 0 -6px; box-shadow: 0 22px 50px rgba(15,16,19,.12), 0 0 0 1px rgba(var(--ink), .5); }
.service.lit .bg-word { -webkit-text-stroke-color: rgba(var(--ink), .2); }
.service > * { position: relative; }
.service > .bg-word { position: absolute; }
/* Perché affidarsi a Ritenz: le linee oro si disegnano, le icone "saltano" in sequenza;
   al passaggio del mouse (o al tocco) l'icona si solleva e il titolo si sposta appena */
.why-list li { position: relative; }
.why-list li + li { border-top-color: transparent; }
.why-list li + li::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: rgba(215,168,65,.45);
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.6,.05,.25,1) .1s; }
.why-list li.go + li::before, .why-list li + li.go::before { transform: scaleX(1); }
.why-list .icon3d { transition: scale .5s cubic-bezier(.2,.9,.3,1.4), rotate .5s cubic-bezier(.2,.9,.3,1.4), translate .5s cubic-bezier(.2,.7,.2,1); }
.why-list .icon3d { opacity: 0; }
.why-list li.go .icon3d { opacity: 1; animation: whyPop .9s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes whyPop { 0% { scale: .4; rotate: -14deg; opacity: 0; } 60% { scale: 1.12; rotate: 4deg; opacity: 1; } 100% { scale: 1; rotate: 0deg; } }
.why-list h3 { transition: translate .4s cubic-bezier(.2,.7,.2,1); }
.why-list li.hot .icon3d { scale: 1.14; rotate: -8deg; translate: 0 -3px; }
.why-list li.hot h3 { translate: 4px 0; }
/* Completa per prima: la Parziale parte un attimo dopo e finisce dopo (solo computer, dove sono affiancate) */
@media (min-width: 761px) { .service--alt .bg-word { transition-delay: .55s, 0s; } }
/* Perché affidarsi: il testo arriva insieme alla sua icona */
.why-list li > div { opacity: 0; translate: 0 14px; }
.why-list li.go > div { animation: whyText .8s cubic-bezier(.2,.7,.2,1) .12s both; }
@keyframes whyText { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
