/* ============================================================
   FUTURA GROUP — style.css
   Palette: bg #F8F8F6 · primary #1B2A3B · accent #CC1417
            text #2C2C2C · footer #1B2A3B
   ============================================================ */

/* ─── RESET & BASE ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:        #F8F8F6;
    --primary:   #1B2A3B;
    --accent:    #CC1417;
    --text:      #2C2C2C;
    --gray:      #6B7280;
    --light:     #EFEFED;
    --white:     #FFFFFF;
    --shadow:    0 4px 24px rgba(27,42,59,.10);
    --shadow-lg: 0 12px 40px rgba(27,42,59,.16);
    --ease:      cubic-bezier(.4,0,.2,1);
    --t:         .3s;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--t) var(--ease);
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

.section-pad { padding: 104px 0; }

/* ─── SECTION HEADER ─── */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: clamp(1.9rem, 3.8vw, 2.75rem);
    color: var(--primary);
    display: inline-block;
    position: relative;
    margin-bottom: 14px;
}

.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin: 12px auto 0;
}

.section-title.white       { color: var(--white); }
.section-title.white::after { background: var(--accent); }

.section-sub {
    color: var(--gray);
    font-size: 1.05rem;
    margin-top: 6px;
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .925rem;
    letter-spacing: .4px;
    cursor: pointer;
    transition: all var(--t) var(--ease);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: #A50F12;
    border-color: #A50F12;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(165,15,18,.40);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-2px) scale(1.03);
}

.btn-full { width: 100%; text-align: center; }

/* ─── SCROLL REVEAL ─── */
.reveal {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: .15s; }
.delay-2 { transition-delay: .30s; }
.delay-3 { transition-delay: .45s; }

/* ─── HERO FADE-IN KEYFRAMES ─── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
    opacity: 0;
    animation: fadeUp .85s var(--ease) forwards;
}
.fade-up.delay-1 { animation-delay: .18s; }
.fade-up.delay-2 { animation-delay: .34s; }
.fade-up.delay-3 { animation-delay: .50s; }


/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 900;
    padding: 22px 0;
    transition: background var(--t) var(--ease),
                box-shadow var(--t) var(--ease),
                padding var(--t) var(--ease);
}

.navbar.scrolled {
    background: #FFFFFF;
    box-shadow: 0 2px 18px rgba(27,42,59,.09);
    padding: 13px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.45rem;
    color: var(--white);
    letter-spacing: -.5px;
    transition: color var(--t) var(--ease);
    padding: 4px 0;
    display: flex;
    align-items: center;
}
.logo span { color: var(--accent); }
.logo-img {
    height: 80px;
    width: auto;
    display: block;
    border-radius: 8px;
}
.navbar.scrolled .logo { color: var(--primary); }

/* Nav links */
.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-links a {
    font-size: .875rem;
    font-weight: 500;
    color: rgba(255,255,255,.88);
    letter-spacing: .25px;
    position: relative;
    padding-bottom: 3px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width var(--t) var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.navbar.scrolled .nav-links a { color: var(--text); }
.navbar.scrolled .nav-links a:hover { color: var(--primary); }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--t) var(--ease);
    transform-origin: center;
}
.navbar.scrolled .nav-toggle span { background: var(--primary); }

/* X state */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    background: var(--primary);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 44px,
            rgba(204,20,23,.07) 44px,
            rgba(204,20,23,.07) 45px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 44px,
            rgba(204,20,23,.05) 44px,
            rgba(204,20,23,.05) 45px
        );
    pointer-events: none;
    z-index: 4;
}

/* Radial light gradient for depth */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 15% 55%, rgba(204,20,23,.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 5;
    padding-top: 120px;
    padding-bottom: 80px;
}

.hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    color: var(--white);
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    max-width: 720px;
}

.hero-subtitle {
    font-size: clamp(.95rem, 1.8vw, 1.15rem);
    color: rgba(255,255,255,.68);
    margin-bottom: 44px;
    max-width: 520px;
    line-height: 1.75;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}




/* ══════════════════════════════════════════════════════════
   PRODOTTI — TABS
══════════════════════════════════════════════════════════ */
.prodotti { background: var(--bg); }

.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #E2E2DF;
    margin-bottom: 52px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .84rem;
    color: var(--gray);
    cursor: pointer;
    padding: 12px 22px;
    white-space: nowrap;
    position: relative;
    margin-bottom: -2px;
    transition: color var(--t) var(--ease);
}
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform var(--t) var(--ease);
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); }
.tab-btn.active::after { transform: scaleX(1); }

/* Tab panels */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: tabIn .35s var(--ease);
}
@keyframes tabIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(27,42,59,.13);
}

.card-img {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #ddd;
}
.card-img img { transition: transform .55s var(--ease); }
.product-card:hover .card-img img { transform: scale(1.08); }

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27,42,59,.88);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 28px;
    transform: translateY(100%);
    transition: transform .45s var(--ease);
}
.card-overlay span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    color: var(--accent);
    letter-spacing: .4px;
}
.product-card:hover .card-overlay { transform: translateY(0); }
.card-overlay.overlay-active      { transform: translateY(0); }

.card-body { padding: 20px 24px 26px; }
.card-body h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 6px;
}
.card-body p {
    font-size: .87rem;
    color: var(--gray);
    line-height: 1.5;
}


/* ══════════════════════════════════════════════════════════
   TIMELINE
══════════════════════════════════════════════════════════ */
.timeline-section { background: var(--light); }

.timeline {
    position: relative;
    padding: 20px 0 20px;
}

/* Vertical track */
.timeline-track {
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 3px;
    background: #DDDBD8;
    transform: translateX(-50%);
    border-radius: 4px;
    overflow: hidden;
}

.timeline-line-fill {
    width: 100%;
    height: 0%;
    background: var(--accent);
    border-radius: 4px;
    transition: height .08s linear;
    will-change: height;
}

/* Steps */
.timeline-steps { position: relative; }

.timeline-step {
    display: grid;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}
.timeline-step:last-child { margin-bottom: 0; }

.tl-left  { grid-template-columns: 1fr 0 1fr; }
.tl-right { grid-template-columns: 1fr 0 1fr; }

.tl-left  .step-content { grid-column: 1; padding-right: 52px; text-align: right; }
.tl-left  .step-dot     { grid-column: 2; }
.tl-left  .step-spacer  { grid-column: 3; }

.tl-right .step-spacer  { grid-column: 1; }
.tl-right .step-dot     { grid-column: 2; }
.tl-right .step-content { grid-column: 3; padding-left: 52px; text-align: left; }

.step-dot { display: none; }

.step-content {
    background: var(--white);
    border-radius: 8px;
    padding: 28px 32px;
    box-shadow: var(--shadow);
}

.step-num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: 2.5px;
    color: var(--accent);
    margin-bottom: 8px;
}
.step-content h3 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 8px;
}
.step-content p {
    font-size: .88rem;
    color: var(--gray);
    line-height: 1.65;
}

/* Timeline photo (es. Taglio Laser) */
.step-photo-wrap {
    display: flex;
    align-items: center;
    padding-left: 52px;
}
#laserWrap {
    overflow: hidden;
    border-radius: 8px;
}
#laserImg {
    will-change: transform;
    transition: transform 0.1s linear;
}
.timeline-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: block;
}

/* Timeline reveal animation */
.tl-reveal {
    opacity: 0;
    transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.tl-left.tl-reveal   { transform: translateX(-30px); }
.tl-right.tl-reveal  { transform: translateX(30px); }
.tl-reveal.visible   { opacity: 1; transform: translateX(0); }


/* ══════════════════════════════════════════════════════════
   CHI SIAMO
══════════════════════════════════════════════════════════ */
.chi-siamo { background: var(--primary); }

.chi-siamo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
}

.chi-siamo-text p {
    color: rgba(255,255,255,.7);
    margin-bottom: 20px;
    font-size: .975rem;
    line-height: 1.8;
}
.chi-siamo-text p:last-child { margin-bottom: 0; }

/* Numbers */
.numbers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.number-item {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 36px 20px;
    text-align: center;
    transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
    min-height: 130px;
}
.number-item:hover {
    background: rgba(204,20,23,.1);
    border-color: rgba(204,20,23,.3);
}

.number-val {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.8rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 10px;
    white-space: nowrap;
    height: 2.8rem;
}

.number-label {
    font-size: .8rem;
    color: rgba(255,255,255,.55);
    font-weight: 500;
    letter-spacing: .4px;
    line-height: 1.4;
}


/* ══════════════════════════════════════════════════════════
   PERCHÉ SCEGLIERCI
══════════════════════════════════════════════════════════ */
.perche { background: var(--bg); }

.perche-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.perche-card {
    background: var(--white);
    border-radius: 10px;
    padding: 48px 36px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
    border-bottom: 3px solid transparent;
}
.perche-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(27,42,59,.13);
    border-bottom-color: var(--accent);
}

.perche-icon {
    width: 60px; height: 60px;
    background: rgba(204,20,23,.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    padding: 14px;
    transition: background var(--t) var(--ease);
}
.perche-card:hover .perche-icon { background: rgba(204,20,23,.18); }
.perche-icon svg { width: 100%; height: 100%; }

.perche-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 12px;
}
.perche-card p {
    font-size: .9rem;
    color: var(--gray);
    line-height: 1.7;
}


/* ══════════════════════════════════════════════════════════
   CONTATTI
══════════════════════════════════════════════════════════ */
.contatti { background: var(--light); }

.contatti-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

/* Form */
.contatti-form {
    background: var(--white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .3px;
    color: var(--primary);
    margin-bottom: 7px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #E2E2DF;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: .935rem;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(204,20,23,.18);
    background: var(--white);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #AEAEAD; }

.form-note {
    margin-top: 14px;
    font-size: .78rem;
    color: #AEAEAD;
    line-height: 1.5;
}

/* Info column */
.info-block {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.info-icon {
    width: 46px; height: 46px;
    flex-shrink: 0;
    background: rgba(204,20,23,.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px;
}
.info-icon svg { width: 100%; height: 100%; }

.info-block h4 {
    font-size: .82rem;
    color: var(--primary);
    margin-bottom: 4px;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.info-block p {
    font-size: .925rem;
    color: var(--gray);
    line-height: 1.65;
}
.info-block a {
    color: var(--accent);
    font-weight: 600;
}
.info-block a:hover { color: #A50F12; }

.map-container {
    margin-top: 32px;
    border-radius: 10px;
    overflow: hidden;
    height: 270px;
    box-shadow: var(--shadow);
}
.map-container iframe {
    width: 100%; height: 100%;
    border: 0;
    display: block;
}


/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer {
    background: var(--primary);
    padding-top: 72px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 60px;
    padding-bottom: 52px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-logo {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--white);
    letter-spacing: -.5px;
    margin-bottom: 16px;
}
.footer-logo span { color: var(--accent); }
.footer-logo-img {
    height: 60px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: .9rem;
    color: rgba(255,255,255,.55);
    line-height: 1.7;
    max-width: 260px;
}

.footer-nav h4,
.footer-contacts h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-bottom: 22px;
}

.footer-nav li { margin-bottom: 10px; }
.footer-nav a {
    font-size: .9rem;
    color: rgba(255,255,255,.6);
    transition: color var(--t) var(--ease);
}
.footer-nav a:hover { color: var(--accent); }

.footer-contacts p {
    font-size: .9rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 10px;
    line-height: 1.6;
}
.footer-contacts a {
    color: var(--accent);
    font-weight: 600;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: .82rem;
    color: rgba(255,255,255,.3);
}

/* ─── SOCIAL LINKS ─── */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.65);
    transition: color var(--t) var(--ease),
                background var(--t) var(--ease),
                border-color var(--t) var(--ease),
                transform var(--t) var(--ease);
}
.social-link svg {
    width: 18px;
    height: 18px;
    display: block;
}
.social-link:hover,
.social-link:focus-visible {
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* Social row inside the contatti info column */
.info-social {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}
.info-social .social-link {
    border-color: rgba(27,42,59,.18);
    color: var(--primary);
}
.info-social .social-link:hover,
.info-social .social-link:focus-visible {
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
}


/* ─── NAV ACTIVE LINK ─── */
.nav-links a.nav-active {
    color: var(--accent) !important;
}
.nav-links a.nav-active::after {
    width: 100%;
}

/* ─── PRODOTTI CTA ─── */
.prodotti-cta {
    text-align: center;
    margin-top: 72px;
    padding: 56px 40px;
    background: var(--primary);
    border-radius: 12px;
}
.prodotti-cta p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 24px;
}

/* ══════════════════════════════════════════════════════════
   PAGE HERO (sub-pages)
══════════════════════════════════════════════════════════ */
.page-hero {
    background: var(--primary);
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 44px,
            rgba(204,20,23,.07) 44px,
            rgba(204,20,23,.07) 45px
        );
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.page-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    color: var(--white);
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.page-hero-sub {
    font-size: clamp(.95rem, 1.8vw, 1.1rem);
    color: rgba(255,255,255,.65);
    max-width: 480px;
    line-height: 1.75;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .chi-siamo-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
    .chi-siamo-photo-wrap { grid-column: 1 / -1; max-width: 420px; }
}

@media (max-width: 900px) {
    .section-pad { padding: 76px 0; }
    .perche-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    /* Navbar mobile */
    .nav-toggle { display: flex; }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        position: fixed;
        inset: 0;
        background: var(--primary);
        z-index: 999;
        transform: translateX(100%);
        transition: transform .35s var(--ease);
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a {
        font-size: 1.35rem;
        font-weight: 600;
        color: var(--white);
    }
    .navbar.scrolled .nav-links a { color: var(--white); }

    /* Hero */
    .hero-title { font-size: 2.1rem; letter-spacing: -.8px; }
    .hero-cta { flex-direction: column; align-items: flex-start; }
    .hero-cta .btn { width: 100%; text-align: center; }

    /* Products */
    .products-grid { grid-template-columns: 1fr; }
    .tab-nav { gap: 0; }

    /* Timeline */
    .timeline-track { left: 20px; }
    .tl-left, .tl-right {
        grid-template-columns: 1fr !important;
        padding-left: 52px;
    }
    .tl-left .step-content,
    .tl-right .step-content {
        grid-column: 1 !important;
        grid-row: 1;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    .step-dot {
        left: 20px;
        grid-column: 1 !important;
        grid-row: 1;
    }
    .step-spacer { display: none; }

    /* Chi siamo */
    .chi-siamo-grid { grid-template-columns: 1fr; gap: 48px; }

    /* Perché */
    .perche-grid { grid-template-columns: 1fr; }

    /* Contatti */
    .contatti-grid { grid-template-columns: 1fr; gap: 40px; }
    .contatti-form { padding: 28px 20px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }

    /* Footer */
    .footer-top { grid-template-columns: 1fr; gap: 36px; }
    .footer-brand { grid-column: auto; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero-title { font-size: 1.85rem; }
    .numbers-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .number-val { font-size: 2.2rem; }
    .number-item { padding: 24px 14px; }
    .perche-card { padding: 36px 24px; }
    .step-content { padding: 22px 20px; }
}


/* ══════════════════════════════════════════════════════════
   HERO — background image + parallax
══════════════════════════════════════════════════════════ */
.hero-bg-img {
    position: absolute;
    inset: -20% 0 0;
    background: url('sfon.png') center / cover no-repeat;
    will-change: transform;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20,25,35,.75);
    z-index: 2;
}


/* ══════════════════════════════════════════════════════════
   REVEAL — slide from left / right
══════════════════════════════════════════════════════════ */
.reveal-left {
    opacity: 0;
    transform: translateX(-44px);
    transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal-right {
    opacity: 0;
    transform: translateX(44px);
    transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}


/* ══════════════════════════════════════════════════════════
   CHI SIAMO — photo column
══════════════════════════════════════════════════════════ */
.chi-siamo-photo-wrap {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
}

.chi-siamo-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.dal-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    top: auto;
    left: auto;
    transform: none;
    background: var(--accent);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 10px 16px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(204,20,23,.45);
    white-space: nowrap;
    z-index: 1;
}


/* ══════════════════════════════════════════════════════════
   GALLERIA — masonry grid
══════════════════════════════════════════════════════════ */
.galleria { background: var(--light); }

.galleria-grid {
    columns: 4;
    column-gap: 16px;
}

.galleria-item {
    break-inside: avoid;
    margin-bottom: 16px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.galleria-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .55s var(--ease), filter .4s var(--ease);
}

.galleria-item:hover img {
    transform: scale(1.04);
    filter: brightness(.72);
}

.galleria-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(20,25,35,.85));
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .3px;
    padding: 20px 14px 12px;
    transform: translateY(100%);
    transition: transform .35s var(--ease);
}

.galleria-item:hover .galleria-caption { transform: translateY(0); }


/* ══════════════════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════════════════ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s var(--ease);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,14,20,.92);
}

.lightbox-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    width: 100%;
    transform: scale(.92);
    transition: transform .35s var(--ease);
}

.lightbox.active .lightbox-inner { transform: scale(1); }

.lightbox-img-wrap {
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
}

.lightbox-img-wrap img {
    width: 100%;
    height: auto;
    max-height: 68vh;
    object-fit: contain;
    display: block;
}

.lightbox-info {
    background: var(--primary);
    border-radius: 0 0 8px 8px;
    padding: 20px 28px;
}

.lightbox-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 6px;
}

.lightbox-info p {
    font-size: .9rem;
    color: rgba(255,255,255,.6);
}

.lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px; height: 36px;
    background: rgba(255,255,255,.12);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s var(--ease);
    color: var(--white);
    font-size: 1.2rem;
    line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,.24); }


/* ══════════════════════════════════════════════════════════
   COUNT-UP PULSE
══════════════════════════════════════════════════════════ */
@keyframes countPulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}
.number-val.pulse { animation: countPulse .5s var(--ease) forwards; }


/* ══════════════════════════════════════════════════════════
   GALLERIA & CHI SIAMO responsive
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .galleria-grid { columns: 3; }
}

@media (max-width: 768px) {
    .galleria-grid { columns: 2; }
    .chi-siamo-grid {
        grid-template-columns: 1fr !important;
        gap: 36px;
    }
    .chi-siamo-photo-wrap { max-width: 100%; height: 260px; }
    .chi-siamo-photo { min-height: 260px; }
    .dal-badge { bottom: -12px; right: 12px; }
}

@media (max-width: 480px) {
    .galleria-grid { columns: 1; }
    .lightbox { padding: 16px; }
    .lightbox-close { top: -40px; }
}


/* ══════════════════════════════════════════════════════════
   INTRO OVERLAY
══════════════════════════════════════════════════════════ */
#pg-intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    pointer-events: all;
}

.ipl {
    position: absolute;
    left: 0; right: 0;
    background: var(--primary);
    background-image: repeating-linear-gradient(
        45deg, transparent, transparent 44px,
        rgba(204,20,23,.06) 44px, rgba(204,20,23,.06) 45px
    );
    z-index: 2;
    will-change: transform;
}
#ipl-t { top: 0; height: 51%; }
#ipl-b { bottom: 0; height: 51%; }

#ipl-laser {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 1px;
    width: 0;
    background: var(--accent);
    box-shadow: 0 0 10px 2px rgba(204,20,23,.95), 0 0 35px 8px rgba(204,20,23,.3);
    z-index: 5;
    border-radius: 1px;
    pointer-events: none;
}

#ipl-c {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    pointer-events: none;
}

#ipl-logo {
    height: 88px;
    width: auto;
    display: block;
    border-radius: 8px;
    clip-path: inset(50% 0 50% 0);
}

#ipl-tag {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    opacity: 0;
    transform: translateY(6px);
    white-space: nowrap;
}

/* Congela le animazioni hero finché l'intro non è finita */
body:not(.intro-done) .hero .fade-up {
    animation: none !important;
    opacity: 0 !important;
}


/* ══════════════════════════════════════════════════════════
   PROCESS BANDS — Come Lavoriamo
══════════════════════════════════════════════════════════ */
.process-section {
    background: var(--bg);
    padding-top: 104px;
    padding-bottom: 0;
}

.process-bands { margin-top: 56px; }

.process-band {
    display: flex;
    min-height: 420px;
    overflow: hidden;
}

/* Alternating direction — even bands flip image to right */
.process-band:nth-child(even) { flex-direction: row-reverse; }

/* ── Image half ── */
.band-img {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    background: var(--primary);
}

/* Crosshatch placeholder (always present, covered by real img) */
.band-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg, transparent, transparent 44px,
        rgba(204,20,23,.07) 44px, rgba(204,20,23,.07) 45px
    );
    z-index: 1;
    pointer-events: none;
}

.band-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .65s var(--ease);
    z-index: 2;
}

.process-band:hover .band-img img { transform: scale(1.04); }

/* ── Text half ── */
.band-content {
    flex: 0 0 50%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 64px 72px;
    overflow: hidden;
}

.process-band:nth-child(odd)  .band-content { background: var(--white); }
.process-band:nth-child(even) .band-content { background: var(--light); }

/* Large decorative step number (background) */
.band-num {
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 8rem;
    line-height: 1;
    letter-spacing: -4px;
    color: rgba(27,42,59,.05);
    user-select: none;
    pointer-events: none;
}

/* On white background (odd bands) the 5% is nearly invisible — bump it up */
.process-band:nth-child(odd) .band-num {
    color: rgba(27,42,59,.09);
}

.band-inner {
    position: relative;
    z-index: 1;
    max-width: 400px;
}

.band-label {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .7rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.band-inner h3 {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    color: var(--primary);
    margin-bottom: 14px;
    line-height: 1.25;
}

.band-inner p {
    font-size: .935rem;
    color: var(--gray);
    line-height: 1.75;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .band-content { padding: 52px 52px; }
}

@media (max-width: 900px) {
    .band-content { padding: 44px 36px; }
    .band-num { font-size: 6rem; }
    .process-band { min-height: 340px; }
}

@media (max-width: 768px) {
    .process-section { padding-top: 76px; }
    .process-bands { margin-top: 40px; }

    /* Stack vertically on mobile — image always on top */
    .process-band,
    .process-band:nth-child(even) { flex-direction: column; }

    .band-img {
        flex: none;
        width: 100%;
        height: 220px;
    }

    .band-content {
        flex: none;
        width: 100%;
        padding: 32px 24px;
    }

    .band-num { font-size: 5rem; top: 8px; right: 14px; }
    .band-inner { max-width: 100%; }
}

@media (max-width: 480px) {
    .band-img { height: 190px; }
    .band-content { padding: 26px 18px; }
    .band-num { font-size: 4rem; }
}
