/* Font ospitati sul sito (nessuna connessione a Google Fonts) · licenza SIL OFL 1.1 */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/inter-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: 'Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/anton-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; }

:root {
  /* Palette ricavata dal logo COLBEN (lime #D0D700 + bianco) */
  --brand: #d0d700;        /* lime del marchio: superfici, pulsanti, dettagli su fondo scuro */
  --brand-dark: #b9bf00;   /* hover */
  --brand-ink: #5c6000;    /* oliva: testo in tinta su fondo chiaro (contrasto 6.4:1) */
  --brand-tint: #f1f4bd;   /* sfondo icone */
  --teal: #31a3be;         /* azzurro dei video COLBEN, alternato al lime */
  --teal-ink: #217a91;     /* teal scurito per testo su fondo chiaro (contrasto 4.7:1) */
  --bg: #fafaf5;
  --bg-alt: #f4f5e4;
  --ink: #1c1d17;          /* grafite: testo e testo sopra il lime */
  --muted: #5e6157;
  --line: #e4e5d8;
  --dark: #1c1d17;
  --dark-muted: #a9a99e;
  --wa: #15803d;           /* verde WhatsApp scurito: testo bianco a 5:1 */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 29, 23, .08);
  /* Impact come nel logo; Anton è il fallback web per i dispositivi senza Impact (Android, iOS) */
  --display: Impact, 'Anton', Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--brand-ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--brand) 62%); padding: 0 .08em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
.h-small { font-size: 1.2rem; margin-top: 1.6rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #f2f3ea; }
.section-dark .eyebrow { color: var(--brand); }
.section-intro { max-width: 640px; color: var(--muted); font-size: 1.1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--brand-ink); margin-bottom: .8em; }

/* Segnaposto */
.todo { background: #ffd6e5; color: #8a1846; padding: 0 .25em; border-radius: 3px; }
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 180px; padding: 20px; border: 2px dashed #c4c79a; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #eef0d6, #eef0d6 12px, #f6f7e9 12px, #f6f7e9 24px);
  color: #6f7240; font-weight: 600;
}
.ph small { font-weight: 400; opacity: .85; }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.6em; border-radius: 999px; border: 2px solid var(--brand);
  background: var(--brand); color: var(--ink); font-family: var(--display); font-weight: 400;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none; font-size: 1.05rem;
  cursor: pointer; transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--brand); }
.btn-small { padding: .5em 1.1em; font-size: .95rem; }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: #116b33; border-color: #116b33; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 245, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: .6em; text-decoration: none; color: var(--ink); }
.logo img { width: 42px; height: 42px; }
.logo-text { font-family: var(--display); font-size: 1.6rem; letter-spacing: .04em; line-height: 1; }
.logo-sub { color: var(--teal-ink); }
.nav { display: flex; align-items: center; gap: 1.8em; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--brand-ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 90px) 0 clamp(64px, 8vw, 100px); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8em 0 2em; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6em 1.6em; font-size: .95rem; color: var(--muted); }
.hero-points li::before { content: '✓'; color: var(--brand-ink); font-weight: 700; margin-right: .45em; }
.ph-hero { aspect-ratio: 4 / 3.4; box-shadow: var(--shadow); }
.hero-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center 60%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Card vantaggi */
.tiles { list-style: none; padding: 0; margin: 2.5em 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile {
  display: flex; align-items: center; justify-content: center; text-align: center; aspect-ratio: 4 / 3; padding: 20px;
  border-radius: var(--radius); font-family: var(--display); font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.1;
  text-transform: uppercase; letter-spacing: .03em; transition: transform .25s;
}
.tile:hover { transform: translateY(-4px) rotate(-1deg); }
/* Illustrazione in trasparenza dietro il testo; si anima al passaggio del mouse */
.tile { position: relative; overflow: hidden; }
.tile > span { position: relative; z-index: 1; }
.tile-art {
  position: absolute; right: -6%; bottom: -10%; width: 62%; height: auto; opacity: .16;
  fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s ease, opacity .5s ease;
}
.tile:hover .tile-art { transform: translate(-8%, -8%) scale(1.15) rotate(-8deg); opacity: .32; }
.tile-lime { background: var(--brand); color: var(--ink); }
.tile-teal { background: var(--teal); color: #fff; }

/* Spazi */
.spazi-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 64px); margin-top: 2em; align-items: start; }
.specs { margin: 1.5em 0 0; display: grid; gap: 0; }
.specs div { display: flex; justify-content: space-between; gap: 1em; padding: .75em 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .5em; }
.checklist li::before { content: '✓'; color: var(--brand-ink); font-weight: 700; margin-right: .6em; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery .ph { aspect-ratio: 4 / 3; min-height: 0; }
.gallery .ph-wide { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.gallery img.wide { grid-column: 1 / -1; aspect-ratio: 4 / 3; object-position: center 55%; }

/* Per chi */
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); margin-top: 2em; }
.cols-3 > div { border-top: 4px solid var(--brand); padding-top: 1.2em; }
.cols-3 p { color: var(--muted); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 2.5em 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 30px; }
.steps p { color: var(--dark-muted); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: var(--ink); font-family: var(--display); font-size: 1.3rem; margin-bottom: 1em; }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 1.5em; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: .75em .9em; border: 1px solid #d5d7c4; border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand-ink); outline-offset: 1px; border-color: transparent; }
.form-error { grid-column: 1 / -1; color: #b3261e; margin: 0; font-weight: 600; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.contact-info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 1.1em; }
.ci-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.contact-list a { font-weight: 600; text-decoration: none; }
.map { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9em; padding: 20px; text-align: center; }
.map-consent p { margin: 0; }
.map-consent small { color: var(--muted); }
.map-consent > a { font-size: .9rem; }

/* Footer */
.site-footer { background: var(--dark); color: var(--dark-muted); padding: 48px 0 32px; font-size: .92rem; }
.site-footer a { color: var(--brand); }
.site-footer strong { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; }
.footer-links { display: flex; gap: 1.5em; align-items: start; }
.copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; margin: 8px 0 0; }
.credits { grid-column: 1 / -1; margin: 0; font-size: .82rem; }
.credits + .credits { margin-top: -16px; }

/* WhatsApp flottante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }

/* Formule */
#formule .h-small { margin-top: 2.5em; }

/* FAQ */
.faq { max-width: 820px; margin-top: 2em; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1em;
  padding: 1.1em 0; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex-shrink: 0; font-size: 1.5rem; line-height: 1; color: var(--brand-ink); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brand-ink); }
.faq details p { margin: 0 0 1.2em; color: var(--muted); max-width: 70ch; }

/* Banner cookie */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 70; max-width: 760px; margin-inline: auto;
  display: flex; align-items: center; gap: 20px; padding: 18px 22px; border-radius: var(--radius);
  background: var(--dark); color: #f2f3ea; box-shadow: 0 12px 36px rgba(0, 0, 0, .25); font-size: .92rem;
}
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--brand); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner, .spazi-grid, .contact-grid { grid-template-columns: 1fr; }
  .tiles, .steps { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .9em 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1em; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cookie-banner { flex-direction: column; align-items: stretch; left: 12px; right: 12px; bottom: 12px; }
  .cookie-actions .btn { flex: 1; }
  .steps, .form { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 5 / 4; font-size: 1.3rem; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Pagine legali (cookie policy, privacy policy) */
.legal { max-width: 780px; }
.legal h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 1.8em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .35em; }
.legal address { font-style: normal; }
.sitemap a { font-weight: 500; }
.legal-date { margin-top: 2.5em; font-size: .9rem; color: var(--muted); }
