:root {
    --dark: #080b12;
    --dark-2: #101827;
    --dark-3: #172033;
    --text: #182033;
    --muted: #687185;
    --light: #f5f7fb;
    --white: #ffffff;
    --line: rgba(16, 24, 39, .12);
    --accent: #0c1c33;
    --accent-2: #4e5a6b;
    --green: #25d366;
    --radius: 28px;
    --shadow: 0 22px 70px rgba(8, 11, 18, .13);
    --font: Bahnschrift, 'Bahnschrift SemiCondensed', 'Arial Narrow', Arial, sans-serif;
    --othertext: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.55;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}
/* FOTO GENERALI */
img {
    max-width: 100%;
    display: block;
}

.hero-photo-panel,
.industrial-photo-frame,
.strip-photo-card figure,
.product-photo-card figure,
.stat-photo-card {
    position: relative;
    overflow: hidden;
}

.hero-photo-panel img,
.industrial-photo-frame img,
.strip-photo-card figure img,
.product-photo-card figure img,
.stat-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* HERO FOTO */
.hero-photo-panel {
    min-height: 520px;
    border-radius: 34px;
    background: #111;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .18);
}

.hero-photo-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.25), rgba(0,0,0,.65));
    z-index: 1;
}

.hero-photo-panel img {
    position: absolute;
    inset: 0;
    transition: transform .8s ease;
}

.hero-photo-panel:hover img {
    transform: scale(1.06);
}

.hero-photo-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* CARD INTRO CON FOTO */
.strip-photo-card {
    padding: 18px;
}
.context-in {padding:18px;color: #fff !important;}
.context-in span { ;color: #fff !important;}

.strip-photo-card figure {
    width: 100%;
    aspect-ratio: 16 / 10;
    /* border-radius: 22px; */
    margin: 0;
    background: #e9e9e9;
}

.strip-photo-card figure::after,
.product-photo-card figure::after,
.industrial-photo-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.38));
    pointer-events: none;
}

.strip-photo-card figure img,
.product-photo-card figure img {
    transition: transform .6s ease, filter .6s ease;
}

.strip-photo-card:hover figure img,
.product-photo-card:hover figure img {
    transform: scale(1.08);
    filter: contrast(1.04);
}

/* FOTO CENTRALE */
.section-media {
    width: 100%;
    min-height: 520px;
}

.industrial-photo-frame {
    width: 100%;
    height: 100%;
    min-height: 520px;
    border-radius: 34px;
    background: #111;
    box-shadow: 0 28px 70px rgba(0,0,0,.16);
}

.industrial-photo-frame img {
    position: absolute;
    inset: 0;
    transition: transform .8s ease;
}

.industrial-photo-frame:hover img {
    transform: scale(1.06);
}

.photo-badge {
    position: absolute;
    left: 28px;
    bottom: 28px;
    z-index: 2;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 45px rgba(0,0,0,.16);
}

.photo-badge small {
    display: block;
    margin-bottom: 5px;
    color: #777;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 500;
}

.photo-badge strong {
    display: block;
    color: #111;
    font-size: 20px;
    font-weight: 600;
}

/* STATISTICHE CON FOTO */
.stat-photo-card {
    min-height: 220px;
    isolation: isolate;
}

.stat-photo-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .32;
    filter: grayscale(1) contrast(1.1);
    transition: transform .7s ease, opacity .7s ease;
}

.stat-photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.85));
}

.stat-photo-card:hover img {
    transform: scale(1.08);
    opacity: .45;
}

/* CARD PRODOTTI CON FOTO */
.product-photo-card {
    padding: 18px;
}

.product-photo-card figure {
    width: 100%;
    aspect-ratio: 16 / 11;
    border-radius: 24px;
    margin: 0 0 24px;
    background: #e7e7e7;
}

/* TESTI: MASSIMO 600 */
.hero-copy h1,
.section-heading h2,
.section-copy h2,
.product-card h3,
.product-card h2,
.strip-item h2,
.cta-box h2,
.stat-card strong {
    font-weight: 600;
}

/* MOBILE */
@media (max-width: 992px) {
    .hero-photo-panel {
        min-height: 420px;
    }

    .section-media,
    .industrial-photo-frame {
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    .hero-photo-panel {
        min-height: 340px;
        border-radius: 26px;
    }

    .section-media,
    .industrial-photo-frame {
        min-height: 340px;
        border-radius: 26px;
    }

    .photo-badge {
        left: 18px;
        bottom: 18px;
        padding: 14px 16px;
    }

    .photo-badge strong {
        font-size: 17px;
    }

    .strip-photo-card figure,
    .product-photo-card figure {
        /* border-radius: 18px; */
        /* margin-bottom: 18px; */
    }

    .stat-photo-card {
        min-height: 190px;
    }
}
a {
    color: inherit;
    text-decoration: none;
}
.brand {background: url(../img/logolight.png) no-repeat left/contain;width: 200px;height: 70px;}
button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

strong,
b {
    font-weight: 600;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    letter-spacing: -.04em;
    color: var(--dark);
    line-height: 1.0;
}

h1 {
    font-size: clamp(42px, 7vw, 86px);
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(30px, 4vw, 56px);
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

p {
    color: #2a2f39;
    font-size: 18px;
    /* text-align: justify; */
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 105px 0;
    position: relative;
}

.center {
    text-align: center;
}

.soft-reveal {
    opacity: 1;
    transform: translateY(0);
    animation: softReveal .75s ease both;
}

.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .22s; }
.delay-3 { animation-delay: .32s; }

@keyframes softReveal {
    from {
        opacity: .01;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(16, 24, 39, .08);
    transition: box-shadow .25s ease, background .25s ease;
}

.site-header.scrolled {
    background: rgba(255,255,255,.95);
    box-shadow: 0 12px 34px rgba(8, 11, 18, .08);
}

.nav-wrap {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand img {
    height: 48px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-nav a {
    font-size: 15px;
    color: var(--dark-2);
    position: relative;
    transition: color .2s ease;
}

.main-nav > a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .25s ease;
}

.main-nav > a:hover::after,
.main-nav > a.active::after {
    width: 100%;
}

.nav-cta {
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--dark);
    color: var(--white) !important;
    box-shadow: 0 12px 25px rgba(8, 11, 18, .18);
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 0;
    /* border-radius: 16px; */
    background: none;
    padding: 13px 10px;
}

.menu-toggle i {
    display: block;
    height: 3px;
    background: #fff;
    margin: 0 0 5px 0;
    border-radius: 5px;
    transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle i:last-child { margin:0}
.menu-open .menu-toggle i:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-open .menu-toggle i:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-toggle i:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    min-height: 820px;
    padding: 150px 0 90px;
    background: url(../img/sfondohero.webp) no-repeat center/cover;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    /* right: -180px; */
    top: 0px;
    width: 100%;
    height: 100%;
    /* border-radius: 50%; */
    background: #ffffffc7;
    filter: blur(2px);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(16, 24, 39, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 24, 39, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 80%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.04fr .96fr;
    gap: 60px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--othertext);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}

.eyebrow::before {
    content: '';
    width: 34px;
    height: 1px;
    background: currentColor;
}

.hero-copy p {
    max-width: 640px;
    font-size: 21px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.btn {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 15px 24px;
    border: 1px solid transparent;
    font-size: 16px;
    font-weight: 600;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    color: var(--white);
    box-shadow: 0 18px 35px rgba(8, 11, 18, .22);
}

.btn-light {
    background: rgba(255,255,255,.78);
    color: var(--dark);
    border-color: rgba(16, 24, 39, .1);
}

.hero-panel {
    position: relative;
    min-height: 520px;
    display: grid;
    place-items: center;
}
.macchinari-cnc { background:url(../img/macchinariocnc.png) no-repeat center/contain; 
    width: 100%;
    aspect-ratio: 4 / 4;
    min-height: 360px;
    position: relative;
    display: flex;
     border-radius: 28px;
    overflow: hidden;
}
@media (max-width: 768px) {
    .img-br-rob {
            aspect-ratio: 8/2;
    }
}
.code-window {
    width: min(480px, 100%);
    min-height: 420px;
    border-radius: 38px;
    background: rgba(8,11,18,.95);
    box-shadow: 0 32px 90px rgba(8, 11, 18, .26);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.code-window::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: radial-gradient(circle at 70% 20%, rgba(228,161,27,.4), transparent 28%);
    pointer-events: none;
}

.window-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 34px;
    position: relative;
    z-index: 2;
}

.window-bar span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .85;
}

.code-lines {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 16px;
}

.code-lines i {
    height: 16px;
    border-radius: 99px;
    background: linear-gradient(90deg, rgba(255,255,255,.88), rgba(255,255,255,.1));
    animation: linePulse 2.8s ease-in-out infinite;
}

.code-lines i:nth-child(1) { width: 82%; }
.code-lines i:nth-child(2) { width: 64%; animation-delay: .2s; }
.code-lines i:nth-child(3) { width: 92%; animation-delay: .4s; }
.code-lines i:nth-child(4) { width: 56%; animation-delay: .6s; }
.code-lines i:nth-child(5) { width: 76%; animation-delay: .8s; }

@keyframes linePulse {
    0%, 100% { opacity: .55; transform: scaleX(.96); }
    50% { opacity: 1; transform: scaleX(1); }
}

.metric-box {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    border-radius: 26px;
    padding: 26px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    color: var(--white);
    z-index: 2;
}

.metric-box small {
    display: block;
    color: rgba(255,255,255,.68);
    margin-bottom: 10px;
}

.metric-box strong,
.metric-box em {
    font-size: 62px;
    line-height: 1;
    color: var(--white);
    font-style: normal;
    font-weight: 600;
}

.orbit-card {
    position: absolute;
    z-index: 5;
    padding: 13px 18px;
    border-radius: 18px;
    background: var(--white);
    color: var(--dark);
    box-shadow: var(--shadow);
    font-weight: 600;
    animation: floatCard 4s ease-in-out infinite;
}

.card-top { top: 28px; left: 40px; }
.card-right { right: 2px; top: 190px; animation-delay: .3s; }
.card-bottom { left: 12px; bottom: 80px; animation-delay: .6s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.intro-strip {
    padding: 46px 0;
    background: var(--dark);
}

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

.strip-item {
    padding: 0;
    /* border-radius: 24px; */
    background: rgba(255,255,255,.06);
    /* border: 1px solid rgba(255,255,255,.08); */
    overflow: hidden;
}

.strip-item span {
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
}

.strip-item h2 {
    margin: 10px 0 8px;
    font-size: 26px;
    color: var(--white);
}

.strip-item p {
    font-size: 16px;
    margin-bottom: 0;
    color: rgba(255,255,255,.68);
}

.split-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 70px;
    align-items: start;
}

.section-copy p {
    max-width: 680px;
    text-align: justify;
}

.section-media {
    min-height: 470px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f3f5f9, #ffffff);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.img-machine { height:auto !important; min-height:320px; }
.img-br-rob {
    width: 100%;
    aspect-ratio: 4 / 4;
    min-height: 360px;
    position: relative;
    display: flex;
    background: url("../img/braccirobotici.jpg") no-repeat center center / cover;
    border-radius: 28px;
    overflow: hidden;
}
@media (max-width: 768px) {
    .img-br-rob {
            aspect-ratio: 8/2;
    }
}
.abstract-card {
    /* position: absolute; */
    /* inset: 38px; */
    /* border-radius: 34px; */
    background: var(--dark);
    /* padding: 30px; */
    /* overflow: hidden; */
}

.abstract-card::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    right: -80px;
    top: -80px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .9;
}

.abstract-card div {
    position: relative;
    z-index: 2;
    height: 68px;
    border-radius: 22px;
    background: rgba(255,255,255,.09);
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,.1);
}

.abstract-card div:nth-child(2) { width: 74%; }
.abstract-card div:nth-child(3) { width: 54%; }

.abstract-card span {
    position: absolute;
    left: 30px;
    bottom: 28px;
    color: var(--white);
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -.03em;
}

.check-list {
    display: grid;
    gap: 13px;
    margin: 28px 0;
}

.check-list li {
    padding-left: 34px;
    position: relative;
    color: var(--dark-2);
    font-size: 18px;
}

.check-list li::before {
     content: '.';  
    position: absolute;
    left: 0;
    top: 0;
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
    font-weight: 600;
}

.text-link::after {
    content: '>';
    color: var(--accent);
    transition: transform .2s ease;
}

.text-link:hover::after {
    transform: translateX(5px);
}

.dark-section {
    background: var(--dark);
    color: var(--white);
    overflow: hidden;
}

.dark-section::before {
    content: '';
    position: absolute;
    width: 560px;
    height: 560px;
    right: -220px;
    top: -180px;
    border-radius: 50%;
    background: rgb(27 26 77 / 16%);
}

.dark-section h2,
.dark-section h3 {
    color: var(--white);
}

.dark-section p {
    color: rgba(255,255,255,.68);
}

.section-heading {
    max-width: 780px;
    margin-bottom: 48px;
}

.section-heading.center {
    margin-left: auto;
    margin-right: auto;
}
.method-section {
    width: 100%;
    padding: 92px 0;
    background: linear-gradient(135deg, #0e1e35 0%, #566171 100%);
    color: #fff;
    overflow: hidden;
    /* font-family: Bahnschrift, "Arial", sans-serif; */
}

.method-section .container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.method-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 70px;
    align-items: center;
}

.method-copy .eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 15px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
    font-weight: 500;
}

.method-copy h2 {
    max-width: 480px;
    margin: 0 0 18px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 600;
    color: #fff;
}

.method-copy p {
    max-width: 430px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.75;
    font-weight: 400;
}

.method-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 34px;
    padding: 16px 26px;
    min-height: 54px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 500;
    transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}

.method-btn:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .2);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .18);
}

.method-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    position: relative;
}

.method-stat {
    min-height: 130px;
    padding: 24px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.method-stat:nth-child(1),
.method-stat:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.method-stat:nth-child(1),
.method-stat:nth-child(3) {
    border-right: 1px solid rgba(255, 255, 255, .12);
}

.method-stat strong {
    display: block;
    margin-bottom: 9px;
    font-size: clamp(42px, 6vw, 64px);
    line-height: .9;
    letter-spacing: -0.04em;
    font-weight: 600;
    color: #fff;
}

.method-stat span {
    display: block;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    font-weight: 400;
}

/* ANIMAZIONE REVEAL */
.method-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .75s ease, transform .75s ease;
}

.method-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.method-reveal.delay-1 {
    transition-delay: .18s;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .method-section {
        padding: 76px 0;
    }

    .method-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .method-copy h2,
    .method-copy p {
        max-width: 100%;
    }

    .method-stat {
        padding: 24px;
    }
}

@media (max-width: 600px) {
    .method-section {
        padding: 64px 0;
    }

    .method-section .container {
        width: min(100% - 28px, 1180px);
    }

    .method-copy h2 {
        font-size: 31px;
    }

    .method-copy p {
        font-size: 15px;
        line-height: 1.7;
    }

    .method-btn {
        width: 100%;
        margin-top: 28px;
    }

    .method-stats {
        grid-template-columns: 1fr;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }

    .method-stat {
        min-height: 118px;
        padding: 26px 0;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .method-stat:last-child {
        border-bottom: 0;
    }

    .method-stat strong {
        font-size: 54px;
        text-align: center;
    }
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card {
    padding: 34px;
    border-radius: 26px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    text-align: center;
}

.stat-card strong {
    display: block;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1;
    color: var(--othertext);
    font-weight: 600;
    margin-bottom: 10px;
}

.stat-card span {
    color: rgba(255,255,255,.7);
}

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

.large-grid {
    grid-template-columns: repeat(3, 1fr);
}
.product-photo-card .product-icon {color:#000;margin: 0 !important;background: transparent !important;box-shadow: none !important;font-size: 26px;}
.product-card {
    position: relative;
    overflow: hidden;
    padding: 34px;
    min-height: 330px;
    border-radius: 30px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 18px 50px rgba(8, 11, 18, .06);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgb(12 28 51 / 13%), transparent 38%);
    opacity: 0;
    transition: opacity .22s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: rgb(192 198 206);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card > * {
    position: relative;
    z-index: 1;
}

.product-icon {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: var(--dark);
    color: #fff;
    font-weight: 600;
    margin-bottom: 30px;
}

.product-card h2,
.product-card h3 {
    font-size: 28px;
}

.product-card p {
    font-size: 17px;
}

.product-card a {
    display: inline-flex;
    margin-top: 16px;
    color: var(--dark);
    font-weight: 600;
}

.product-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.product-card li {
    font-size: 14px;
    color: var(--dark-2);
    padding: 7px 10px;
    border-radius: 99px;
    background: #f1f3f7;
}

.cta-section {
    padding-top: 60px;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 46px;
    border-radius: 34px;
    background: linear-gradient(135deg, #f8f9fc, #ffffff);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.cta-box h2 {
    max-width: 760px;
    margin-bottom: 0;
}

.page-hero {
    padding: 155px 0 80px;
    background: linear-gradient(135deg, #f6f8fc, #ffffff);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    right: -160px;
    top: 70px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    /* background: rgba(228,161,27,.2); */
}

.page-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 56px;
    align-items: center;
}

.page-hero h1 {
    font-size: clamp(40px, 6vw, 74px);
}
.image-chi-siamo { background:url(../img/fotochisiamo.webp) no-repeat center/cover;
                 width:100%; height:100%; }
/* FOTO PRODOTTI */
.product-hero-photo,
.product-photo-card figure,
.rettifica-photo-frame {
    position: relative;
    overflow: hidden;
    background: #111;
}

.product-hero-photo {
    min-height: 420px;
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .16);
}

.product-hero-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .82;
    transition: transform .8s ease, opacity .8s ease;
}

.product-hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.15), rgba(0,0,0,.58));
    z-index: 1;
}

.product-hero-photo span {
    position: relative;
    z-index: 2;
}

.product-hero-photo:hover img {
    transform: scale(1.06);
    opacity: 1;
}

/* CARD CON FOTO */
.product-photo-card {
    padding: 18px;
    transition: transform .35s ease, box-shadow .35s ease, opacity .35s ease;
}

.product-photo-card figure {
    width: 100%;
    aspect-ratio: 16 / 10.5;
    margin: 0 0 5px;
    border-radius: 24px;
}

.product-photo-card figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease, filter .7s ease;
}

.product-photo-card figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.36));
    pointer-events: none;
}

.product-photo-card:hover {
    transform: translateY(-8px);
}

.product-photo-card:hover figure img {
    transform: scale(1.08);
    filter: contrast(1.06);
}

/* NUMERO SOPRA LA CARD */
.product-photo-card .product-icon {
    position: relative;
    z-index: 2;
    margin-top: -46px;
    margin-left: 14px;
    margin-bottom: 22px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

/* FOTO SEZIONE RETTIFICHE */
.rettifica-photo-frame {
    width: 100%;
    min-height: 520px;
    border-radius: 34px;
    box-shadow: 0 28px 70px rgba(0,0,0,.16);
}

.rettifica-photo-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}

.rettifica-photo-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.15), rgba(0,0,0,.65));
    z-index: 1;
}

.rettifica-photo-frame:hover img {
    transform: scale(1.06);
}

.rettifica-photo-badge {
    position: absolute;
    left: 28px;
    bottom: 28px;
    z-index: 2;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 45px rgba(0,0,0,.16);
}

.rettifica-photo-badge small {
    display: block;
    margin-bottom: 5px;
    color: #777;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 500;
}

.rettifica-photo-badge strong {
    display: block;
    color: #111;
    font-size: 20px;
    font-weight: 600;
}

/* FILTRO CON TRANSIZIONE */
.filter-card {
    transition: opacity .3s ease, transform .3s ease;
}

.filter-card.is-hidden {
    display: none;
}

/* FONT WEIGHT MASSIMO 600 */
.product-card h2,
.product-card h3,
.product-card strong,
.rettifica-photo-badge strong {
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .product-hero-photo {
        min-height: 360px;
    }

    .rettifica-photo-frame {
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    .product-hero-photo {
        min-height: 300px;
        border-radius: 24px;
    }

    .product-photo-card {
        padding: 14px;
    }

    .product-photo-card figure {
        border-radius: 18px;
        margin-bottom: 20px;
    }

    .product-photo-card .product-icon {
        margin-top: -42px;
        margin-left: 10px;
    }

    .rettifica-photo-frame {
        min-height: 340px;
        border-radius: 24px;
    }

    .rettifica-photo-badge {
        left: 18px;
        bottom: 18px;
        padding: 14px 16px;
    }

    .rettifica-photo-badge strong {
        font-size: 17px;
    }
}
.page-visual {
    min-height: 360px;
    border-radius: 36px;
    background: var(--dark);
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    color: var(--accent);
    position: relative;
    overflow: hidden;
}

.page-visual::before,
.page-visual::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.page-visual::before {
    width: 240px;
    height: 240px;
    background: rgba(228,161,27,.23);
    right: -70px;
    top: -70px;
}

.page-visual::after {
    width: 170px;
    height: 170px;
    border: 1px solid rgba(255,255,255,.12);
    left: 35px;
    bottom: 35px;
}

.page-visual span {
    position: relative;
    z-index: 2;
    font-size: 82px;
    font-weight: 600;
    letter-spacing: -.08em;
}

.values-panel {
    display: grid;
    margin: 40px 0;
    gap: 0px;
    text-align: justify;
}
.values-panels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    background: #000;
    border-radius: 8px;
}
.values-panels div {
    min-height: 160px;
    padding: 28px;
    display: flex;
    color: #f7f8fb;
    /* border: 1px solid var(--line); */
    flex-direction: column;
}

.values-panels strong {
    display: block;
    color: var(--othertext);
    /* margin-bottom: 26px; */
    font-size: 48px;
}

.values-panels span {
    display: block;
    color: #ddd;
    font-size: 16px;
    line-height: 1.08;
    font-weight: 600;
}
.values-panel div {
    min-height: 160px;
    padding: 28px;
    border-radius: 26px;
    background: #f7f8fb;
    border: 1px solid var(--line);
}

.values-panel strong {
    display: block;
    color: var(--accent);
    margin-bottom: 26px;
    font-size: 18px;
}

.values-panel span {
    display: block;
    color: var(--dark);
    font-size: 24px;
    line-height: 1.08;
    font-weight: 600;
}

.light-section {
    background: #f6f8fc;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.timeline-item {
    background: var(--white);
    border-radius: 28px;
    padding: 30px;
    border: 1px solid var(--line);
    position: relative;
    box-shadow: 0 12px 36px rgba(8,11,18,.04);
}

.timeline-item span {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    margin-bottom: 24px;
}

.timeline-item h3 {
    font-size: 24px;
}

.timeline-item p {
    font-size: 16px;
    margin-bottom: 0;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;
}

.mission-card {
    padding: 36px;
    border-radius: 30px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 34px;
}

.filter-btn {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--dark);
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-2px);
}

.filter-card.is-hidden {
    display: none;
}

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

.service-card {
    min-height: 300px;
    padding: 32px;
    border-radius: 30px;
    background: linear-gradient(135deg, #ffffff, #f7f8fb);
    border: 1px solid var(--line);
    box-shadow: 0 14px 42px rgba(8,11,18,.05);
    transition: transform .22s ease, box-shadow .22s ease;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.service-card span {
    display: inline-flex;
    color: var(--accent);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 44px;
}

.service-card h2 {
    font-size: 30px;
}

.service-card p {
    font-size: 17px;
    margin-bottom: 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 46px;
}

.accordion {
    display: grid;
    gap: 14px;
}

.accordion-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
}

.accordion-item button {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
    color: var(--dark);
    font-size: 20px;
    font-weight: 600;
}

.accordion-item button::after {
    content: '+';
    color: var(--accent);
    font-size: 28px;
    line-height: 1;
}

.accordion-item.active button::after {
    content: '-';
}

.accordion-item div {
    display: none;
    padding: 0 24px 24px;
}

.accordion-item.active div {
    display: block;
}

.accordion-item p {
    margin-bottom: 0;
    font-size: 17px;
}

.contact-info-card {
    padding: 34px;
    border-radius: 32px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.contact-info-card h2 {
    font-size: 34px;
}

.contact-info-card p {
    font-size: 17px;
    margin-bottom: 18px;
}

.contact-info-card p:last-child {
    margin-bottom: 0;
}

.contact-info-card a {
    color: var(--dark);
    font-weight: 600;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 46px;
    align-items: start;
}

.contact-copy {
    position: sticky;
    top: 115px;
}

.contact-copy code {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 8px;
    background: #eef1f7;
    color: var(--dark);
    font-size: 15px;
}

.contact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.contact-badges span {
    padding: 9px 12px;
    border-radius: 99px;
    background: #f2f4f8;
    color: var(--dark-2);
    font-size: 14px;
    font-weight: 600;
}

.contact-form {
    position: relative;
    padding: 38px;
    border-radius: 34px;
    background: var(--dark);
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(8,11,18,.24);
}

.contact-form::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    right: -120px;
    top: -120px;
    border-radius: 50%;
    /* background: rgba(228,161,27,.28); */
}

.form-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-grid label {
    display: grid;
    gap: 8px;
}

.form-grid span {
    color: rgba(255,255,255,.72);
    font-size: 15px;
    font-weight: 600;
}

.form-grid input,
.form-grid textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.14);
    outline: none;
    border-radius: 8px;
    background: rgb(255 255 255);
    color: #000;
    min-height: 56px;
    padding: 15px 16px;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.form-grid textarea {
    resize: vertical;
    min-height: 170px;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
    color: rgb(0 0 0 / 47%);
}

.form-grid input:focus,
.form-grid textarea:focus {
    border-color: rgb(0 255 40 / 86%);
    
    box-shadow: 0 0 0 4px rgba(228,161,27,.12);
}

.full-field {
    grid-column: 1 / -1;
}

.form-submit {
    position: relative;
    z-index: 2;
    margin-top: 22px;
    background: #fff;
    color: var(--dark);
    box-shadow: none;
    border: 0;
}

.form-message {
    position: relative;
    z-index: 2;
    margin-top: 16px;
    min-height: 22px;
    color: var(--white);
    font-size: 16px;
}

.form-message.success {
    color: #90f3b0;
}

.form-message.error {
    color: #ffb3b3;
}

.form-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    background: rgba(8,11,18,.82);
    backdrop-filter: blur(7px);
    z-index: 5;
    color: var(--white);
}

.contact-form.loading .form-loader {
    display: flex;
}

.form-loader div {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,.18);
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.site-footer {
    background: var(--dark);
    color: var(--white);
    padding-top: 75px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr .8fr 1fr;
    gap: 38px;
}

.footer-brand img {
    margin-bottom: 20px;
}

.footer-brand p,
.site-footer p,
.site-footer a,
.site-footer li {
    color: rgba(255,255,255,.66);
    font-size: 16px;
}

.site-footer h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 18px;
}

.site-footer ul {
    display: grid;
    gap: 10px;
}

.site-footer a {
    transition: color .2s ease;
}

.site-footer a:hover {
    color: #fff;
}

.footer-social {
    display: none;
    gap: 10px;
    margin-top: 22px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: var(--white);
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 55px;
    padding: 20px 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}
.whatsapp-fixed {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 50px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    font-family: Bahnschrift, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.whatsapp-fixed i {
    font-size: 22px;
}

.whatsapp-fixed:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 18px 38px rgba(37, 211, 102, 0.5);
    background: #1ebe5d;
    color: #fff;
}

@media (max-width: 600px) {
    .whatsapp-fixed {
        right: 16px;
        bottom: 16px;
        padding: 13px 16px;
        font-size: 15px;
    }

    .whatsapp-fixed i {
        font-size: 28px;
        /* margin: 0px; */
    }
}

@keyframes whatsappPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.not-found {
    max-width: 700px;
}

@media (max-width: 1060px) {
    .hero-grid,
    .page-hero-grid,
    .split-grid,
    .mission-grid,
    .contact-wrapper,
    .faq-grid {
        grid-template-columns: 1fr;
    }
.hero-grid {display:flex;flex-direction: column;gap: 0;}
    .hero {
        min-height: auto;
    }

    .hero-panel {
        min-height: 470px;
    }

    .product-grid,
    .large-grid,
    .service-grid,
    .stats-grid,
    .timeline,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-copy {
        position: static;
    }
}

@media (max-width: 820px) {
    .container {
        width: min(100% - 30px, 1180px);
    }

    .nav-wrap {
        height: 74px;
    }

    .menu-toggle {
        display: block;
    }
.site-header { background:#000}
    .site-header.scrolled { background:#000}

    .main-nav {
        position: fixed;
        left: 0px;
        right: 0px;
        top: 74px;
        display: grid;
        gap: 0;
        padding: 16px;
        border-radius: 0 0 24px  24px;
        background: #eee;
        box-shadow: var(--shadow);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: transform .22s ease, opacity .22s ease;
    }

    .menu-open .main-nav {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav a {
        padding: 14px 10px;
        font-size: 18px;
    }

    .main-nav > a:not(.nav-cta)::after {
        display: none;
    }

    .nav-cta {
        text-align: center;
        margin-top: 10px;
    }

    .hero,
    .page-hero {
        padding-top: 122px;
    }

    .section {
        padding: 0;
    }

    .strip-grid,
    .product-grid,
    .large-grid,
    .service-grid,
    .stats-grid,
    .timeline,
    .footer-grid,
    .form-grid,
    .values-panel,
    .values-panels {
        grid-template-columns: 1fr;
        display: grid;
        margin: auto;
    }
     .values-panels {
        grid-template-columns: 1fr;
        display: grid;
         gap:0
    }
 .values-panels div {
        grid-template-columns: 1fr;
        display: grid;
        min-height: 0;
        padding: 20px 20px;
    }
    .values-panels strong, span { text-align:center}
    .hero-actions,
    .cta-box {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-panel {
        min-height: 420px;
    }

    .code-window {
        min-height: 390px;
        border-radius: 30px;
    }

    .orbit-card {
        font-size: 14px;
    }

    .card-right {
        right: 8px;
    }

    .section-media,
    .page-visual {
        min-height: 320px;
    }

    .contact-form {
        padding: 26px;
        border-radius: 28px;
        margin-bottom: 20px;
    }

    .full-field {
        grid-column: auto;
    }

    .whatsapp-fixed {
        right: 15px;
        bottom: 15px;
        font-size: 0;
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        display: flex;
        margin: auto;
        align-items: center;
        gap: 0;
    }
}

@media (max-width: 520px) {
    h1 {
        font-size: 39px;
    }

    h2 {
        font-size: 31px;
    }

    p,
    .hero-copy p {
        font-size: 17px;
    }

    .brand img {
        height: 42px;
    }

    .hero-panel {
        min-height: 360px;
    }

    .metric-box strong,
    .metric-box em {
        font-size: 48px;
    }

    .page-visual span {
        font-size: 62px;
    }

    .product-card,
    .service-card,
    .cta-box {
        padding: 26px;
        border-radius: 26px;
    }

    .abstract-card {
        inset: 22px;
    }
}
