/* TBManaged — stile del sito. Mobile first: le regole base sono per il telefono,
   i blocchi @media (min-width: ...) aggiungono il layout per schermi più grandi.
   Per cambiare i colori modifica solo le variabili qui sotto. */

:root {
  /* colori */
  --bg: #111511;          /* fondo: nero con una punta di verde */
  --alt: #171C16;         /* sezioni alterne */
  --surface: #1E241D;     /* riquadri */
  --white: #FFFFFF;
  --ink: #ECEAE2;         /* testo principale, bianco caldo */
  --muted: #A6AC9F;       /* testo secondario (contrasto ≥ 7:1 sul fondo) */
  --line: #2C342B;        /* linee sottili */
  --dark: #0B0E0B;        /* sezione galleria */
  --dark-muted: #A6AC9F;
  --wine: #3B1522;        /* riquadro "Quando sei qui" */
  --accent: #CFB07A;      /* champagne: pulsanti e link */
  --accent-hover: #DEC394;
  --on-accent: #151711;   /* testo sui pulsanti champagne */
  --wa: #1FA855;

  /* carattere: Schibsted Grotesk (Google Fonts), con quello di sistema come riserva */
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* misure */
  --wrap: 1080px;
  --wrap-wide: 1320px;
  --pad: 20px;
  --radius-lg: 20px;
  --radius: 12px;
  --section: 72px;
  --header: 52px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 7vw, 3.5rem); }
h3 { font-size: 1.6rem; letter-spacing: -0.02em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Lingua: si vede solo il testo della lingua attiva */
html[data-lang="en"] span[lang="it"],
html[data-lang="it"] span[lang="en"] { display: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.wrap-wide { max-width: var(--wrap-wide); }
.section { padding: var(--section) 0; }
.section-head { margin: 0 0 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.15rem; line-height: 1.5; margin: .9rem 0 0; max-width: 36rem; }

.ico { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- pulsanti e link ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .75em 1.4em; border-radius: 999px; border: 0;
  font: 500 1.0625rem/1.1 var(--font); letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.more { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-size: 1.0625rem; text-decoration: none; }
.more::after { content: "›"; margin-left: .3em; font-size: 1.3em; line-height: 1; transform: translateY(-.04em); }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.6rem; margin: 0; }

/* ---------- barra in alto ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20;
  background: rgba(17, 21, 17, .82);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header); }
.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none; }
.bar-end { display: flex; align-items: center; gap: .5rem; }
.lang { display: flex; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 2px; }
.lang button { min-width: 40px; min-height: 32px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 600 .75rem/1 var(--font); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.menu-btn { min-height: 36px; padding: 0 .9rem; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--ink); font: 500 .85rem/1 var(--font); cursor: pointer; }

.nav { display: none; position: absolute; top: var(--header); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav.open { display: block; }
.nav ul { padding: .25rem var(--pad) 1rem; }
.nav a { display: block; padding: .85rem 0; font-size: 1.25rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---------- apertura ---------- */
.hero { padding: calc(var(--header) + 40px) 0 var(--section); }
.hero h1 { font-size: clamp(2.5rem, 9vw, 5rem); max-width: 13ch; }
.hero-text { color: var(--muted); font-size: clamp(1.1rem, 2.2vw, 1.35rem); line-height: 1.5; max-width: 36rem; margin: 1.2rem 0 1.6rem; }
.hero-grid { display: grid; gap: 2.4rem; align-items: center; }
.hero-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--alt); }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media video { opacity: 0; transition: opacity 1.2s ease; }
.hero-media.video-on video { opacity: 1; }

/* ---------- fatti ---------- */
.facts ul { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem 1.2rem; padding-top: 2.4rem; padding-bottom: 2.4rem; border-top: 1px solid var(--line); }
.facts li { font-size: .95rem; color: var(--muted); line-height: 1.35; }
.facts li { padding-left: .9rem; border-left: 2px solid var(--accent); }
.facts strong { display: block; color: var(--ink); font-size: 1.05rem; font-weight: 600; margin-bottom: .2rem; }

/* ---------- servizi (riquadri) ---------- */
.services { background: var(--alt); }
.tiles { display: grid; gap: 16px; }
.tile { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
.tile-body { padding: 32px 26px; }
.tile-text { color: var(--muted); font-size: 1.1rem; line-height: 1.4; margin: .6rem 0 1.2rem; }
.ticks li { padding: .6rem 0; border-top: 1px solid var(--line); line-height: 1.35; }
.ticks li:first-child { border-top: 0; }
.tile .more { margin-top: 1rem; }
.tile-img { position: relative; margin: auto 0 0; aspect-ratio: 4 / 3; }
.tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-noimg { background: var(--wine); color: var(--ink); }
.tile-noimg .tile-text { color: #C9B3BA; }
.tile-noimg .ticks li { border-color: rgba(255, 255, 255, .12); }
.tile-noimg .more { color: var(--accent); }

/* ---------- come funziona ---------- */
.steps h2 { margin-bottom: 2.6rem; }
.steps ol { display: grid; gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--accent); margin-bottom: .6rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.steps h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.steps p { color: var(--muted); margin: 0; max-width: 22rem; }

/* ---------- galleria (sezione scura) ---------- */
.gallery { background: var(--dark); color: var(--white); }
.gallery .section-head p { color: var(--dark-muted); }
.g-grid { columns: 2; column-gap: 10px; }
.g-item { position: relative; margin: 0 0 10px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.g-item img, .g-item video { width: 100%; height: auto; }
.g-item.is-video video { aspect-ratio: 9 / 16; object-fit: cover; }
.g-item.is-wide video { aspect-ratio: 16 / 9; }
.badge { position: absolute; left: 10px; bottom: 10px; padding: .35em .8em; border-radius: 999px; background: rgba(251, 251, 253, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); font-size: .78rem; font-weight: 600; }

/* ---------- dove ---------- */
.area { background: var(--alt); }
.area-grid { display: grid; gap: 2.4rem; }
.area h2 { margin-bottom: 1rem; }
.area p { color: var(--muted); font-size: 1.15rem; line-height: 1.45; }
.towns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.towns li { padding: .4em .9em; background: var(--surface); border-radius: 999px; font-size: .9rem; }
.map { border-radius: var(--radius-lg); overflow: hidden; }

/* ---------- recensioni ---------- */
.reviews h2 { margin-bottom: 2.4rem; }
.rev-list { display: grid; gap: 16px; }
.rev-list figure { margin: 0; padding: 2rem 1.6rem; background: var(--surface); border-radius: var(--radius-lg); }
.rev-list blockquote { margin: 0; font-size: 1.3rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; }
.rev-list blockquote p { margin: 0; }
.rev-list figcaption { margin-top: 1rem; color: var(--muted); }

/* ---------- chi sono ---------- */
.about-grid { display: grid; gap: 1.6rem; }
.portrait { box-shadow: 0 0 0 1px var(--line), 0 0 0 8px var(--alt), 0 0 0 9px rgba(207, 176, 122, .5); width: min(200px, 56vw); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.about h2 { margin-bottom: 1rem; }
.about p { max-width: 36rem; color: var(--muted); font-size: 1.1rem; line-height: 1.6; }

/* ---------- domande ---------- */
.faq { background: var(--alt); }
.faq-grid { display: grid; gap: 1rem; }
.faq h2 { margin-bottom: 2rem; }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; cursor: pointer; list-style: none; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.6rem; font-weight: 300; line-height: 1; color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 0 0 1.2rem; max-width: 40rem; }

/* ---------- contatti ---------- */
.contact-grid { display: grid; gap: 2.4rem; }
.contact h2 { font-size: clamp(2.4rem, 8vw, 4.4rem); margin-bottom: 1rem; }
.contact-grid > div > p { color: var(--muted); font-size: 1.2rem; }
.contact dl { margin: 0; display: grid; gap: 1.4rem; width: 100%; max-width: 900px; padding-top: 2rem; border-top: 1px solid var(--line); }
.contact dt { font-size: .85rem; color: var(--muted); margin-bottom: .2rem; }
.contact dd { margin: 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.contact dd a { color: var(--accent); text-decoration: none; }
.contact dd a:hover { text-decoration: underline; }
.contact .btn-light { background: var(--accent); color: var(--on-accent); }
.contact .btn-light:hover { background: var(--accent-hover); }

/* ---------- footer ---------- */
.site-footer { background: var(--alt); color: var(--muted); font-size: .8rem; padding: 1.2rem 0 5rem; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink); }

.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--wa); color: var(--white); box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.wa-float .ico { width: 28px; height: 28px; }

/* ---------- tablet ---------- */
@media (min-width: 700px) {
  :root { --pad: 32px; --section: 100px; }
  .facts ul { grid-template-columns: repeat(4, 1fr); }
  .tiles { grid-template-columns: 1fr 1fr; gap: 20px; }
  .tile-body { padding: 44px 40px; }
  .tile:first-child, .tile:nth-child(4), .tile-noimg { grid-column: span 2; }
  .tile:first-child, .tile:nth-child(4) { display: grid; grid-template-columns: 1fr 1fr; }
  .tile-img { aspect-ratio: auto; flex: 1 0 auto; min-height: 280px; margin: 0; }
  .tile:first-child .tile-img, .tile:nth-child(4) .tile-img { min-height: 400px; }
  .tile:nth-child(4) .tile-img { order: -1; }
  .tile-noimg .ticks { columns: 3; column-gap: 2rem; }
  .tile-noimg .ticks li { break-inside: avoid; border-top: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .steps ol { grid-template-columns: 1fr 1fr; gap: 3rem 2rem; }
  .g-grid { columns: 3; column-gap: 16px; }
  .g-item { margin-bottom: 16px; }
  .rev-list { grid-template-columns: 1fr 1fr; gap: 20px; }
  .contact dl { grid-template-columns: repeat(3, 1fr); }
  .site-footer { padding-bottom: 1.2rem; }
}

/* ---------- computer ---------- */
@media (min-width: 960px) {
  :root { --section: 128px; }
  .menu-btn { display: none; }
  .nav { display: block; position: static; background: none; border: 0; }
  .nav ul { display: flex; gap: 2rem; padding: 0; }
  .nav a { padding: .4rem 0; border: 0; font-size: .85rem; font-weight: 400; color: var(--muted); }
  .nav a:hover { color: var(--ink); }
  .hero { padding-top: calc(var(--header) + 72px); }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
  .hero-media { aspect-ratio: 4 / 5; max-height: 600px; }
  .steps ol { grid-template-columns: repeat(4, 1fr); }
  .area-grid { grid-template-columns: 1fr 1.15fr; gap: 4.5rem; align-items: center; }
  .portrait { width: 280px; }
  .section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; margin-bottom: 3rem; }
  .section-head h2 { flex: 1 1 50%; }
  .section-head p { margin: 0; flex: 1 1 40%; }
  .about-grid { grid-template-columns: 280px 1fr; gap: 4rem; align-items: center; }
  .faq-grid { grid-template-columns: 1fr 1.7fr; gap: 4rem; }
  .faq h2 { margin: 0; }
  .contact-grid { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .contact dl { grid-template-columns: 1fr; border-top: 0; padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
