/* =========================================================
   ProperHost Hospitality
   ========================================================= */

/* 1. Caratteri, ospitati sul sito (nessuna richiesta a Google) */
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/cormorant-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/cormorant-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("../fonts/cormorant-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/hanken-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/hanken-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* 2. Colori e misure */
:root {
  --carta:      #ffffff;   /* bianco, sfondo del sito */
  --carta-2:    #fafaf8;
  --foglio:     #f6f7f5;   /* bianco carta della prima schermata */
  --logo:       #46947e;   /* verde del logo originale */
  --inchiostro: #1d3b37;
  --testo:      #4d5f5b;
  --tenue:      #5f6e6a;
  --verde:      #17756a;
  --verde-sc:   #0f5a52;
  --verde-ch:   #7cc9bb;
  --linea:      rgba(23, 117, 106, .18);
  --ombra:      0 1px 2px rgba(29,59,55,.05), 0 10px 30px -12px rgba(29,59,55,.18);
  --serif:      "Cormorant", "Cormorant Garamond", Garamond, Georgia, serif;
  --sans:       "Hanken", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max:        1180px;
  --gutter:     clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 16px/1.65 var(--sans);
  color: var(--testo);
  background: var(--carta);
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; border-radius: 2px; }
/* testi bilingui: si vede solo la lingua della pagina */
html[lang="en"] [data-lang="it"], html:not([lang="en"]) [data-lang="en"] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* 3. Intestazione */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(30px, 4.5vh, 48px) max(var(--gutter), calc((100% - var(--max)) / 2)) 22px;
}
.top__home { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.top__home .segno { width: 34px; height: 34px; }
.top__home span { font: 500 20px/1 var(--serif); color: var(--verde); letter-spacing: .01em; }
.home .top__home, .con-hero .top__home { visibility: hidden; }
.top__destra { display: flex; align-items: center; gap: clamp(28px, 7vw, 120px); }
.top nav { display: flex; gap: clamp(26px, 3.6vw, 52px); perspective: 400px; }
/* su computer le voci stanno al centro della pagina */
@media (min-width: 761px) {
  .top nav.menu {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    display: flex; column-gap: clamp(22px, 2.6vw, 44px);
    width: max-content; margin: 0;
  }
  .top { padding-top: clamp(30px, 4.5vh, 48px); padding-bottom: clamp(30px, 4.5vh, 48px); }
}
/* schermi medi: quattro voci non stanno al centro, il menu si affianca alla lingua */
@media (min-width: 761px) and (max-width: 1180px) {
  .top nav.menu { position: static; transform: none; column-gap: clamp(16px, 2vw, 28px); }
  .top nav.menu a { font-size: 11px; letter-spacing: .12em; }
  .top__destra { gap: clamp(18px, 2.4vw, 30px); }
}
/* interruttore lingua IT / EN, in alto a destra */
.lingua {
  all: unset; cursor: pointer; box-sizing: border-box; position: relative;
  display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center;
  padding: 3px; border-radius: 999px; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(29,59,55,.2), 0 2px 8px -4px rgba(15,50,46,.2);
}
.lingua:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; }
.lingua__cursore {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--verde);
  box-shadow: 0 2px 6px -2px rgba(15,50,46,.45);
  transition: transform .35s cubic-bezier(.3,1.3,.5,1);
}
html[lang="en"] .lingua__cursore, .lingua.passa .lingua__cursore { transform: translateX(100%); }
html[lang="en"] .lingua.passa .lingua__cursore { transform: none; }
.lingua__opz {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 11px 7px 9px;
  font: 700 11.5px/1 var(--sans); letter-spacing: .12em; color: var(--inchiostro);
  transition: color .3s;
}
html:not([lang="en"]) .lingua__opz--it, html[lang="en"] .lingua__opz--en { color: #fff; }
.lingua.passa .lingua__opz { color: var(--inchiostro); }
html:not([lang="en"]) .lingua.passa .lingua__opz--en, html[lang="en"] .lingua.passa .lingua__opz--it { color: #fff; }
.lingua:not(.passa):hover .lingua__opz--en { opacity: .75; }
.bandiera {
  width: 16px; height: 16px; flex: none; border-radius: 50%; overflow: hidden; display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,.9), 0 0 0 2px rgba(29,59,55,.12);
}
.bandiera svg { width: 100%; height: 100%; display: block; }
.home .top { padding-top: clamp(40px, 6vh, 64px); }
.top nav a {
  position: relative; display: inline-block;
  font: 600 clamp(14px, 1.05vw, 18px)/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; color: var(--inchiostro); padding: 10px 2px;
  transform-origin: 50% 100%;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), color .3s, text-shadow .45s;
}
.top nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--verde); transform: scaleX(0); transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.top nav a:hover {
  color: var(--verde);
  transform: translateY(-2px) rotateX(14deg) scale(1.06);
  text-shadow: 0 1px 0 #fff, 0 3px 0 rgba(15,90,82,.12), 0 8px 14px rgba(15,90,82,.2);
}
.top nav a:hover::after, .top nav a[aria-current="page"]::after { transform: scaleX(1); }
.top nav a[aria-current="page"] { color: var(--verde); }

/* il logo ProperHost, versione sfumata in rilievo */
.segno { display: block; aspect-ratio: 1; background: url("../img/logo-3d.png") center / contain no-repeat; }

/* 4. Prima schermata: foglio da disegno con le onde a velo */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: clamp(110px, 14vh, 150px) var(--gutter) clamp(90px, 12vh, 130px);
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--foglio);
}
/* grana della carta ruvida, in rilievo con luce da sinistra (un unico foglio, senza giunture) */
.hero__carta { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; mix-blend-mode: multiply; opacity: .26; pointer-events: none; }
/* dissolvenza verso il panna della collezione */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: -1;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--carta));
}
.hero__onde {
  position: absolute; inset: 0; z-index: -1;
  /* le onde vere del biglietto (Stile.jpeg), estratte come velo:
     la fascia alta in alto, la fascia bassa in basso */
  background-image: url("../img/onde.jpg"), url("../img/onde.jpg");
  background-size: 100% auto, 100% auto;
  background-position: center -24vw, center calc(100% + 21vw);
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  mix-blend-mode: multiply;
  pointer-events: none;
}
/* su schermi verticali il biglietto entra quasi intero, come nell'originale */
@media (max-aspect-ratio: 4/5) {
  .hero__onde { background-image: url("../img/onde.jpg"); background-size: cover; background-position: center; }
}
.hero .segno {
  width: clamp(110px, 13vw, 160px);
  margin: 0 auto clamp(18px, 2.6vh, 28px);
}
.marchio {
  margin: 0;
  font: 500 clamp(54px, 8.6vw, 104px)/1 var(--serif);
  color: #1f7a6c;
  letter-spacing: -.005em;
}
.marchio + p {
  margin: clamp(26px, 4vh, 44px) 0 0;
  font: 400 clamp(19px, 2.5vw, 30px)/1 var(--serif);
  letter-spacing: .55em; margin-right: -.55em;
  text-transform: uppercase; color: #1f7a6c;
}
/* prima schermata delle pagine interne: tre quarti di altezza, logo in alto, titolo in basso */
.hero--pagina {
  min-height: 75vh; min-height: 75svh; justify-content: flex-start;
  padding: clamp(104px, 14vh, 140px) var(--gutter) clamp(44px, 7vh, 72px);
}
/* pagine interne: solo la fascia alta delle onde, che arriva appena sotto il logo e sfuma */
.hero--pagina .hero__onde {
  bottom: auto; height: calc(clamp(104px, 14vh, 140px) + clamp(84px, 9vw, 120px) + 150px);
  background-image: url("../img/onde.jpg"); background-size: 100% auto; background-position: center -13vw;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.hero--pagina .segno { width: clamp(84px, 9vw, 120px); height: clamp(84px, 9vw, 120px); margin: 0 auto; flex: none; }
.hero__casa { display: block; width: max-content; margin: 0 auto; flex: none; border-radius: 50%; transition: transform .35s ease; }
.hero__casa:hover { transform: translateY(-2px) scale(1.03); }
.hero__casa:focus-visible { outline: 2px solid var(--verde); outline-offset: 6px; }
/* il titolo parte sempre alla stessa altezza, qualunque sia la lunghezza del testo */
.hero__corpo { width: min(var(--max), 100%); max-width: none; margin: clamp(40px, 8vh, 84px) auto 0; text-align: left; }
/* Affidaci la tua casa: prima schermata piu' bassa, sotto si intravedono le formule */
.hero--corta { min-height: 0; padding-bottom: clamp(32px, 5vh, 52px); }
/* Proprieta e Chi siamo: da computer niente spazio vuoto sotto il testo, il contenuto sale */
@media (min-width: 761px) {
  .hero--corta-web { min-height: 0; padding-bottom: clamp(32px, 5vh, 52px); }
  /* stessa altezza nelle tre pagine: il testo occupa sempre lo spazio di tre righe */
  .hero--pagina .hero__testo { max-width: none; min-height: 4.5em; }
  /* il contenuto parte alla stessa altezza della linguetta "Il piu richiesto" di Affidaci la tua casa */
  .hero--corta-web + .sezione { margin-top: 0; padding-top: calc(clamp(8px, 2vw, 20px) - 5px); }
}
.sezione.sezione--formule { padding-top: 0; }
.hero__corpo .occhiello { margin-bottom: 16px; }
.hero__titolo { margin: 0; font: 400 clamp(44px, 6vw, 78px)/1.02 var(--serif); color: #1f7a6c; }
/* titoli delle pagine sfumati come il logo: dal verde acqua chiaro al verde scuro */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero--pagina .hero__titolo {
    display: inline-block; padding: 0 .04em .14em 0; margin-bottom: -.14em;
    background: linear-gradient(115deg, #5cbfaa 0%, #2a9a85 38%, #17756a 68%, #0d4f47 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  }
}
.hero__testo { margin: 18px 0 0; max-width: 640px; text-wrap: pretty; text-align: justify; font: 400 clamp(20px, 1.7vw, 24px)/1.5 var(--serif); color: var(--inchiostro); }
.con-hero main { padding-top: 0; }

/* ingresso morbido della prima schermata */
.entra { opacity: 0; transform: translateY(14px); animation: entra 1.2s cubic-bezier(.2,.7,.2,1) forwards; }
.entra:nth-child(2) { animation-delay: .25s; }
.entra:nth-child(3) { animation-delay: .45s; }
@keyframes entra { to { opacity: 1; transform: none; } }

/* 5. Titoli di sezione */
.sezione { padding: clamp(56px, 9vw, 110px) 0; }
.occhiello {
  display: block; margin: 0 0 12px;
  font: 500 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--verde);
}
.titolo {
  margin: 0; font: 400 clamp(34px, 5vw, 54px)/1.08 var(--serif); color: var(--inchiostro);
}
.intro { max-width: 620px; margin: 18px 0 0; }
.testa { margin-bottom: clamp(36px, 5vw, 56px); }

.categoria + .categoria { margin-top: clamp(64px, 9vw, 110px); }
.categoria__testa {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  padding-bottom: 16px; margin-bottom: clamp(24px, 3.5vw, 36px);
  border-bottom: 1px solid var(--linea);
}
.categoria__testa h3 { margin: 0; font: 500 clamp(28px, 3.6vw, 38px)/1 var(--serif); color: var(--verde); }
.categoria__testa p { margin: 0; color: var(--tenue); font: italic 400 19px/1.2 var(--serif); }

/* schede per localita', come su Valente */
.filtri {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px clamp(22px, 3.4vw, 44px);
  margin: 0 auto clamp(30px, 4vw, 46px); padding: 6px 0 0; border-bottom: 1px solid var(--linea);
}
.filtri button {
  all: unset; cursor: pointer; position: relative; padding: 12px 2px 14px;
  font: 500 clamp(15px, 1.2vw, 17px)/1 var(--sans); color: var(--testo); transition: color .3s;
}
.filtri button small { margin-left: 7px; font-size: 11px; color: var(--tenue); font-variant-numeric: lining-nums; }
.filtri button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--verde);
  transform: scaleX(0); transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.filtri button:hover, .filtri button[aria-pressed="true"] { color: var(--verde); }
.filtri button[aria-pressed="true"]::after { transform: scaleX(1); }
.filtri button:focus-visible { outline: 2px solid var(--verde); outline-offset: 4px; }
.filtri button:disabled { opacity: .35; cursor: default; }
/* Tutte / Ville / Appartamenti: interruttore a pillola sopra le localita' */
.tipi {
  display: flex; width: max-content; margin: 0 auto clamp(14px, 2vw, 22px); padding: 4px; gap: 2px;
  border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--linea);
}
.tipi button {
  all: unset; cursor: pointer; padding: 9px 18px; border-radius: 999px;
  font: 600 11.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--testo);
  transition: background .3s, color .3s;
}
.tipi button:hover { color: var(--verde); }
.tipi button[aria-pressed="true"] { background: var(--verde); color: #fff; }
.tipi button:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; }
.griglia > .card[hidden] { display: none; }

/* 6. Vetrine in 3D, stile scheda bianca */
.griglia { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(26px, 3vw, 40px) clamp(20px, 2.4vw, 32px); }
.griglia > .card { flex: 0 0 calc((100% - 2 * clamp(20px, 2.4vw, 32px)) / 3); }
.card {
  position: relative; display: block; text-decoration: none;
  background: #fff; border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(29,59,55,.07), 0 14px 34px -20px rgba(29,59,55,.3);
  transform-style: preserve-3d;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .7s cubic-bezier(.2,.7,.2,1), box-shadow .7s;
}
.card:hover { box-shadow: 0 0 0 1px rgba(29,59,55,.06), 0 34px 60px -26px rgba(15,60,55,.42); }
.card__link { display: block; color: inherit; text-decoration: none; border-radius: inherit; }
.card__link:focus-visible { outline: 2px solid var(--verde); outline-offset: 4px; }
/* frecce per scorrere le foto senza aprire l'annuncio: sopra la foto, a meta' altezza */
.card__frecce {
  position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 3 / 2; z-index: 3; pointer-events: none;
  display: flex; align-items: center; justify-content: space-between; padding: 0 10px;
  transform: translateZ(16px);
}
.card__freccia {
  all: unset; box-sizing: border-box; pointer-events: auto; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.9); color: var(--inchiostro);
  box-shadow: 0 2px 10px -3px rgba(0,0,0,.35);
  opacity: 0; transform: scale(.9); transition: opacity .3s, transform .3s, background .3s;
}
.card__freccia svg { width: 18px; height: 18px; }
.card:hover .card__freccia, .card__freccia:focus-visible { opacity: 1; transform: none; }
.card__freccia:hover { background: #fff; }
.card__freccia:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; }
@media (hover: none) { .card__freccia { opacity: .92; transform: none; width: 32px; height: 32px; } .card__frecce { transform: none; } }
.card.segue { transition: transform .12s linear, box-shadow .7s; }
.card__foto {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 10px 10px 0 0; background: #e7ece9;
}
.card__foto img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05) translate(var(--px, 0px), var(--py, 0px));
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card__foto img { transform: scale(1.065) translate(var(--px, 0px), var(--py, 0px)); }
.card.segue .card__foto img { transition: transform .2s linear; }
/* riflesso che segue il mouse */
.card__luce {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.2), rgba(255,255,255,0) 55%);
  mix-blend-mode: soft-light;
}
.card:hover .card__luce { opacity: 1; }
/* un solo sticker: la citta' */
.citta {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 7px 13px 6px; border-radius: 999px;
  background: rgba(255,255,255,.92);
  font: 600 10.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--verde-sc);
  box-shadow: 0 2px 10px -4px rgba(0,0,0,.25);
  transform: translateZ(14px);
}
/* nome sotto la foto, semplice */
.card__testo { padding: clamp(22px, 2.4vw, 30px) 22px clamp(24px, 2.6vw, 32px); text-align: center; transform: translateZ(8px); }
.card__testo h4 {
  margin: 0; font: 500 clamp(21px, 1.8vw, 25px)/1.25 var(--serif); color: #1f7a6c;
  transition: color .4s;
}
.card:hover .card__testo h4 { color: var(--verde-sc); }
.card__riassunto { margin: 8px 0 0; font-size: 12.5px; color: var(--tenue); letter-spacing: .02em; }
.card__cin { display: block; margin-top: 6px; font-size: 11px; color: var(--tenue); letter-spacing: .06em; }
/* su telefono niente 3D: le schede non devono finire sopra il bottone WhatsApp */
@media (hover: none) { .card { transform-style: flat; transform: none !important; } .card__testo, .citta, .card__frecce { transform: none; } }

/* Firma ProperHost in trasparenza sulle foto, in basso a destra */
.firma {
  position: absolute; right: 3.2%; bottom: 4%; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #fff; opacity: .82; text-shadow: 0 1px 6px rgba(0,0,0,.35);
  font-size: clamp(10px, 1.1vw, 14px);
}
.firma i {
  width: 2.6em; aspect-ratio: 1; margin-bottom: .2em;
  background: url("../img/firma.png") center / contain no-repeat;
}
.firma b { font: 500 1.35em/1 var(--serif); letter-spacing: .01em; }
.firma small { font: 400 .62em/1 var(--serif); letter-spacing: .42em; margin-right: -.42em; text-transform: uppercase; }
.card .firma { font-size: clamp(9px, .8vw, 12px); }
.visore__foto { position: relative; margin: 0; line-height: 0; }

/* I nostri servizi: quattro riquadri, nome sopra la foto */
.servizi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.servizio { display: block; text-decoration: none; color: inherit; }
.servizio__nome {
  margin: 0 0 14px; text-align: center;
  font: 500 clamp(22px, 1.9vw, 27px)/1.2 var(--serif); color: #1f7a6c; transition: color .4s;
}
.servizio__foto {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: #e7ece9;
  box-shadow: 0 0 0 1px rgba(29,59,55,.07), 0 14px 34px -20px rgba(29,59,55,.3);
  transition: box-shadow .7s;
}
.servizio__foto img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.servizio__wa {
  position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.92); color: #1f9e57;
  box-shadow: 0 2px 10px -4px rgba(0,0,0,.3); transition: transform .4s;
}
.servizio__wa svg { width: 21px; height: 21px; }
.servizio:hover .servizio__nome { color: var(--verde-sc); }
.servizio:hover .servizio__foto { box-shadow: 0 0 0 1px rgba(29,59,55,.06), 0 34px 60px -26px rgba(15,60,55,.42); }
.servizio:hover .servizio__foto img { transform: scale(1.06); }
.servizio:hover .servizio__wa { transform: scale(1.08); }
.servizio:focus-visible { outline: none; }
.servizio:focus-visible .servizio__foto { outline: 2px solid var(--verde); outline-offset: 4px; }
@media (max-width: 1100px) { .servizi { grid-template-columns: repeat(2, minmax(0, 1fr)); } .servizio__foto { aspect-ratio: 4 / 3; } }
@media (max-width: 760px) { .servizi { grid-template-columns: 1fr; gap: 34px; } .servizio__nome { font-size: 24px; margin-bottom: 12px; } }

/* 7. Pagina appartamento */
.pagina { padding-top: clamp(100px, 11vw, 132px); }
.scheda__testa .titolo { font-size: clamp(32px, 3.6vw, 46px); }
.indietro {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--tenue); text-decoration: none;
}
.indietro:hover { color: var(--verde); }
.scheda__testa { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.scheda__meta { display: flex; align-items: center; gap: 18px; margin: 0 0 14px; }
.luogo {
  display: flex; align-items: center; gap: 12px;
  font: 600 10.5px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--verde);
}
.luogo::after { content: ""; width: 34px; height: 1px; background: var(--verde); opacity: .45; }
.scheda__cat { font: italic 400 21px/1 var(--serif); color: var(--verde); }
.cin { margin: 12px 0 0; font-size: 13px; color: var(--tenue); }
/* indirizzo sotto il nome */
.indirizzo {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  font-size: 14px; color: var(--testo); text-decoration: none;
}
.indirizzo svg { width: 17px; height: 17px; color: var(--verde); flex: none; }
.indirizzo span { color: var(--verde); font-weight: 600; margin-left: 4px; }
.indirizzo:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* foto in stile Booking: grande a sinistra, pannello a destra, miniature sotto */
.galleria {
  display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1fr); gap: 10px;
}
.galleria--piena { grid-template-columns: 1fr; }
.galleria button {
  all: unset; cursor: zoom-in; box-sizing: border-box; position: relative;
  display: block; overflow: hidden; border-radius: 6px; background: #eef1ef;
}
.galleria button:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; }
.galleria .galleria__grande { height: clamp(240px, 37vh, 400px); }
.galleria__mini { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.galleria .galleria__foto { height: clamp(70px, 12vh, 118px); width: 100%; }
.galleria img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.galleria button:hover img { transform: scale(1.04); }
.altre {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(12, 28, 25, .48); color: #fff;
  font: 600 13px/1 var(--sans); letter-spacing: .06em; text-decoration: underline; text-underline-offset: 4px;
}

/* pannello a destra: giudizio ospiti + dati essenziali */
.scheda__info {
  display: flex; flex-direction: column; gap: 18px;
  padding: 20px 22px; border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(29,59,55,.1);
}
.dati { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 0; }
.dati div { border-top: 1px solid var(--linea); padding-top: 10px; }
.dati dt { font: 600 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--verde); }
.dati dd { margin: 7px 0 0; font: 500 18px/1.25 var(--serif); color: var(--inchiostro); font-variant-numeric: lining-nums; }
/* con un numero dispari di dati l'ultimo prende tutta la riga */
.dati div:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* riga di azioni sotto le foto */
.azioni { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.azioni a, .azioni button {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(29,59,55,.12); color: var(--inchiostro);
  transition: box-shadow .3s, background .3s, transform .3s;
}
.azioni a:hover, .azioni button:hover { box-shadow: inset 0 0 0 1px var(--verde); background: #f6faf8; transform: translateY(-1px); }
.azioni a:focus-visible, .azioni button:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; }
.azioni svg { width: 26px; height: 26px; flex: none; color: var(--verde); }
.azioni span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.azioni b { font: 600 14px/1.2 var(--sans); }
.azioni small { font-size: 12px; color: var(--tenue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.scheda__descrizione { max-width: 820px; margin-top: clamp(22px, 2.6vw, 32px); }
.scheda__descrizione p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--testo); }

.bottone {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: #fff; background: var(--verde); text-decoration: none;
  transition: background .3s, transform .3s;
}
.bottone:hover { background: var(--verde-sc); transform: translateY(-1px); }
.bottone svg { width: 18px; height: 18px; }


/* 8. Visore foto */
.visore {
  position: fixed; inset: 0; z-index: 100;
  background: #fff;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.visore.aperto { opacity: 1; visibility: visible; }
.visore img { max-width: calc(100vw - 180px); max-height: calc(100vh - 140px); object-fit: contain; border-radius: 2px; transition: opacity .35s; box-shadow: 0 30px 70px -30px rgba(15,50,46,.35); }
.visore button {
  all: unset; cursor: pointer; position: absolute; color: var(--inchiostro);
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  transition: background .25s;
}
.visore button:hover { background: rgba(29,59,55,.06); }
.visore button:focus-visible { outline: 2px solid var(--verde); }
.visore svg { width: 24px; height: 24px; stroke-width: 1.2; }
.visore .chiudi { top: 14px; right: 14px; }
.visore .prec { left: 12px; top: 50%; transform: translateY(-50%); }
.visore .succ { right: 12px; top: 50%; transform: translateY(-50%); }
.visore__conta { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: var(--tenue); font-size: 12px; letter-spacing: .14em; font-variant-numeric: tabular-nums; }

/* 9. Chi siamo */
.chi__intro { max-width: 720px; font-size: 18px; }
.chi__intro p { margin: 0 0 1em; }
.soci { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px); margin-top: clamp(32px, 5vw, 48px); }
.socio { border-top: 1px solid var(--linea); padding: clamp(32px, 4vw, 48px) clamp(12px, 2vw, 24px) 8px; text-align: center; }
.socio__foto:empty, .socio__foto[data-iniziali] { display: none; }
.socio__foto {
  width: 112px; height: 112px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--linea);
  font: italic 400 40px/1 var(--serif); color: var(--verde);
}
.socio__foto img { width: 100%; height: 100%; object-fit: cover; }
.socio h2 { margin: 0; font: 500 30px/1.15 var(--serif); color: var(--inchiostro); }
.socio .ruolo { margin: 6px 0 16px; font: 500 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--verde); }
.socio p { margin: 0; }

/* Modulo collaborazioni */
.collabora { margin: clamp(48px, 7vw, 88px) auto 0; max-width: 760px; text-align: center; }
.collabora .intro { margin-inline: auto; }
.collabora .intro { font-size: 17.5px; text-wrap: balance; }
/* da computer la frase sta su una riga: puo uscire dalla colonna stretta del modulo */
@media (min-width: 761px) {
  .collabora .intro { font-size: 18.5px; width: max-content; max-width: min(var(--max), calc(100vw - 2 * var(--gutter))); margin-left: 50%; transform: translateX(-50%); }
}
.modulo { text-align: left; }
.modulo { margin-top: 28px; display: grid; gap: 18px; }
.modulo__riga { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.modulo__riga--tre { grid-template-columns: 1.15fr .85fr 1.15fr; }
.modulo input::placeholder { color: var(--tenue); opacity: .7; }
.modulo input[type="number"] { -moz-appearance: textfield; }
.modulo input[type="number"]::-webkit-inner-spin-button, .modulo input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.modulo label { display: grid; gap: 8px; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--inchiostro); }
.modulo select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317756a' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px !important; }
.modulo select, .modulo input:not([type="checkbox"]) {
  font: 400 16px/1.4 var(--sans); color: var(--inchiostro);
  padding: 13px 14px; border-radius: 3px; border: 1px solid rgba(29,59,55,.2);
  background: var(--carta-2); transition: border-color .3s, box-shadow .3s;
}
.modulo select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5' fill='none' stroke='%2317756a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 14px 9px;
  padding-right: 44px !important; cursor: pointer;
}
/* finche' non si sceglie, "Scegli la formula" resta in grigio come un suggerimento */
.modulo select:invalid { color: var(--tenue); }
.modulo select option { color: var(--inchiostro); }
.modulo select:focus, .modulo input:not([type="checkbox"]):focus { outline: 2px solid var(--verde); outline-offset: 1px; border-color: var(--verde); }
.modulo input[aria-invalid="true"] { border-color: #b3261e; }
.modulo__consenso input[aria-invalid="true"] { outline: 1px solid #b3261e; outline-offset: 2px; }
.modulo label.modulo__consenso { display: flex; align-items: flex-start; gap: 10px; font: 400 14px/1.5 var(--sans); letter-spacing: 0; text-transform: none; color: var(--testo); }
.modulo__consenso input { margin-top: 4px; accent-color: var(--verde); width: 16px; height: 16px; flex: none; }
.modulo .bottone { justify-self: center; }
.modulo .bottone:disabled { opacity: .6; cursor: wait; }
.modulo__esito { margin: 0; min-height: 1.5em; font-size: 15px; }
.modulo__esito.ok { color: var(--verde); }
.modulo__esito.errore { color: #b3261e; }

/* Chi siamo: i fondatori, foto con cornice sfalsata */
.fondatori { margin-top: clamp(48px, 7vw, 96px); }
.fondatori__occhiello { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.fondatore {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px);
  align-items: center; max-width: 1040px; margin: 0 auto;
}
.fondatore + .fondatore { margin-top: clamp(56px, 8vw, 110px); }
.fondatore__foto { position: relative; margin: 0 22px 22px 0; }
.fondatore__foto::after {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: -1;
  border: 1px solid var(--verde); opacity: .55;
}
.fondatore__foto img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.fondatore__testo h2 { margin: 0; font: 400 clamp(40px, 5vw, 64px)/1.02 var(--serif); color: var(--inchiostro); }
.fondatore__testo h2::after { content: ""; display: block; width: 48px; height: 1px; background: var(--verde); margin: 24px 0 20px; }
.fondatore__ruolo { margin: 0; font: 600 11.5px/1.6 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: #1f7a6c; }
.fondatore__testo p:not([class]) { margin: 22px 0 0; font-size: 17px; line-height: 1.8; }
.socio__link { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.socio__link a {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  font: 500 14px/1 var(--sans); color: var(--inchiostro); text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(29,59,55,.2); transition: background .3s, color .3s, box-shadow .3s;
}
.socio__link a:hover { background: var(--verde); color: #fff; box-shadow: none; }
.socio__link svg { width: 17px; height: 17px; }
.fondatore--senza-foto { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); }
.fondatore--senza-foto .fondatore__testo { grid-column: 2; }

/* Chi siamo: fondatori affiancati e citazione */
.fondatori { padding-block: clamp(36px, 5vh, 52px); }
.fondatori__titolo { margin: 0 0 clamp(24px, 4vh, 40px); text-align: center; font: 400 clamp(34px, 3.6vw, 48px)/1.05 var(--serif); color: #1f7a6c; }
/* stesso verde dei titoli delle pagine */
#collabora-titolo, #appartamenti .titolo { color: #1f7a6c; }
.fondatori__coppia { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 64px); max-width: 680px; margin: 0 auto; }
/* due schede identiche, nello stile delle case: foto 4:5 e nome su fondo bianco, senza cornici */
.fondatori__coppia { max-width: 620px; gap: clamp(18px, 3vw, 40px); }
.fondatori__coppia .fondatore {
  display: flex; flex-direction: column; gap: 0; text-align: center; max-width: none; margin: 0;
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(29,59,55,.07), 0 14px 34px -20px rgba(29,59,55,.3);
}
.fondatori__coppia .fondatore__foto { width: 100%; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #e7ece9; }
.fondatori__coppia .fondatore__foto::after { display: none; }
.fondatori__coppia .fondatore__foto img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 20%; }
.fondatori__coppia .fondatore + .fondatore { margin-top: 0; }
.fondatori__coppia .fondatore h2 { margin: 0; padding: clamp(18px, 2vw, 24px) 12px 0; font: 400 clamp(20px, 1.9vw, 25px)/1.2 var(--serif); color: var(--inchiostro); flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.fondatori__coppia .fondatore h2::after { content: ""; display: block; width: 28px; height: 1px; background: var(--verde); margin: 10px auto 0; }
.fondatori__coppia .fondatore__ruolo { padding: 9px 12px clamp(18px, 2vw, 24px); }
.fondatori__coppia .fondatore__ruolo { font-size: 10.5px; }
.citazione { max-width: var(--max); margin: clamp(26px, 4.5vh, 44px) auto 0; padding: 0; text-align: center; }
.citazione::before, .citazione::after { display: block; font: 400 64px/0.6 var(--serif); color: var(--verde); opacity: .6; }
.citazione::before { content: "\201C"; margin-bottom: 14px; }
.citazione::after { content: "\201D"; margin-top: 30px; }
.citazione p { margin: 0; font: italic 400 clamp(17.5px, 1.6vw, 23px)/1.55 var(--serif); color: var(--inchiostro); text-align: justify; text-align-last: center; }
/* su telefono la colonna e stretta: si spezzano le parole lunghe per non aprire buchi nel giustificato */
@media (max-width: 700px) { .citazione p, .hero__testo { hyphens: auto; -webkit-hyphens: auto; } }
.citazione footer { margin-top: 14px; font: 600 11.5px/1.6 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--verde); }
.citazione footer span { font-family: var(--serif); font-style: italic; letter-spacing: 0; text-transform: none; font-size: 16px; margin: 0 4px; }
.fondatori .socio__link { justify-content: center; margin-top: clamp(18px, 3vh, 28px); }

/* Lavora con noi: le tre formule */
.lavora__testa { text-align: center; max-width: 760px; margin-inline: auto; }
.lavora__testa .intro { margin-inline: auto; }
.pacchetti { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); margin-top: clamp(8px, 2vw, 20px); padding-top: 52px; align-items: stretch; }
/* nel codice la Sublocazione e' la prima (su telefono compare per prima); da computer resta al centro */
@media (min-width: 761px) { .pacchetto--scelto { order: 2; } .pacchetti > .pacchetto:last-child { order: 3; } }
/* profondità leggera: inclinazione al passaggio del mouse, ombra morbida, un velo di luce */
.pacchetto {
  position: relative; display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px); border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 1px rgba(29,59,55,.1), 0 2px 4px rgba(15,50,46,.04), 0 24px 48px -30px rgba(15,50,46,.38);
  transform: perspective(1200px) translateY(var(--sy, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .7s cubic-bezier(.2,.7,.2,1), box-shadow .7s;
}
.pacchetto::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(23,117,106,.07), rgba(23,117,106,0) 60%);
  opacity: 0; transition: opacity .5s;
}
.pacchetto:hover { box-shadow: 0 0 0 1px rgba(29,59,55,.12), 0 4px 10px rgba(15,50,46,.05), 0 44px 70px -32px rgba(15,50,46,.45); }
.pacchetto:hover::before { opacity: 1; }
.pacchetto.segue { transition: transform .12s linear, box-shadow .7s; }
.js .pacchetto.appare.in { transform: perspective(1200px) translateY(var(--sy, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity .9s, transform .7s cubic-bezier(.2,.7,.2,1), box-shadow .7s; }
.js .pacchetto.appare.in.segue { transition: transform .12s linear, box-shadow .7s; }
/* la formula consigliata: cornice piu' marcata e linguetta in alto */
.pacchetto--scelto {
  --sy: -14px; border-radius: 0 0 12px 12px;
  box-shadow: 0 0 0 2px var(--verde), 0 4px 10px rgba(15,50,46,.06), 0 34px 60px -30px rgba(15,50,46,.48);
}
.pacchetto--scelto:hover { box-shadow: 0 0 0 2px var(--verde), 0 6px 14px rgba(15,50,46,.07), 0 50px 80px -34px rgba(15,50,46,.52); }
.pacchetto__badge {
  position: absolute; left: -2px; right: -2px; top: 0; transform: translateY(-100%);
  margin: 0; padding: 14px 16px 13px; border-radius: 12px 12px 0 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, #17756a, #0f5a52); color: #fff;
  font: 600 11.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
}
.pacchetto__badge svg { width: 16px; height: 16px; flex: none; }
.pacchetto--scelto .bottone--chiaro { background: var(--verde); color: #fff; box-shadow: none; }
.pacchetto--scelto .bottone--chiaro:hover { background: var(--verde-sc); }
.pacchetto h2 { margin: 0; font: 500 clamp(26px, 2.4vw, 32px)/1.1 var(--serif); color: var(--verde-sc); }
.pacchetto__prezzo { margin: 20px 0 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pacchetto__prezzo strong { font: 500 clamp(28px, 2.7vw, 40px)/1 var(--serif); color: var(--verde); font-variant-numeric: lining-nums; white-space: nowrap; }
.pacchetto__prezzo > span { font-size: 14px; color: var(--tenue); }
.pacchetto__prezzo--testo strong { font-size: clamp(26px, 2.2vw, 32px); white-space: normal; }
.pacchetto__motto { margin: 10px 0 0; font: italic 400 clamp(19px, 1.6vw, 22px)/1.35 var(--serif); color: var(--inchiostro); }
.pacchetto__testo { margin: 16px 0 0; font-size: 15.5px; line-height: 1.65; }
.pacchetto .bottone { letter-spacing: .1em; padding-inline: 18px; text-align: center; font-size: 11.5px; }
.pacchetto ul { list-style: none; margin: 20px 0 28px; padding: 18px 0 0; display: grid; gap: 11px; border-top: 1px solid var(--linea); }
.pacchetto li { display: flex; gap: 12px; font-size: 14.5px; color: var(--inchiostro); }
.pacchetto li::before { content: ""; flex: none; width: 12px; height: 6px; margin-top: 5px; border-left: 1.6px solid var(--verde); border-bottom: 1.6px solid var(--verde); transform: rotate(-45deg); }
.pacchetto .bottone { margin-top: auto; justify-content: center; }
.bottone--chiaro { background: transparent; color: var(--verde); box-shadow: inset 0 0 0 1px var(--verde); }
.bottone--chiaro:hover { background: var(--verde); color: #fff; }
#contatto { scroll-margin-top: 90px; }

/* icone social nel piede */
.piede__social { display: flex; justify-content: center; gap: 12px; margin: 0 0 22px; }
.piede__social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--verde); box-shadow: inset 0 0 0 1px rgba(29,59,55,.18); transition: background .3s, color .3s; }
.piede__social a:hover { background: var(--verde); color: #fff; }
.piede__social svg { width: 19px; height: 19px; }

/* pulsante Menu: solo sul telefono */
.menu-tasto { display: none; }

/* 10. Testi legali */
.legale > * { max-width: 760px; }
.legale li { margin-bottom: .45em; }
.legale li::marker { color: var(--verde); }
.legale h2 { font: 500 26px/1.2 var(--serif); color: var(--inchiostro); margin: 2em 0 .5em; }
.legale ul { padding-left: 1.2em; }

/* 11. Piede */
.piede { margin-top: clamp(24px, 4vw, 48px); padding: 64px 0 calc(104px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); text-align: center; font-size: 14px; }
.piede .segno { width: 54px; margin: 0 auto 14px; }
.piede__nome { font: 500 24px/1 var(--serif); color: var(--verde); margin: 0; }
.piede__sub { margin: 8px 0 22px; font: 400 12px/1 var(--serif); letter-spacing: .45em; margin-right: -.45em; text-transform: uppercase; color: var(--verde); }
.piede a { text-decoration: none; }
.piede a:hover { color: var(--verde); }
.piede__contatti { display: flex; justify-content: center; gap: 8px 22px; flex-wrap: wrap; margin: 0 0 22px; }
.piede__legale { color: var(--tenue); font-size: 12px; margin: 0; }
.piede__legale a { text-decoration: underline; text-underline-offset: 3px; }

/* 12. WhatsApp: pulsante con notifica e finestra di benvenuto */
.wa {
  position: fixed; z-index: 60;
  right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
  pointer-events: none; /* il contenitore non deve coprire la pagina */
  /* livello proprio, sempre sopra le schede (Safari su iPhone) */
  transform: translateZ(0); -webkit-transform: translateZ(0);
}
.wa__tasto, .wa__pannello.aperto { pointer-events: auto; }
.wa__tasto {
  all: unset; box-sizing: border-box; cursor: pointer; pointer-events: auto;
  position: relative; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,.32), inset 0 -2px 0 rgba(0,0,0,.08);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.wa__tasto:hover { transform: scale(1.06); }
.wa__tasto:focus-visible { outline: 2px solid var(--verde); outline-offset: 4px; }
.wa__tasto svg { width: 31px; height: 31px; }
.wa__tasto::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  animation: onda 6s 2.4s ease-out infinite;
}
.wa__tasto[aria-expanded="true"]::before { animation: none; }
.wa__badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px;
  display: grid; place-items: center;
  background: #e0353a; color: #fff; font: 700 11.5px/1 var(--sans);
  box-shadow: 0 0 0 2px var(--carta);
  transform: scale(0); animation: pop .5s 1.8s cubic-bezier(.3,1.6,.5,1) forwards;
}
@keyframes pop { to { transform: scale(1); } }
@keyframes onda { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.42); } 30%, 100% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }

.wa__pannello {
  width: min(320px, calc(100vw - 40px));
  border-radius: 14px; overflow: hidden;
  background: var(--carta-2);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 24px 60px -18px rgba(15,50,46,.42);
  transform-origin: 100% 100%;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.97);
  transition: opacity .4s, transform .5s cubic-bezier(.2,.7,.2,1), visibility 0s .5s;
}
.wa__pannello.aperto { opacity: 1; visibility: visible; transform: none; transition: opacity .4s, transform .5s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.wa__testa {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 12px 16px 18px;
  background: var(--verde-sc); color: #fff;
}
.wa__testa .segno { width: 34px; height: 34px; flex: none; background: #fff; -webkit-mask: url("../img/logo.png") center / contain no-repeat; mask: url("../img/logo.png") center / contain no-repeat; }
.wa__testa p { margin: 0; flex: 1; line-height: 1.25; }
.wa__testa strong { display: block; font: 500 19px/1.1 var(--serif); letter-spacing: .01em; }
.wa__testa span { font-size: 12px; opacity: .78; letter-spacing: .06em; }
.wa__chiudi {
  all: unset; cursor: pointer; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; color: rgba(255,255,255,.85); transition: background .25s;
}
.wa__chiudi:hover { background: rgba(255,255,255,.12); }
.wa__chiudi:focus-visible { outline: 2px solid #fff; }
.wa__chiudi svg { width: 18px; height: 18px; }
.wa__corpo { padding: 20px 18px 6px; }
.wa__msg {
  position: relative; margin: 0; max-width: 92%;
  padding: 12px 14px; border-radius: 4px 12px 12px 12px;
  background: #fff; color: var(--inchiostro); font-size: 14.5px; line-height: 1.5;
  box-shadow: 0 1px 1px rgba(0,0,0,.06);
}
.wa__cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 16px 18px 18px; padding: 14px 18px; border-radius: 999px;
  background: #1f8a5b; color: #fff; text-decoration: none;
  font: 600 13px/1 var(--sans); letter-spacing: .06em;
  transition: background .3s;
}
.wa__cta:hover { background: #18704a; }
.wa__cta:focus-visible { outline: 2px solid var(--verde-sc); outline-offset: 3px; }
.wa__cta svg { width: 20px; height: 20px; }

/* Barra fissa in basso (solo telefono, pagina della casa) */
.barra-azione { display: none; }
.visore-aperto .barra-azione, .visore-aperto .wa { visibility: hidden; }

/* 13. Rivelazione allo scorrimento */
.js .appare { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .appare.in { opacity: 1; transform: none; }
.js .card.appare.in { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity .9s, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .card.appare.in.segue { transition: transform .12s linear; }

/* 14. Schermi piccoli */
.top nav a { white-space: nowrap; }
@media (max-width: 400px) {
  .top__destra { gap: 10px; }
  .top nav { gap: 13px; }
  .top nav a { letter-spacing: .1em; font-size: 11px; }
  .lingua__opz { padding-inline: 7px 8px; gap: 4px; }
}
@media (max-width: 760px) and (max-height: 700px) { .indietro { display: none; } }
@media (max-width: 1100px) and (min-width: 761px) { .griglia > .card { flex-basis: calc((100% - clamp(20px, 2.4vw, 32px)) / 2); } }
@media (max-width: 760px) {
  /* intestazione: menu a schermo intero */
  .menu-tasto {
    all: unset; box-sizing: border-box; cursor: pointer; position: relative; z-index: 81;
    display: inline-flex; align-items: center; gap: 9px; padding: 12px 4px;
    font: 600 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--inchiostro);
  }
  .menu-tasto:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; }
  .menu-tasto__icona { width: 18px; display: grid; gap: 5px; }
  .menu-tasto__icona i { height: 1.5px; background: currentColor; transition: transform .35s; }
  .menu-aperto .menu-tasto__icona i:first-child { transform: translateY(3.25px) rotate(45deg); }
  .menu-aperto .menu-tasto__icona i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .top nav.menu {
    position: fixed; inset: 0; z-index: 80; background: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
  }
  .menu-aperto .top nav.menu { opacity: 1; visibility: visible; transition: opacity .35s; }
  .top nav.menu a { font: 400 34px/1.2 var(--serif); letter-spacing: 0; text-transform: none; padding: 12px 0; color: var(--inchiostro); }
  .top nav.menu a[aria-current="page"] { color: var(--verde); }
  .top nav.menu a::after { display: none; }
  .menu-aperto { overflow: hidden; }
  .top__home, .lingua { position: relative; z-index: 81; }
  .menu-aperto .wa, .menu-aperto .barra-azione { visibility: hidden; }
  .pacchetti { grid-template-columns: 1fr; gap: 64px; padding-top: 44px; }
  .hero--pagina { padding: 96px 20px 40px; }
  .hero--pagina .segno { width: 78px; }
  .hero--pagina .hero__onde { height: 300px; background-size: 130% auto; background-position: center -18vw; }
  .tipi button { padding: 9px 14px; letter-spacing: .14em; font-size: 11px; }
  /* schede scorrevoli col dito se non stanno in una riga */
  .filtri {
    gap: 4px 20px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    /* solo orizzontale: niente scorrimento verticale dentro la barra */
    overflow-y: hidden; overscroll-behavior-x: contain;
    border-bottom: 0; box-shadow: inset 0 -1px 0 var(--linea);
  }
  .filtri button::after { bottom: 0; }
  .filtri::-webkit-scrollbar { display: none; }
  .filtri button { flex: none; }
  .filtri button { font-size: 14.5px; }
  .filtri button small { margin-left: 4px; }
  .fondatori__coppia { gap: 16px; }
  .fondatori__coppia .fondatore__foto { width: 100%; margin: 0; }
  .fondatori__coppia .fondatore h2 { font-size: 18px; padding-inline: 8px; }
  .fondatori__coppia .fondatore__ruolo { font-size: 9.5px; letter-spacing: .2em; }
  .hero__corpo { margin-top: 36px; }
  .pacchetto--scelto { --sy: 0px; }
  .fondatore, .fondatore--senza-foto { grid-template-columns: 1fr; gap: 34px; }
  .fondatore--senza-foto .fondatore__testo { grid-column: 1; }
  .fondatore__foto { margin-right: 18px; }
  .fondatore__foto::after { inset: 18px -18px -18px 18px; }
  .pagina > .wrap > .testa:first-child { margin-top: 26px; }
  .top { padding: 16px var(--gutter) 12px; justify-content: space-between; transition: opacity .35s, background .35s, box-shadow .35s; }
  /* telefono: Menu a sinistra, logo al centro, lingua a destra */
  .top__destra { display: contents; }
  .menu-tasto { order: -1; }
  .top__home { order: 0; }
  .lingua { order: 1; }
  /* scorrendo, la barra resta in alto, chiara e sottile */
  .scorso .top {
    position: fixed; padding: 8px var(--gutter);
    background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(29,59,55,.08), 0 8px 24px -16px rgba(15,50,46,.3);
  }
  .scorso .top__home { visibility: visible; }
  /* col menu aperto la barra non deve fare da contenitore: il menu copre tutto lo schermo */
  .menu-aperto .top, .menu-aperto.scorso .top { background: #fff; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; opacity: 1; pointer-events: auto; }
  .menu-aperto .top__home { visibility: visible; }
  /* home: all'arrivo solo logo, ProperHost Hospitality e onde */
  .home:not(.scorso) .top, .home:not(.scorso) .wa { opacity: 0; pointer-events: none; }
  .home .wa { transition: opacity .35s; }
  .top__destra { gap: 16px; }
  .top nav { gap: 18px; }
  .top nav a { font-size: 11.5px; letter-spacing: .16em; padding: 12px 0; }
  .top__home span:not(.segno) { display: none; }
  .top__home { min-width: 44px; min-height: 44px; }
  .top__home .segno { width: 32px; height: 32px; }
  .home .top nav { margin-right: 0; }
  .home .top { padding-top: 18px; }
  .lingua__opz { padding: 11px 9px 11px 8px; gap: 5px; font-size: 11px; }
  .bandiera { width: 15px; height: 15px; }
  /* telefono: logo esattamente al centro; a destra un bottone semplice, gemello di "Menu", con la lingua in cui passare */
  .top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .menu-tasto { justify-self: start; }
  .lingua { justify-self: end; display: flex; padding: 0; background: none; box-shadow: none; }
  .lingua__cursore { display: none; }
  html:not([lang="en"]) .lingua__opz--it, html[lang="en"] .lingua__opz--en { display: none; }
  .lingua__opz, html:not([lang="en"]) .lingua .lingua__opz--en, html[lang="en"] .lingua .lingua__opz--it {
    padding: 12px 4px; gap: 9px; font: 600 11.5px/1 var(--sans); letter-spacing: .2em; color: var(--inchiostro); opacity: 1;
  }

  /* prima schermata */
  /* la prima schermata riempie tutto il telefono: la sezione sotto si vede solo scorrendo */
  .hero { padding: 96px 20px 88px; min-height: 100vh; min-height: 100lvh; }
  .hero--pagina { min-height: 75vh; min-height: 75svh; }
  .hero--pagina.hero--corta { min-height: 0; padding-bottom: 36px; }
  .hero .segno { width: 104px; }
  .marchio { font-size: clamp(50px, 14.5vw, 64px); }
  .marchio + p { font-size: 17px; margin-top: 22px; letter-spacing: .5em; margin-right: -.5em; }
  .hero__carta { opacity: .2; }

  /* vetrine */
  .sezione { padding: 52px 0 64px; }
  .testa { margin-bottom: 26px; }
  .categoria + .categoria { margin-top: 56px; }
  .categoria__testa { gap: 4px 12px; margin-bottom: 20px; }
  .griglia { gap: 20px; }
  .griglia > .card { flex-basis: 100%; }
  .card__testo { padding: 18px 18px 20px; }
  .card__testo h4 { font-size: 22px; }
  .card .firma { font-size: 11px; }
  .card .firma small { display: none; }

  /* pagina della casa */
  .pagina { padding-top: 72px; }
  .indietro { margin-bottom: 0; font-size: 11px; padding: 15px 0; margin-top: -8px; }
  .scheda__meta { margin-bottom: 10px; }
  .scheda__testa { margin-bottom: 14px; }
  .scheda__testa .titolo { font-size: 32px; }
  .scheda__testa .bottone { display: none; }
  .indirizzo { flex-wrap: wrap; font-size: 13.5px; margin-top: 8px; }
  .indirizzo span { margin-left: 6px; }
  .galleria { grid-template-columns: 1fr; gap: 8px; margin-inline: calc(-1 * var(--gutter)); }
  .galleria .galleria__grande { height: min(64vw, 34svh); border-radius: 0; }
  .galleria__mini { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-row: 2; gap: 6px; padding-inline: var(--gutter); }
  .galleria__mini button:nth-child(n+3):not(:last-child) { display: none; }
  .galleria .galleria__foto { height: 20vw; border-radius: 4px; }
  .scheda__info { grid-row: 3; margin: 6px var(--gutter) 0; padding: 16px 18px; }
    .dati dd { font-size: 17px; }
  .azioni { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
  .azioni a, .azioni button { padding: 12px 12px; gap: 10px; }
  .azioni svg { width: 22px; height: 22px; }
  .azioni b { font-size: 13px; }
  .azioni small { font-size: 11.5px; white-space: normal; }
  /* sul telefono data e telefono sono gia' nella barra fissa */
  .ha-barra .azioni > :nth-child(1), .ha-barra .azioni > :nth-child(3) { display: none; }
  .scheda__descrizione p { font-size: 15.5px; }
  
  /* barra fissa in basso al posto del pulsante WhatsApp tondo */
  .barra-azione {
    display: flex; gap: 10px; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 -1px 0 rgba(29,59,55,.1), 0 -10px 30px -18px rgba(15,50,46,.35);
  }
  .barra-azione a { display: flex; align-items: center; justify-content: center; text-decoration: none; }
  .barra-azione__tel { width: 50px; height: 50px; flex: none; border-radius: 50%; color: var(--verde); box-shadow: inset 0 0 0 1px rgba(29,59,55,.2); }
  .barra-azione__tel svg { width: 22px; height: 22px; }
  .barra-azione__wa {
    flex: 1; gap: 10px; height: 50px; border-radius: 999px;
    background: var(--verde); color: #fff; font: 600 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  }
  .barra-azione__wa svg { width: 20px; height: 20px; }
  .ha-barra .wa { display: none; }
  .ha-barra .piede { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  /* chi siamo e modulo */
  .modulo__riga { grid-template-columns: 1fr; }
  .soci { grid-template-columns: 1fr; gap: 0; }
  .chi__intro { font-size: 16.5px; }
  .modulo .bottone { justify-self: stretch; justify-content: center; height: 52px; padding: 0 20px; }
  .collabora .intro { padding-inline: 0 56px; }

  /* piede */
  .piede__contatti { flex-direction: column; gap: 0; }
  .piede__contatti a { padding: 10px 0; }

  /* visore */
  .visore img { max-width: 100vw; max-height: calc(100dvh - 150px); }
  .visore .prec, .visore .succ { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); transform: none; }
  .visore__conta { bottom: calc(30px + env(safe-area-inset-bottom)); }
  .visore .chiudi { top: calc(14px + env(safe-area-inset-top)); }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .entra, .js .appare { opacity: 1; transform: none; }
  .wa__badge { transform: scale(1); }
  .wa__pannello { transition: none; }
  html { scroll-behavior: auto; }
}
