/* =========================================================
   Ce.Ma.T. Utensileria — Sito vetrina
   Brand: #f15a24 (arancio industriale) · #0a0a0b (nero)
   ========================================================= */

/* Font Inter self-hosted (GDPR: nessuna richiesta a Google Fonts) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/inter-latin.woff2') format('woff2');
}

:root {
    --orange: #f15a24;
    --orange-dark: #c8430f;
    --orange-soft: rgba(241, 90, 36, 0.12);
    --black: #0a0a0b;
    --ink: #0c0d0e;
    --panel: #131416;
    --panel-2: #1b1d20;
    --line: rgba(255, 255, 255, 0.08);
    --text: #f3f4f5;
    --muted: #a6a9ad;
    --white: #ffffff;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 2rem;
    background: rgba(10, 10, 11, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: padding 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled { padding: 0.6rem 2rem; background: rgba(10, 10, 11, 0.92); }

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 1.35rem;
}
.brand .dot { color: var(--orange); }
.brand-logo { height: 38px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a {
    position: relative;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    padding: 0.3rem 0;
    transition: color 0.25s var(--ease);
}
.site-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--orange);
    transition: width 0.3s var(--ease);
}
.site-nav a:hover, .site-nav a.active { color: var(--white); }
.site-nav a:hover::after, .site-nav a.active::after { width: 100%; }

/* ---------- Language switcher ---------- */
.lang-switch { display: flex; gap: 0.35rem; align-items: center; }
.lang-switch a {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.32rem 0.55rem;
    border-radius: 8px;
    color: var(--muted);
    border: 1px solid transparent;
    transition: all 0.25s var(--ease);
}
.lang-switch a:hover { color: var(--white); border-color: var(--line); }
.lang-switch a.active { color: var(--white); background: var(--orange); }

/* ---------- Buttons ---------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 170px;
    padding: 0.95rem 1.7rem;
    border-radius: 999px;
    background: var(--orange);
    color: var(--white);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.button:hover { transform: translateY(-3px); background: var(--orange-dark); box-shadow: 0 18px 35px rgba(241, 90, 36, 0.35); }
.button-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text);
}
.button-secondary:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--white); box-shadow: none; }

/* ---------- Layout ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 5.5rem 1.5rem; }
.section-header { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    font-weight: 700;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; }
.section-header h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: 1rem; }
.section-header p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 7rem 1.5rem 5rem;
    background:
        radial-gradient(60% 80% at 80% 10%, rgba(241, 90, 36, 0.22), transparent 60%),
        radial-gradient(50% 60% at 10% 90%, rgba(241, 90, 36, 0.1), transparent 60%),
        linear-gradient(180deg, #0a0a0b 0%, var(--black) 100%);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000 0%, transparent 75%);
    mask-image: radial-gradient(70% 70% at 70% 30%, #000 0%, transparent 75%);
    opacity: 0.6;
    animation: drift 28s linear infinite;
}
@keyframes drift { from { background-position: 0 0, 0 0; } to { background-position: 64px 64px, 64px 64px; } }

.hero-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero-content { max-width: 720px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 0.5rem 0 1.3rem; }
.hero h1 .accent { color: var(--orange); }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 600px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Stats ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    max-width: var(--maxw);
    margin: -3.5rem auto 0;
    padding: 0 1.5rem;
    position: relative;
    z-index: 5;
}
.stat {
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem 1.4rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat .num { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--white); }
.stat .num .plus { color: var(--orange); }
.stat .label { color: var(--muted); font-size: 0.86rem; margin-top: 0.3rem; }

/* ---------- Intro split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.split h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 1.2rem; }
.split p { color: var(--muted); font-size: 1.05rem; }
.split-visual {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 30% 30%, rgba(241, 90, 36, 0.35), transparent 55%),
        linear-gradient(135deg, #17181a, #0a0a0b);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.split-visual::after {
    content: 'CE.MA.T';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.05);
}
.split-visual.has-logo {
    display: grid;
    place-items: center;
    padding: 2.75rem;
    background: var(--black);
    border-color: var(--black);
}
.split-visual.has-logo::after { content: none; }
.split-visual .logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translateY(-6%);
}
.split-visual.has-photo { aspect-ratio: auto; }
.split-visual.has-photo::after { content: none; }
.split-visual .photo-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
    position: relative;
    padding: 2.2rem;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.card:hover { transform: translateY(-8px); border-color: rgba(241, 90, 36, 0.4); }
.card:hover::before { transform: scaleX(1); }
.card .icon {
    width: 54px; height: 54px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--orange-soft);
    color: var(--orange);
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}
.card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.card p { color: var(--muted); }
.card .tag {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: var(--orange-soft);
    color: var(--orange);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ---------- Category groups (products) ---------- */
.cat-block { margin-top: 3.5rem; }
.cat-block h2 {
    display: flex; align-items: center; gap: 0.8rem;
    font-size: 1.5rem; margin-bottom: 1.4rem;
}
.cat-block h2::before { content: ''; width: 26px; height: 4px; border-radius: 4px; background: var(--orange); }

/* ---------- Feature list (why) ---------- */
.features { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature { padding: 1.8rem; border-left: 3px solid var(--orange); background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0; }
.feature h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Info / CTA band ---------- */
.band {
    text-align: center;
    background:
        radial-gradient(60% 120% at 50% 0%, rgba(241, 90, 36, 0.18), transparent 60%),
        var(--ink);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.band h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1rem; }
.band p { color: var(--muted); max-width: 620px; margin: 0 auto 2rem; }
.band .hero-actions { justify-content: center; }

/* ---------- Featured highlight (brands) ---------- */
.event-feature {
    display: grid; grid-template-columns: 160px 1fr; gap: 2rem; align-items: center;
    padding: 2.2rem;
    border-radius: var(--radius);
    background: linear-gradient(120deg, rgba(241, 90, 36, 0.16), transparent 70%), var(--panel);
    border: 1px solid rgba(241, 90, 36, 0.35);
    margin-bottom: 2.5rem;
}
.event-date {
    text-align: center; padding: 1.2rem; border-radius: 14px;
    background: var(--orange); color: var(--white); font-weight: 800;
}
.event-date .big { font-size: 2.4rem; line-height: 1; }
.event-feature h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.event-feature .when { color: var(--orange); font-weight: 700; margin-bottom: 0.7rem; }
.event-feature p { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.contact-info { display: grid; gap: 1.2rem; align-content: start; }
.info-row { display: flex; gap: 1rem; padding: 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.info-row .icon { color: var(--orange); font-size: 1.3rem; }
.info-row .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.info-row .value { font-weight: 600; }
.info-row a.value:hover { color: var(--orange); }

.form { display: grid; gap: 1rem; padding: 2rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.form label { font-size: 0.85rem; color: var(--muted); }
.form input, .form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    font: inherit;
    transition: border-color 0.25s var(--ease);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--orange); }
.form textarea { min-height: 130px; resize: vertical; }
.form-alert { padding: 0.85rem 1.1rem; border-radius: 12px; font-size: 0.92rem; }
.form-alert.success { background: rgba(46, 160, 67, 0.16); border: 1px solid rgba(46, 160, 67, 0.5); color: #d6f5dd; }
.form-error { display: block; margin-top: 0.35rem; color: #ff8a80; font-size: 0.8rem; }
.form input.is-invalid, .form textarea.is-invalid { border-color: #ff8a80; }
.form-consent label { display: flex; gap: 0.6rem; align-items: flex-start; cursor: pointer; color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.form-consent input[type="checkbox"] { width: auto; margin: 0.2rem 0 0; flex: 0 0 auto; accent-color: var(--orange); }
.form-consent a { color: var(--orange); }
.form-consent a:hover { text-decoration: underline; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.note { font-size: 0.85rem; color: var(--muted); border-left: 3px solid var(--orange); padding-left: 1rem; margin-top: 2.5rem; }

/* ---------- Legal pages (privacy / cookie) ---------- */
.legal-body { max-width: 820px; color: var(--muted); }
.legal-body h3 { color: var(--text); font-size: 1.15rem; margin: 1.8rem 0 0.6rem; }
.legal-body p { margin-bottom: 0.8rem; }
.legal-body ul { margin: 0 0 0.8rem 1.2rem; }
.legal-body li { margin-bottom: 0.4rem; }
.legal-body a { color: var(--orange); }
.legal-body a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer {
    background: #060607;
    border-top: 1px solid var(--line);
    padding: 3rem 1.5rem 2rem;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.footer .brand { font-size: 1.2rem; }
.footer p { color: var(--muted); font-size: 0.9rem; }
.footer .copy { width: 100%; text-align: center; color: #6a6d71; font-size: 0.82rem; padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--line); }
.footer-links { width: 100%; text-align: center; font-size: 0.85rem; }
.footer-links a { color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: var(--orange); }

/* ---------- Cookie bar ---------- */
.cookie-bar {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 200;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 1rem 1.4rem;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.cookie-bar p { color: var(--muted); font-size: 0.9rem; margin: 0; flex: 1 1 320px; }
.cookie-bar a { color: var(--orange); }
.cookie-bar .button { min-width: 130px; padding: 0.7rem 1.4rem; }
.cookie-bar[hidden] { display: none; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ---------- Mobile menu toggle ---------- */
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .split { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .event-feature { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .site-header { padding: 0.9rem 1.1rem; }
    .nav-toggle { display: block; }
    .site-nav {
        position: fixed;
        inset: 64px 0 auto 0;
        flex-direction: column;
        gap: 0;
        background: rgba(10, 10, 11, 0.98);
        border-bottom: 1px solid var(--line);
        padding: 0.5rem 0;
        transform: translateY(-120%);
        transition: transform 0.35s var(--ease);
    }
    .site-nav.open { transform: translateY(0); }
    .site-nav a { width: 100%; text-align: center; padding: 0.9rem; }
    .hero { min-height: 80vh; }
    .button { width: 100%; }
    .footer-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
