/* ITA Dream Team — design system minimo
   Palette: solo token ITA Dream Team (assets/css/brand-tokens.css). */
:root {
  /* Tutti i colori derivano da brand-tokens.css (ITA Dream Team). Nessun colore fuori token. */
  --white: var(--brand-white);
  --blue-900: var(--brand-navy);
  --blue-700: var(--brand-navy);
  --blue-500: var(--brand-gold-text);
  --blue-50:  var(--brand-cream-2);
  --terracotta: var(--brand-gold-text);
  --stone: var(--brand-cream);
  --ink: var(--brand-ink);
  --ink-2: var(--brand-stone);
  --line: var(--brand-cream-3);
  --ok: var(--brand-sage);
  --wa: var(--brand-sage);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(17,34,57,.06), 0 8px 24px rgba(17,34,57,.08);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --font-body: var(--font-sans);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-700); }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 32px, var(--wrap)); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); margin-inline: auto; }
@media (max-width: 380px) {
  .wrap { width: min(100% - 20px, var(--wrap)); }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 46ch; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); margin-bottom: .9rem; }

/* ---------- Buttons (press feedback dalla proposta: scale .97, 120ms) ---------- */
.btn {
  -webkit-tap-highlight-color: transparent; user-select: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 120ms var(--ease-out), opacity 120ms var(--ease-out), background-color 160ms var(--ease-out);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.pressed { transform: scale(.97); }
.btn-primary, a.btn-primary, button.btn-primary { background: var(--blue-700); color: var(--white); }
.btn-primary:hover, a.btn-primary:hover, button.btn-primary:hover { background: var(--brand-navy-2); color: var(--white); }
.btn-wa, a.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover, a.btn-wa:hover { color: var(--white); }
.btn-ghost { background: transparent; color: var(--blue-700); box-shadow: inset 0 0 0 1.5px var(--blue-700); }
.btn-ghost:hover { background: var(--blue-50); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .93rem; }
.btn:disabled { opacity: .55; cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .btn.pressed { transform: none; opacity: .85; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; padding: 0; list-style: none; color: var(--ink-2); font-size: .95rem; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--ok); }

/* Riquadro foto: sostituire con fotografia reale (vedi README) */
.photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(120% 80% at 80% 10%, rgba(184,146,74,.35), transparent 60%),
    linear-gradient(160deg, var(--blue-700), var(--blue-900));
  box-shadow: var(--shadow);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .skyline { position: absolute; inset: auto 0 0 0; width: 100%; color: rgba(255,255,255,.14); }
.photo-card {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  background: var(--white); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
  display: flex; gap: 14px; align-items: center;
}
.photo-card svg { width: 36px; height: 36px; color: var(--blue-700); flex: none; }
.photo-card strong { display: block; font-size: 1rem; }
.photo-card span { color: var(--ink-2); font-size: .9rem; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-white { background: var(--white); }
.section-blue { background: var(--blue-900); color: var(--white); }
.section-blue h1, .section-blue h2, .section-blue h3, .section-blue h4, .section-blue strong { color: var(--white); }
.section-blue .lead, .section-blue p { color: var(--brand-on-navy-muted); }
.section-blue a:not(.btn) { color: var(--white); text-decoration: underline; }
.section-head { max-width: 720px; margin-bottom: 40px; }

.cards { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .cards, .cards.cols-2 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.section-white .card { background: var(--stone); border-color: transparent; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700); margin-bottom: 16px; }
.card .ic svg { width: 24px; height: 24px; }
.card p { color: var(--ink-2); margin: 0; }
.section-blue .card { background: var(--brand-on-navy-surface); border-color: var(--brand-on-navy-border); color: var(--white); }
.section-blue .card h3, .section-blue .card strong { color: var(--white); }
.section-blue .card p { color: var(--brand-on-navy-muted); }
.card blockquote { margin: 0 0 14px; font-style: normal; color: var(--ink); line-height: 1.55; font-size: .95rem; }
.card figcaption { font-size: .88rem; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.card figcaption strong { color: var(--ink); font-size: .95rem; }
.card .stars { color: var(--brand-gold-text); font-size: 1rem; letter-spacing: 2px; margin-bottom: 8px; }
.card .verified-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--ok); text-transform: uppercase; letter-spacing: .04em; }

.corp-card { background: var(--white); border: 1.5px solid var(--blue-500); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow); margin-top: 24px; }
.corp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
@media (max-width: 760px) { .corp-grid { grid-template-columns: 1fr; } }
.corp-item { background: var(--stone); border-radius: var(--radius); padding: 16px; }
.corp-item strong { display: block; font-size: .92rem; color: var(--blue-900); }
.corp-item span { font-size: .85rem; color: var(--ink-2); }

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 0; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; padding: 26px; border-radius: var(--radius-lg); background: var(--brand-on-navy-surface); border: 1px solid var(--brand-on-navy-border); color: var(--white); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--terracotta); color: var(--white); font-weight: 700; margin-bottom: 14px; }
.steps h3 { color: var(--white); }
.steps p { color: var(--brand-on-navy-muted); margin: 0; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; min-width: 0; }
@media (max-width: 880px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(16px, 4vw, 40px); box-shadow: var(--shadow); border: 2px solid var(--blue-700); min-width: 0; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 8px 0 4px; min-width: 0; }
.price strong { font-family: var(--font-display); font-size: clamp(2.2rem, 6.5vw, 4.4rem); line-height: 1; color: var(--blue-700); }
.price span { color: var(--ink-2); font-size: .95rem; }
.price-note { color: var(--ink-2); font-size: .92rem; overflow-wrap: anywhere; }
.check, .cross { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; min-width: 0; }
.check li, .cross li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; min-width: 0; }
.check svg { color: var(--ok); width: 20px; height: 20px; margin-top: 3px; }
.cross svg { color: var(--brand-stone-2); width: 20px; height: 20px; margin-top: 3px; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(16px, 4vw, 26px); min-width: 0; }
.side-card + .side-card { margin-top: 18px; }
.extras { width: 100%; border-collapse: collapse; font-size: .95rem; }
.extras td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.extras td:first-child { padding-right: 8px; overflow-wrap: anywhere; }
.extras td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.extras tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--blue-50); color: var(--blue-700); }
.badge-warm { background: var(--brand-cream-2); color: var(--terracotta); }

.cards, .cards.cols-2, .steps, .price-grid, .calc, .trust, .foot-grid, .choose-grid, .hero-grid { min-width: 0; }
.cards > *, .steps > *, .calc > *, .price-grid > *, .trust > *, .hero-grid > *, .choose-grid > * { min-width: 0; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 880px) { .calc { grid-template-columns: 1fr; } }
.calc-in, .calc-out { background: var(--white); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--line); }
.calc-out { background: var(--blue-900); color: var(--white); border: 0; }
.calc-out h2, .calc-out h3, .calc-out strong { color: var(--white); }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 18px; min-width: 0; max-width: 100%; }
.field > * { min-width: 0; max-width: 100%; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--ink-2); }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], select, textarea {
  width: 100%; max-width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
select { overflow: hidden; text-overflow: ellipsis; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(184,146,74,.25); }
textarea { min-height: 96px; resize: vertical; }
input[type="range"] { width: 100%; accent-color: var(--blue-700); }
.range-row { display: flex; justify-content: space-between; font-size: .9rem; color: var(--ink-2); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--white); font-weight: 600; font-size: .93rem; transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out); }
.seg input:checked + span { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.out-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--brand-on-navy-border); }
.out-row span { color: var(--brand-on-navy-muted); }
.out-big { margin-top: 18px; }
.out-big span { display: block; color: var(--brand-on-navy-muted); font-size: .95rem; }
.out-big strong { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1.05; color: var(--white); }
.disclaimer { font-size: .82rem; color: var(--brand-on-navy-muted); margin-top: 16px; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.req { color: var(--terracotta); }
.form-foot { font-size: .85rem; color: var(--ink-2); margin-top: 14px; }
.form-error { color: var(--brand-brick); font-size: .9rem; min-height: 1.4em; margin: 6px 0 0; }
.confirm { display: none; text-align: center; padding: 12px 0; }
.confirm.show { display: block; animation: fade-up 260ms var(--ease-out); }
.confirm .ok-ic { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--ok); }
.pass-code { display: inline-block; font: 700 1.6rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; background: var(--blue-50); color: var(--blue-700); padding: 14px 20px; border-radius: 12px; margin: 8px 0 16px; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .confirm.show { animation: fade-in 200ms linear; } @keyframes fade-in { from { opacity: 0; } } }

/* ---------- FAQ ---------- */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue-700); transition: transform 160ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 18px; margin: 0; }

/* ---------- Trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 880px) { .trust { grid-template-columns: repeat(2, 1fr); } }
.trust div { padding: 18px; border-left: 3px solid var(--terracotta); }
.trust strong { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.trust span { color: var(--ink-2); font-size: .92rem; }

/* ---------- Chooser (index) ---------- */
.chooser { min-height: calc(100vh - 69px); display: grid; align-items: center; padding: 48px 0; }
.choose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
@media (max-width: 760px) { .choose-grid { grid-template-columns: 1fr; } }
.choose {
  -webkit-tap-highlight-color: transparent;
  display: block; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow);
  transition: transform 120ms var(--ease-out), border-color 160ms var(--ease-out);
}
.choose:hover { border-color: var(--blue-500); }
.choose.pressed { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) { .choose.pressed { transform: none; opacity: .85; } }
.choose .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700); margin-bottom: 18px; }
.choose .ic svg { width: 28px; height: 28px; }
.choose p { color: var(--ink-2); margin-bottom: 18px; }
.choose .go { font-weight: 700; color: var(--blue-700); display: inline-flex; align-items: center; gap: 8px; }
.choose .go svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 48px 0 32px; font-size: .92rem; }
.site-footer a { color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: .95rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: .82rem; line-height: 1.7; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; gap: 10px;
    transform: translateY(140%); transition: transform 240ms var(--ease-out); }
  .sticky-cta.show { transform: none; }
  .sticky-cta .btn { flex: 1; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
  body.has-sticky { padding-bottom: 84px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .sticky-cta { transition: opacity 200ms linear; opacity: 0; transform: none; pointer-events: none; } .sticky-cta.show { opacity: 1; pointer-events: auto; } }

/* Header compatto su telefoni piccoli */
@media (max-width: 480px) {
  .site-header .wrap { gap: 8px; min-height: 58px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-name small { display: none; }
  .brand-name { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav { gap: 8px; flex-shrink: 0; }
  .nav .btn-sm { padding: 0 10px; font-size: .84rem; white-space: nowrap; min-height: 38px; }
}
.photo .skyline { color: rgba(255,255,255,.22); }

/* Banner "offerto dal tuo host" (viaggiatori.html?apt=CODICE) */
.host-banner { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 10px 14px; border-radius: 12px; background: var(--blue-50); color: var(--blue-900); font-size: .95rem; }
.host-banner[hidden] { display: none; }
.host-banner svg { width: 20px; height: 20px; color: var(--blue-700); flex: none; }
#host-apt { font: 700 .9rem/1 ui-monospace, Menlo, monospace; }
