/* CasaViva Service, landing page proprietari: CSS di pagina.
   Header e hero vengono dal kit design-taste-frontend (system.css, layout.css, motion.css).
   Le sezioni dopo la hero sono di questa pagina: altezza data dal contenuto (il kit forza ogni sezione a una
   schermata esatta, ed era la causa di blocchi sovrapposti e vuoti). Colori dai token --p-* del brand. */

/* ---------- header ---------- */
.nav__logo img.logo { height: 34px; width: auto; }
.lbl-short { display: none; }
@media (max-width: 639px) {
  .nav__logo img.logo { height: 28px; }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
}

/* ---------- tutti i bottoni che aprono il form: gialli, con testo scuro ---------- */
.btn--primary[data-open-form] { --action: var(--p-accent); --action-ink: var(--p-accent-ink); }
.btn--primary[data-open-form]:hover,
html:not([data-motion="off"]) .btn--primary[data-open-form]:hover { background: #f5b632; }
html:not([data-motion="off"]) .btn--primary[data-open-form]:active { background: #e9a91f; }

/* ---------- hero ---------- */
@media (max-width: 639px) {
  .hero .btn-row .btn { white-space: normal; height: auto; min-height: 52px; padding-block: 12px; line-height: 1.3; text-align: center; justify-content: center; }
}
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 15px; color: var(--ink); }
.hero-proof li { display: inline-flex; align-items: baseline; }
.hero-proof .pf-l { margin-left: .3em; }
.hero-proof .pf-l--first { margin: 0 .3em 0 0; }
.hero-proof .pf-phone { display: none; }
.hero-proof b { font-weight: 600; }
.hero-proof__star { color: #e0a526; margin-right: 5px; }
/* telefono: le tre prove sulla stessa riga, in tre colonne (valore sopra, descrizione sotto) */
@media (max-width: 639px) {
  .hero-proof { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px;
    font-size: 13px; margin-top: 22px; padding-top: 18px; }
  .hero-proof li { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.35; }
  .hero-proof b { font-size: 16px; }
  .hero-proof .pf-l { margin: 0; color: var(--muted); }
  .hero-proof .pf-desk { display: none; }
  .hero-proof .pf-phone { display: flex; }
}

/* ---------- sezioni: altezza libera (annulla l'altezza a schermo del kit) ---------- */
main > section.blk:not(.hero) {
  height: auto; min-height: 0; display: block;
  padding: clamp(80px, 9vw, 136px) 0;
}
.c { width: min(100% - 2 * var(--gut), 1240px); margin-inline: auto; }
.eyebrow { font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--muted); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--p-accent); }
.blk h2, .foot h2 { font-size: clamp(36px, 2.6vw + 18px, 58px); line-height: 1.04; letter-spacing: -0.016em; }
.lead { font-size: clamp(17px, .35vw + 15.6px, 20px); line-height: 1.55; color: var(--ink); max-width: 52ch; }
.head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(40px, 4vw, 56px); }
.head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.head--row > div:first-child { display: grid; gap: 16px; max-width: 760px; }
.cta-line { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  margin-top: clamp(40px, 4vw, 56px); padding: 24px 28px; border-radius: 20px; background: var(--card); }
.cta-line p { font-size: 18px; font-weight: 500; }
@media (max-width: 639px) {
  .head--row { display: grid; }
  .cta-line { padding: 20px; }
  .cta-line .btn { width: 100%; justify-content: center; }
}

/* comparsa morbida allo scroll (solo con JS e senza riduzione del movimento) */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
  .js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
}

/* foto: zoom leggero al passaggio */
.chapter__img, .home__img, .feat__photo { overflow: hidden; }
.chapter__img img, .home__img img, .feat__photo img { transition: transform .6s cubic-bezier(.22,1,.36,1); }
@media (hover: hover) and (pointer: fine) {
  .chapter:hover .chapter__img img, .home:hover .home__img img, .feat__photo:hover img { transform: scale(1.03); }
}

/* ---------- 1. la storia ---------- */
.story__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
/* titolo e sottotitolo restano al centro verticale dello schermo, a sinistra, mentre si scorrono i capitoli
   (translateY(-50%) li centra sul punto; margin-top compensa lo spostamento all'inizio della sezione) */
.story__intro { position: sticky; top: calc(50vh + var(--nav, 72px) / 2); transform: translateY(-50%); margin-top: 56px;
  display: grid; gap: 18px; justify-items: start; }
.story__steps { position: relative; display: grid; gap: clamp(48px, 5vw, 72px); counter-reset: ch; }
/* il filo della storia: una linea che unisce i tre capitoli */
.story__steps::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 6px, transparent 6px 12px); }
.chapter { position: relative; display: grid; gap: 22px; padding-left: 64px; }
.chapter__img { border-radius: 22px; aspect-ratio: 16 / 10; background: var(--p-surface); }
.chapter__img img { width: 100%; height: 100%; object-fit: cover; }
.chapter__body { display: grid; gap: 12px; max-width: 58ch; }
.chapter__tag { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.chapter__tag span { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--p-bg); border: 2px solid var(--line-strong); color: var(--ink); font: 400 20px/1 var(--font-display); }
.chapter h3 { font-size: clamp(26px, 1.2vw + 18px, 34px); line-height: 1.12; }
.chapter p:not(.chapter__tag) { font-size: 17px; line-height: 1.65; }
@media (max-width: 1023px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__intro { position: static; transform: none; margin-top: 0; }
}
@media (max-width: 639px) {
  .chapter { padding-left: 52px; gap: 18px; }
  .story__steps::before { left: 15px; }
  .chapter__tag span { width: 32px; height: 32px; font-size: 17px; }
  .chapter__img { border-radius: 16px; aspect-ratio: 4 / 3; }
}

/* ---------- caroselli (case e recensioni) ---------- */
.slider { position: relative; outline: none; }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((min(100vw - 2 * var(--gut), 1240px) - 2 * 24px) / 3);
  gap: 24px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px max(var(--gut), (100vw - 1240px) / 2) 12px; scroll-padding-inline: max(var(--gut), (100vw - 1240px) / 2); }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > li { scroll-snap-align: start; min-width: 0; }
.slider:focus-visible .slider__track { outline: 2px solid var(--action); outline-offset: 4px; border-radius: 8px; }
.slider__nav { display: flex; gap: 10px; flex: none; }
.slider__btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  background: transparent; color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s, opacity .2s; }
.slider__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.slider__btn:active { transform: scale(.94); }
.slider__btn:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .slider__btn:not(:disabled):hover { background: var(--ink); color: var(--bg); border-color: var(--ink); } }
@media (max-width: 1023px) { .slider__track { grid-auto-columns: calc((100vw - 2 * var(--gut) - 24px) / 2.15); } }
@media (max-width: 639px) {
  .slider__track { grid-auto-columns: 84%; gap: 14px; }
  .slider__nav { display: none; }
}

/* stelle: riempite in proporzione al voto su 10 */
.stars { display: inline-block; line-height: 1; }
.stars::before { content: "★★★★★" / ""; letter-spacing: 2px; font-size: 15px;
  background: linear-gradient(90deg, #e0a526 calc(var(--r) * 10%), color-mix(in oklab, var(--ink) 18%, transparent) 0);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars--big::before { font-size: 19px; letter-spacing: 3px; }

/* ---------- 2. le nostre case ---------- */
.home { display: grid; align-content: start; gap: 6px; }
.home__img { border-radius: 18px; aspect-ratio: 4 / 3; margin-bottom: 12px; background: var(--p-bg); }
.home__img img { width: 100%; height: 100%; object-fit: cover; }
.home__place { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.home h3 { font: 500 20px/1.3 var(--font-text); letter-spacing: -0.01em; }
.rating { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); margin-top: 2px; }
.rating b { font-weight: 600; }
.homes .cta-line { background: var(--p-bg); }

/* ---------- 4. di cosa ci occupiamo ---------- */
.feat__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feat__photo { position: relative; grid-column: span 2; grid-row: span 2; border-radius: 22px; min-height: 440px; background: var(--p-surface); }
.feat__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat__badge { position: absolute; left: 20px; right: 20px; bottom: 20px; max-width: 380px; padding: 18px 22px; border-radius: 16px;
  background: var(--p-inv-bg); color: var(--p-inv-ink); }
.feat__badge p { font: 400 24px/1.2 var(--font-display); letter-spacing: -0.005em; }
/* il riquadro con il bottone, nella griglia accanto all'ultima scheda */
.feat__cta { display: grid; align-content: center; justify-items: start; gap: 18px; padding: 28px; border-radius: 22px; background: var(--p-surface); color: var(--p-ink); }
.feat__cta p { font: 700 clamp(22px, .8vw + 16px, 28px)/1.2 var(--font-display); letter-spacing: -0.005em; max-width: 30ch; }
.feat__item { display: grid; align-content: start; gap: 10px; padding: 26px; border-radius: 22px; background: var(--p-surface);
  transition: transform .25s cubic-bezier(.22,1,.36,1), background .25s; }
@media (hover: hover) and (pointer: fine) { .feat__item:hover { transform: translateY(-3px); } }
.feat__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--p-bg); margin-bottom: 6px; }
.feat__ic svg { width: 28px; height: 28px; fill: none; stroke: var(--p-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feat__item h3 { font: 500 19px/1.3 var(--font-text); letter-spacing: -0.01em; }
.feat__item p { font-size: 16px; line-height: 1.6; color: var(--ink); }
/* da pc: le ultime due schede occupano metà riga ciascuna, il riquadro con il bottone tutta la riga sotto */
.feat__item:nth-last-child(2), .feat__item:nth-last-child(3) { grid-column: span 2; }
.feat__cta { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; gap: 18px 32px; }
.feat__cta p { max-width: none; }
@media (max-width: 1023px) {
  .feat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat__photo { grid-column: 1 / -1; grid-row: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .feat__item:nth-last-child(2), .feat__item:nth-last-child(3) { grid-column: auto; }
  .feat__cta { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 639px) {
  .feat__grid { grid-template-columns: 1fr; gap: 12px; }
  .feat__photo { aspect-ratio: 4 / 3; border-radius: 16px; }
  .feat__item { padding: 22px; grid-template-columns: 52px 1fr; column-gap: 16px; row-gap: 4px; border-radius: 16px; }
  .feat__ic { grid-row: span 2; margin: 0; }
  .feat__badge { left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; }
  .feat__badge p { font-size: 20px; }
  .feat__cta { padding: 24px; border-radius: 16px; }
  .feat__cta .btn { width: 100%; justify-content: center; }
}

/* ---------- 5. chi siamo ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__photo { position: relative; margin: 0; padding-top: 40px; max-width: 480px; }
/* la foto ritagliata di Andrea su un arco giallo */
.about__photo::before { content: ""; position: absolute; inset: 0; border-radius: 999px 999px 28px 28px; background: var(--p-accent); }
.about__photo img { position: relative; width: 100%; height: auto; border-radius: 0 0 28px 28px; }
.about__text { display: grid; gap: 18px; justify-items: start; }
.about__text > p:not(.eyebrow):not(.lead) { font-size: 17px; line-height: 1.65; max-width: 58ch; }
@media (max-width: 1023px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; }
}
@media (max-width: 639px) { .about__photo { max-width: 300px; margin-inline: auto; } }

/* ---------- 6. recensioni degli ospiti ---------- */
/* titolo delle recensioni su una riga da pc */
@media (min-width: 1024px) {
  .guests .head--row > div:first-child { max-width: none; }
  .guests h2 { white-space: nowrap; }
}
.score { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.score b { font: 400 56px/1 var(--font-display); letter-spacing: -0.02em; }
.score span { font-size: 17px; color: var(--muted); }
.review { display: grid; grid-template-rows: auto 1fr auto; gap: 22px; padding: 30px; border-radius: 22px; background: var(--p-surface); min-height: 330px; }
.review blockquote { margin: 0; }
.review blockquote p { font: 400 clamp(22px, .6vw + 18px, 26px)/1.3 var(--font-display); letter-spacing: -0.005em; }
.review__who { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.review__who > span:last-child { display: grid; }
.review__who b { font-size: 15px; font-weight: 600; color: var(--ink); }
.review__ini { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--p-ink); color: var(--p-bg); font-weight: 600; flex: none; }
.guests__note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.guests .cta-line { margin-top: clamp(32px, 3vw, 44px); }
/* a capo dopo la domanda solo su telefono */
.br-phone { display: none; }
@media (max-width: 639px) { .br-phone { display: inline; } }
@media (max-width: 639px) { .review { padding: 24px; min-height: 300px; } .score b { font-size: 46px; } }

/* ---------- 7. domande ---------- */
.qa__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.qa__intro { display: grid; gap: 18px; justify-items: start; position: sticky; top: calc(var(--nav, 72px) + 48px); }
.qa__intro .btn { margin-top: 10px; }
.qa__contact { font-size: 15px; color: var(--muted); }
.qa__contact a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.qa__list { display: grid; gap: 12px; }
.qa__list details { border-radius: 18px; background: var(--p-bg); transition: background .2s; }
.qa__list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; cursor: pointer; list-style: none; }
.qa__list summary::-webkit-details-marker { display: none; }
.qa__list summary h3 { font: 500 18px/1.4 var(--font-text); letter-spacing: -0.005em; }
.qa__list summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--p-surface)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%23163264' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s cubic-bezier(.22,1,.36,1), background-color .2s; }
.qa__list details[open] summary::after { transform: rotate(45deg); background-color: var(--p-accent); }
.qa__list details p { padding: 0 26px 24px; font-size: 16.5px; line-height: 1.65; max-width: 62ch; }
@media (hover: hover) and (pointer: fine) { .qa__list summary:hover::after { background-color: var(--p-accent); } }
@media (max-width: 1023px) {
  .qa__grid { grid-template-columns: 1fr; }
  .qa__intro { position: static; }
}
@media (max-width: 639px) {
  .qa__list summary { padding: 18px 20px; }
  .qa__list summary h3 { font-size: 17px; }
  .qa__list details p { padding: 0 20px 20px; }
  .qa__intro .btn { width: 100%; justify-content: center; }
}

/* ---------- una colonna (telefono e tablet): foto di Andrea dopo il titolo, bottone delle domande dopo le domande ---------- */
@media (max-width: 1023px) {
  .about__grid, .qa__grid { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .about__text, .qa__intro { display: contents; }
  .about__text h2 { order: 0; }
  .about__photo { order: 1; margin: 6px 0 10px; align-self: center; width: 100%; }
  .about__text > p { order: 2; }
  .qa__intro h2 { order: 0; }
  .qa__intro .lead { order: 1; }
  .qa__list { order: 2; margin-top: 10px; }
  .qa__intro .btn { order: 3; margin-top: 10px; align-self: flex-start; }
}
@media (max-width: 639px) { .qa__intro .btn { align-self: stretch; } }

/* ---------- footer ---------- */
.foot { padding: 24px 0 32px; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 48px 0; align-items: start; }
.foot__brand img { height: 36px; width: auto; margin-bottom: 14px; }
.foot__brand p { color: var(--muted); font-size: 15px; max-width: 30ch; }
.foot h3 { font: 600 13px/1.4 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot ul { display: grid; gap: 10px; }
.foot ul a, .foot address { font-style: normal; font-size: 15px; color: var(--ink); }
.foot ul a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.foot ul a:hover { text-decoration-color: var(--p-accent); }
.foot__legal { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot__links { display: inline-flex; gap: 20px; }
.foot__links a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
@media (max-width: 1023px) {
}
/* telefono: footer compatto */
@media (max-width: 639px) {
  .foot { padding: 0 0 20px; }
  .foot__cols { grid-template-columns: 1fr; gap: 16px; padding: 28px 0 20px; }
  .foot__brand img { height: 26px; margin-bottom: 8px; }
  .foot__brand p { font-size: 14px; }
  .foot h3 { font-size: 12px; margin-bottom: 4px; }
  .foot ul { gap: 2px; }
  .foot ul a, .foot address { font-size: 14px; }
  .foot__legal { padding-top: 14px; gap: 6px 16px; font-size: 12px; }
}

/* ---------- pop-up con il form di qualifica (richiesto dal brief) ---------- */
/* anche da telefono è un riquadro sopra la pagina (non a schermo intero): la pagina resta visibile intorno */
.modal { width: calc(100% - 24px); max-width: 560px; height: fit-content; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0;
  border-radius: var(--r-lg); background: var(--p-bg); color: var(--p-ink); overflow: hidden; box-shadow: 0 24px 60px rgb(15 35 71 / .28); }
.modal::backdrop { background: rgb(15 35 71 / .62); }
.modal__inner { display: grid; height: auto; max-height: calc(100dvh - 32px); }
.modal__side { display: none; }
.modal__main { position: relative; overflow-y: auto; overscroll-behavior: contain; max-height: calc(100dvh - 32px);
  padding: 60px clamp(18px, 5vw, 28px) calc(var(--s-6) + env(safe-area-inset-bottom)); }
.modal__close { position: absolute; top: var(--s-3); right: var(--s-3); z-index: 5; display: grid; place-items: center; width: 44px; height: 44px;
  padding: 0; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--p-bg); color: var(--p-ink); cursor: pointer;
  transition: background-color var(--m-out, 120ms) var(--ease), transform var(--m-press, 90ms) var(--ease); }
.modal__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.modal__close:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .modal__close:hover { background: var(--p-surface); } }
.modal__loading { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-7) 0; color: var(--p-muted); }
.modal__spinner { width: 20px; height: 20px; border-radius: 99px; border: 2px solid var(--p-ink); border-right-color: transparent; animation: modal-spin .8s linear infinite; }
@keyframes modal-spin { to { transform: rotate(360deg); } }
.modal__error { padding: var(--s-6) 0; }
.modal__error a { text-decoration: underline; }
@media (min-width: 760px) {
  .modal { width: min(940px, calc(100% - 48px)); max-width: none; box-shadow: none; height: fit-content; max-height: calc(100dvh - 48px); margin: auto; border-radius: var(--r-lg); }
  .modal__inner { grid-template-columns: 300px 1fr; height: auto; max-height: calc(100dvh - 48px); }
  .modal__side { display: flex; flex-direction: column; padding: var(--s-7) var(--s-6); }
  .modal__title { font: var(--display-weight) var(--t-h3)/1.15 var(--font-display); letter-spacing: var(--display-tracking); margin-bottom: var(--s-6); }
  .modal__steps { list-style: none; margin: 0 0 auto; padding: 0; display: grid; gap: var(--s-4); }
  .modal__steps li { display: flex; gap: var(--s-3); align-items: flex-start; line-height: 1.45; }
  .modal__steps b { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 99px;
    background: var(--p-accent); color: var(--p-accent-ink); font-size: var(--t-label); font-weight: 500; }
  .modal__trust { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--muted); }
  .modal__main { padding: var(--s-8) var(--s-8) var(--s-7); max-height: calc(100dvh - 48px); }
}
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: modal-in 260ms cubic-bezier(.22, 1, .36, 1) both; }
  .modal[open]::backdrop { animation: modal-fade 200ms ease both; }
}
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }

/* il widget del form con i colori e i caratteri della pagina */
#adp-lead-form.adp-form { --adp-accent: var(--p-action); --adp-accent-ink: var(--p-action-ink); --adp-accent-soft: #e9edf4;
  --adp-ink: var(--p-ink); --adp-muted: var(--p-muted); --adp-line: color-mix(in oklab, var(--p-ink) 20%, transparent);
  --adp-bg: var(--p-bg); --adp-radius: var(--r-lg); --adp-shadow: none; max-width: 34rem; margin: 0; font-family: var(--font-text); }
.modal .adp-card { border: 0; padding: 0; box-shadow: none; background: transparent; }
.modal .adp-cal-host:not(.is-pre) { border: 0; padding: 0; background: transparent; }
.modal .adp-form h2 { font: var(--display-weight) var(--t-h3)/1.15 var(--font-display); letter-spacing: var(--display-tracking); padding-right: 48px; }
.modal .adp-form h2.adp-title-big { font-size: var(--t-h2); line-height: 1.12; }
.modal .adp-kicker { letter-spacing: 0; text-transform: none; font-size: var(--t-label); font-weight: 500; color: var(--p-muted); }
.modal .adp-btn { min-height: 48px; border-radius: var(--r-btn, 10px); font-weight: 500; }
.modal .adp-btn:hover { filter: none; background: color-mix(in oklab, var(--p-action) 86%, var(--p-bg)); }
.modal .adp-btn-ghost { background: transparent; color: var(--p-ink); border: 1px solid var(--p-ink); }
.modal .adp-opt { border-radius: var(--r-md); min-height: 48px; }
.modal .adp-form input[type="text"], .modal .adp-form input:not([type]), .modal .adp-form input[type="tel"] { min-height: 48px; border-radius: var(--r-sm); background: #fff; }
.modal .adp-back { min-height: 44px; }


/* la finestra non mostra l'anello di focus: il focus va subito sul bottone Chiudi */
.modal:focus, .modal:focus-visible { outline: none; }

/* titolo della hero in grassetto e in stampatello (richiesto da Salvo) */
.hero h1 { font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
/* da pc il riquadro è più largo, così il titolo in stampatello sta su due righe */
@media (min-width: 1024px) {
  .hero--photo .hero__text { width: min(652px, 70%); }
  .hero--photo h1 { max-width: none; }
}
