:root {
  --red: #d90000;
  --red-dark: #b00000;
  --black: #111111;
  --dark: #1c1c1c;
  --grey: #f3f3f3;
  --text: #222;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
.container { width: min(1100px, 92%); margin: 0 auto; }

.site-header { background: #fff; border-bottom: 3px solid var(--red); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .5rem 0; }
.logo img { display: block; height: 55px; width: auto; }
.nav a { color: var(--black); text-decoration: none; font-weight: 600; margin-left: 1.8rem; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--red); border-bottom-color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; color: var(--black); font-size: 1.8rem; cursor: pointer; }

.hero { background: linear-gradient(135deg, var(--black), #3a3a3a); color: #fff; padding: 4rem 0; border-bottom: 6px solid var(--red); }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.hero p { color: #ddd; margin-bottom: 1.5rem; }
.btn { display: inline-block; background: var(--red); color: #fff; padding: .8rem 1.8rem; border-radius: 4px; text-decoration: none; font-weight: 700; transition: background .2s; }
.btn:hover { background: var(--red-dark); }

.section { padding: 4rem 0; }
.section h1 { margin-bottom: 1rem; border-left: 5px solid var(--red); padding-left: .8rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.card { background: var(--grey); padding: 1.5rem; border-radius: 6px; border-top: 4px solid var(--red); }
.card h3 { margin-bottom: .5rem; color: var(--black); }
.contacts { list-style: none; }
.contacts li { margin-bottom: .6rem; }

.site-footer { background: var(--black); color: #bbb; text-align: center; padding: 1.5rem 0; font-size: .9rem; border-top: 3px solid var(--red); }

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 3px solid var(--red); flex-direction: column; padding: 1rem 4%; }
  .nav.open { display: flex; }
  .nav a { margin: .5rem 0; }
  .logo img { height: 45px; }
}

/* Nuove sezioni */
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; }
.hero-img { width: 100%; height: auto; }
.eyebrow { color: var(--red) !important; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; margin-bottom: .5rem !important; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 0 !important; }
.btn-outline { background: transparent; border: 2px solid #fff; padding: calc(.8rem - 2px) calc(1.8rem - 2px); }
.btn-outline:hover { background: #fff; color: var(--black); }
.section h2 { margin-bottom: 1.2rem; border-left: 5px solid var(--red); padding-left: .8rem; }
.section h3 { margin: 1.5rem 0 .6rem; }
.section p { margin-bottom: 1rem; }
.section-grey { background: var(--grey); }
.section-grey .card { background: #fff; }
.icon { display: block; width: 56px; height: 56px; margin-bottom: .8rem; }
.card-link { color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.card-link:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.card a { color: var(--red); }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.two-col img { width: 100%; height: auto; border-radius: 12px; }
.checklist { list-style: none; margin-bottom: 1.5rem; }
.checklist li { position: relative; padding: .5rem 0 .5rem 2rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .75rem; width: 1.1rem; height: 1.1rem; background: var(--red); border-radius: 50%; }
.checklist li::after { content: ""; position: absolute; left: .38rem; top: 1rem; width: .3rem; height: .55rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cta { background: var(--black); color: #fff; text-align: center; padding: 3.5rem 0; border-top: 6px solid var(--red); }
.cta h2 { margin-bottom: .8rem; }
.cta p { margin-bottom: 1.5rem; color: #ddd; }
.cta a:not(.btn) { color: #fff; }
.site-footer p + p { margin-top: .3rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--red); }
@media (max-width: 800px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero-img { max-width: 420px; margin: 0 auto; }
}

/* Pagine legali */
.legal { max-width: 800px; }
.legal h2 { font-size: 1.15rem; border-left: 0; padding-left: 0; margin: 2rem 0 .6rem; color: var(--black); }
.legal ul { margin: 0 0 1rem 1.4rem; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--red); }

/* Scheda contatti e mappa */
.contact-form { max-width: 760px; margin-top: 1rem; }
.form-row { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .3rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { font-weight: 600; font-size: .95rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form select, .contact-form textarea {
  font: inherit; padding: .65rem .8rem; border: 1px solid #bbb; border-radius: 4px; background: #fff; width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--red); border-color: var(--red); }
.form-check { flex-direction: row; align-items: flex-start; gap: .6rem; }
.form-check input { margin-top: .35rem; accent-color: var(--red); }
.form-check label { font-weight: 400; }
.form-check a { color: var(--red); }
.contact-form .btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.form-note { margin-top: 1rem; font-size: .9rem; color: #555; }
.map-wrap { border: 3px solid var(--black); border-radius: 8px; overflow: hidden; margin: 1rem 0 .4rem; }
.map-wrap iframe { display: block; width: 100%; height: 400px; border: 0; }
.map-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.btn-dark { background: var(--black); }
.btn-dark:hover { background: #333; }

/* Avviso cookie */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 100; max-width: 900px; margin: 0 auto;
  background: var(--black); color: #fff; border-top: 4px solid var(--red); border-radius: 8px; padding: 1rem 1.2rem;
  display: flex; gap: 1rem; align-items: center; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.cookie-banner p { margin: 0; font-size: .92rem; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner .btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; white-space: nowrap; }
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .map-wrap iframe { height: 300px; }
}
.map-placeholder { background: var(--grey); min-height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; gap: .5rem; }
.map-placeholder p { max-width: 520px; font-size: .95rem; margin: 0; }
.map-placeholder a { color: var(--red); }
.map-placeholder .btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; margin-top: 1rem; }
@media (max-width: 700px) { .map-placeholder { min-height: 300px; } }

/* ===== Animazioni ===== */
html { scroll-behavior: smooth; }

/* Ingresso della Home */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes gradShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.hero { background: linear-gradient(120deg, #111, #3a3a3a, #111, #4a1010); background-size: 300% 300%; animation: gradShift 18s ease infinite; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,0,0,.35), transparent 70%); animation: glow 7s ease-in-out infinite; pointer-events: none; }
@keyframes glow { 0%,100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.25); opacity: 1; } }
.hero-grid > div > * { opacity: 0; animation: fadeUp .8s ease forwards; }
.hero-grid > div > *:nth-child(1) { animation-delay: .1s; }
.hero-grid > div > *:nth-child(2) { animation-delay: .25s; }
.hero-grid > div > *:nth-child(3) { animation-delay: .4s; }
.hero-grid > div > *:nth-child(4) { animation-delay: .55s; }
.hero-img { opacity: 0; animation: fadeUp 1s ease .35s forwards; position: relative; }

/* Fascia numeri */
.stats { background: #fff; border-bottom: 1px solid #e5e5e5; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 2rem 0; gap: 1rem; }
.stat-num { display: block; font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; color: var(--red); line-height: 1.1; }
.stat-label { display: block; color: #555; font-size: .95rem; margin-top: .3rem; }

/* Comparsa allo scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Effetti al passaggio del mouse */
.card { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 26px rgba(0,0,0,.15); }
.card .icon { transition: transform .3s ease; }
.card:hover .icon { transform: translateY(-4px) scale(1.12) rotate(-4deg); }
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.btn:hover::after { left: 130%; }
.logo img { transition: transform .3s ease; }
.logo:hover img { transform: scale(1.05); }
.nav a { transition: color .2s, border-color .2s; }
.site-header { transition: box-shadow .3s ease; }
.site-header.scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.cookie-banner { animation: fadeUp .6s ease .6s backwards; }

/* Movimento ridotto */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-grid > div > *, .hero-img { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ===== Foto ===== */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.feature-reverse { grid-template-columns: 1.1fr 1fr; }
.feature-reverse .photo { order: 2; }
.feature .btn { margin-top: .5rem; }
.photo { margin: 0; border-radius: 10px; overflow: hidden; box-shadow: 12px 12px 0 var(--red); }
.photo img { display: block; width: 100%; height: 400px; object-fit: cover; transition: transform .8s ease; }
.photo:hover img { transform: scale(1.06); }
.photo-tall img { height: 520px; object-position: center 35%; }
.photo-wide { margin: 1.5rem 0 2rem; box-shadow: 8px 8px 0 var(--red); }
.photo-wide img { height: 320px; }
.feature:not(.feature-reverse) .photo img[src*="assistenza"] { object-position: center 30%; }
.cta-photo { background: linear-gradient(rgba(17,17,17,.8), rgba(17,17,17,.8)), url("../img/foto-cta.jpg") center / cover fixed; padding: 5rem 0; }
.credits { font-size: .75rem; color: #888; margin-top: .6rem; }
.credits a { color: #bbb !important; text-decoration: underline; }
@media (max-width: 800px) {
  .feature, .feature-reverse { grid-template-columns: 1fr; gap: 2rem; }
  .feature-reverse .photo { order: 0; }
  .photo { box-shadow: 8px 8px 0 var(--red); }
  .photo img, .photo-tall img { height: 300px; }
  .cta-photo { background-attachment: scroll; }
}

/* ===== Selettore lingua ===== */
.lang-switch { display: inline-flex; margin-left: 1.8rem; border: 2px solid var(--black); border-radius: 4px; overflow: hidden; vertical-align: middle; }
.nav .lang-switch a { margin: 0; padding: .15rem .6rem; border: 0; font-size: .85rem; font-weight: 700; color: var(--black); }
.nav .lang-switch a:hover { background: #eee; color: var(--black); border: 0; }
.nav .lang-switch a.current { background: var(--black); color: #fff; }
@media (max-width: 700px) { .lang-switch { margin: .6rem 0 0; align-self: flex-start; } }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 1rem 0 1.5rem; }
.faq-item { border: 1px solid #ddd; border-left: 4px solid var(--red); border-radius: 6px; margin-bottom: .7rem; background: #fff; }
.faq-item summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 700; list-style: none; position: relative; padding-right: 2.5rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1.1rem; top: .75rem; font-size: 1.3rem; color: var(--red); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 1.1rem 1rem; margin: 0; color: #444; }

/* ===== Zone servite ===== */
.area-list { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.area-list li { background: #fff; border: 1px solid #ddd; border-left: 4px solid var(--red); border-radius: 999px; padding: .35rem 1rem; font-weight: 600; font-size: .95rem; }
