:root {
    --brand: #f37a1f;
    --brand-700: #d1610f;
    --brand-50: #fff4ea;
    --dark: #1c1f24;
    --text: #2b2f36;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #ffffff;
    --bg-soft: #f6f7f9;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(16, 24, 40, .08);
    --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); }
img { max-width: 100%; display: block; }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .inner { display: flex; align-items: center; gap: 1.5rem; padding: .55rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--dark); font-weight: 800; }
.brand img { height: 46px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-block; padding: .5rem .85rem; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem; }
.site-nav a:hover { background: var(--bg-soft); color: var(--brand-700); }
.site-nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.site-nav .nav-area a { border: 1px solid var(--brand); color: var(--brand-700); }
.site-nav .nav-area a:hover { background: var(--brand); color: #fff; }
.nav-ico { width: 15px; height: 15px; vertical-align: -3px; }

/* Hero */
.hero { position: relative; min-height: 78vh; display: grid; place-items: center; color: #fff; overflow: hidden; text-align: center; }
.hero .slides { position: absolute; inset: 0; }
.hero .slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: heroFade 25s infinite; }
.hero .slides img:nth-child(1) { animation-delay: 0s; }
.hero .slides img:nth-child(2) { animation-delay: 5s; }
.hero .slides img:nth-child(3) { animation-delay: 10s; }
.hero .slides img:nth-child(4) { animation-delay: 15s; }
.hero .slides img:nth-child(5) { animation-delay: 20s; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .68)); }
.hero .hero-content { position: relative; z-index: 2; padding: 4rem 1rem; max-width: 820px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 .8rem; color: #fff; }
.hero p { font-size: 1.1rem; opacity: .95; margin: 0 0 1.6rem; }
@keyframes heroFade { 0% { opacity: 0; } 6% { opacity: 1; } 20% { opacity: 1; } 26% { opacity: 0; } 100% { opacity: 0; } }

/* Sections */
.section { padding: 4rem 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--dark); color: #fff; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 .5rem; }
.lead { color: var(--muted); font-size: 1.05rem; }
.section.dark .lead { color: #cbd2dc; }

/* Grids & cards */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; color: var(--brand-700); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat .num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--brand); }
.stat .lbl { color: var(--muted); font-weight: 600; }
.section.dark .stat .lbl { color: #cbd2dc; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: center; }
.split img { border-radius: var(--radius); }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.partner { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.partner img { height: 42px; width: auto; object-fit: contain; margin-bottom: .6rem; }
.partner h3 { margin: .2rem 0 .4rem; font-size: 1rem; color: var(--text); }
.partner p { margin: 0; font-size: .85rem; color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: .6rem .8rem; font-size: .9rem; color: var(--muted); }

/* CTA */
.cta { background: var(--brand); color: #fff; text-align: center; }
.cta h2 { color: #fff; margin-top: 0; }
.cta p { opacity: .95; }

/* Buttons */
.btn { display: inline-block; padding: .7rem 1.3rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; line-height: 1; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand-50); color: var(--brand-700); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* Contatti */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-list .ico { width: 22px; height: 22px; flex-shrink: 0; color: var(--brand); margin-top: 2px; }
.btn .ico { width: 18px; height: 18px; margin-right: .4rem; color: currentColor; vertical-align: -3px; }
.map-frame { width: 100%; height: 380px; border: 0; border-radius: var(--radius); }

/* Footer */
.site-footer { background: var(--dark); color: #cbd2dc; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding: 3rem 0 1.5rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer .logo { height: 46px; width: auto; filter: brightness(0) invert(1); margin-bottom: .8rem; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1rem 0 2rem; font-size: .85rem; color: #94a3b8; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 900px) {
    .grid-3, .grid-2, .split { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .site-footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .site-header .inner { flex-wrap: wrap; gap: .4rem; }
    .site-nav { margin-left: 0; width: 100%; }
    .hero { min-height: 62vh; }
    .site-footer .bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    .hero .slides img { animation: none; }
    .hero .slides img:first-child { opacity: 1; }
}
