﻿:root {
    --white: #ffffff;
    --black: #050505;
    --black-soft: #111111;
    --text: #2e2e2e;
    --muted: #666666;
    --gold: #b08a2e;
    --gold-light: #d6b45a;
    --gold-soft: #e7ddc8;
    --red: #b3261e;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    overflow-x: hidden;
    background: #ffffff;
}

/* INTRO HOME */
.intro {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

.intro-logo {
    width: clamp(240px, 38vw, 520px);
    max-width: 84%;
    height: auto;
    animation: logoEntrance 1.8s ease forwards;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.84);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.intro.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-shell {
    padding-bottom: 70px;
}

.home-page .page-shell {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.home-page.site-ready .page-shell {
    opacity: 1;
    transform: translateY(0);
}

/* CARD GRANDI */
.top-card,
.section-card,
.footer-card {
    width: min(94%, 1500px);
    margin-left: auto;
    margin-right: auto;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid rgba(176, 138, 46, 0.75);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.14);
}

.top-card {
    margin-top: 30px;
    margin-bottom: 34px;
    background: var(--white);
}

.section-card {
    padding: 88px 7%;
    text-align: center;
    margin-top: 34px;
}

.section-card-white {
    background: #ffffff;
}

.section-card-black {
    background: radial-gradient(circle at top right, rgba(176, 138, 46, 0.26), transparent 34%), radial-gradient(circle at bottom left, rgba(214, 180, 90, 0.12), transparent 30%), linear-gradient(135deg, #050505 0%, #111111 52%, #050505 100%);
    color: white;
}

/* NAVBAR */
.navbar {
    height: 92px;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
    z-index: 1000;
}

.brand img {
    height: 62px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 34px;
}

    .nav-menu a {
        color: var(--black);
        text-decoration: none;
        font-size: 15px;
        font-weight: 800;
        letter-spacing: 0.2px;
        transition: color 0.25s ease;
    }

        .nav-menu a:hover,
        .nav-menu a.active {
            color: var(--gold);
        }

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 31px;
    cursor: pointer;
    color: var(--black);
}

/* HERO HOME */
.hero {
    min-height: calc(100vh - 150px);
    padding: 82px 7% 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #000000;
    color: white;
}

.hero-content {
    max-width: 1180px;
    width: 100%;
}

.eyebrow {
    color: var(--gold-light);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 14px;
    margin: 0 0 30px;
}

/* IMMAGINE SLOGAN HOME */
.hero-slogan-image {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000;
}

    .hero-slogan-image img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 0;
        box-shadow: none;
        background: #000000;
    }

.hero h1 {
    font-size: clamp(40px, 5.5vw, 76px);
    line-height: 1.04;
    margin: 0 0 30px;
    color: white;
    letter-spacing: -1.4px;
}

.hero-text {
    font-size: clamp(18px, 1.8vw, 23px);
    line-height: 1.7;
    color: #e9e9e9;
    max-width: 980px;
    margin: 0 auto;
}

.contract-badge {
    display: inline-block;
    margin-top: 0;
    padding: 12px 22px;
    border-radius: 40px;
    background: rgba(179, 38, 30, 0.13);
    border: 1px solid rgba(179, 38, 30, 0.65);
    color: #ffd8d5;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* 600+ */
.home-stat-clean {
    margin: 46px auto 0;
    text-align: center;
    max-width: 900px;
    position: relative;
}

    .home-stat-clean::before {
        content: "";
        display: block;
        width: 90px;
        height: 2px;
        background: var(--gold);
        margin: 0 auto 30px;
    }

.stat-number-clean {
    display: inline-block;
    color: var(--gold-light);
    font-size: clamp(52px, 7vw, 96px);
    line-height: 0.9;
    font-weight: 950;
    letter-spacing: -4px;
    transform-origin: center;
    transition: transform 0.35s ease, text-shadow 0.35s ease, filter 0.35s ease;
    background: linear-gradient( 180deg, #fff1a8 0%, #d6b45a 34%, #b08a2e 68%, #80601c 100% );
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Safari support for clipping background to text (kept inside @supports to avoid linter warnings) */
@supports (-webkit-background-clip: text) {
    .stat-number-clean {
        -webkit-background-clip: text;
    }
}

    .stat-number-clean.is-animating {
        transform: scale(1.035);
        filter: brightness(1.12);
        text-shadow: 0 0 18px rgba(214, 180, 90, 0.36), 0 0 34px rgba(176, 138, 46, 0.24);
    }

    .stat-number-clean.animation-complete {
        animation: numberElegantGoldPulse 2.8s ease-in-out infinite;
    }

@keyframes numberElegantGoldPulse {
    0% {
        transform: scale(1);
        filter: brightness(1);
        text-shadow: 0 0 6px rgba(214, 180, 90, 0.16), 0 0 0 rgba(176, 138, 46, 0);
    }

    50% {
        transform: scale(1.045);
        filter: brightness(1.18);
        text-shadow: 0 0 18px rgba(214, 180, 90, 0.46), 0 0 34px rgba(176, 138, 46, 0.28), 0 0 50px rgba(255, 230, 150, 0.12);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
        text-shadow: 0 0 6px rgba(214, 180, 90, 0.16), 0 0 0 rgba(176, 138, 46, 0);
    }
}

/* PICCOLO BRILLIO FINALE */
.counter-burst {
    position: absolute;
    left: 50%;
    top: clamp(58px, 7.2vw, 95px);
    width: 1px;
    height: 1px;
    pointer-events: none;
    z-index: 3;
}

    .counter-burst span {
        position: absolute;
        left: 0;
        top: 0;
        width: var(--size);
        height: var(--size);
        border-radius: 50%;
        background: radial-gradient(circle, #fff1a8 0%, #d6b45a 42%, #b08a2e 100%);
        transform: rotate(var(--angle)) translateX(0);
        opacity: 0;
        animation: counterParticle 1.15s ease-out forwards;
        animation-delay: var(--delay);
        box-shadow: 0 0 8px rgba(214, 180, 90, 0.75), 0 0 16px rgba(176, 138, 46, 0.34);
    }

@keyframes counterParticle {
    0% {
        opacity: 0;
        transform: rotate(var(--angle)) translateX(0) scale(0.25);
    }

    18% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(var(--angle)) translateX(var(--distance)) scale(0.1);
    }
}

.stat-text-clean {
    display: block;
    margin-top: 14px;
    color: #ffffff;
    font-size: clamp(21px, 2.6vw, 34px);
    font-weight: 900;
}

.home-stat-clean p {
    margin: 20px auto 0;
    color: #dedede;
    font-size: 16px;
    line-height: 1.6;
    max-width: 760px;
}

/* PULSANTI */
.hero-buttons,
.home-navigation-buttons,
.map-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.home-navigation-buttons {
    margin-top: 46px;
}

.btn {
    display: inline-block;
    padding: 15px 31px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 900;
    transition: 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 16px;
    text-align: center;
}

    .btn.primary {
        background: var(--gold);
        color: white;
    }

        .btn.primary:hover {
            background: #967322;
            transform: translateY(-2px);
        }

    .btn.secondary {
        border: 1px solid var(--gold);
        color: white;
        background: transparent;
    }

        .btn.secondary:hover {
            background: rgba(255, 255, 255, 0.06);
            transform: translateY(-2px);
        }

.section-card-white .btn.secondary,
.footer-card .btn.secondary {
    color: var(--black);
}

    .section-card-white .btn.secondary:hover {
        background: #f8f4eb;
    }

/* TITOLI E CONTENUTO */
.container {
    max-width: 1160px;
    margin: 0 auto;
}

.section-label {
    margin: 0 0 14px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

    .section-label.gold {
        color: var(--gold-light);
    }

.section-card h1,
.section-card h2 {
    font-size: clamp(32px, 4vw, 46px);
    margin: 0 0 28px;
}

.section-card-white h1,
.section-card-white h2 {
    color: var(--black);
}

.section-card-black h1,
.section-card-black h2 {
    color: white;
}

.section-card p {
    max-width: 900px;
    margin: 0 auto 18px;
    font-size: 18px;
    line-height: 1.75;
}

.section-card-white p {
    color: var(--text);
}

.section-card-black p {
    color: #d8d8d8;
}

.content-block {
    max-width: 980px;
    margin: 0 auto;
    text-align: left;
}

    .content-block.center {
        text-align: center;
    }

    .content-block p {
        max-width: none;
    }

/* PAGINE INTERNE */
.inner-page-header {
    padding: 78px 7%;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(176, 138, 46, 0.24), transparent 34%), linear-gradient(135deg, #050505 0%, #111111 55%, #050505 100%);
    color: white;
}

    .inner-page-header h1 {
        font-size: clamp(40px, 5vw, 68px);
        line-height: 1.05;
        margin: 0 0 22px;
        color: white;
    }

    .inner-page-header p {
        max-width: 880px;
        margin: 0 auto;
        color: #e4e4e4;
        font-size: clamp(18px, 2vw, 22px);
        line-height: 1.7;
    }

.back-home {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 900;
}

    .back-home:hover {
        color: #ffffff;
    }

/* CARD SERVIZI */
.cards {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.compact-cards {
    margin-top: 34px;
}

.card {
    border-radius: 24px;
    padding: 34px 28px;
    text-align: left;
}

.dark-card {
    background: #121212;
    border: 1px solid rgba(176, 138, 46, 0.32);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

    .dark-card h3 {
        margin: 0 0 15px;
        color: var(--gold-light);
        font-size: 22px;
    }

    .dark-card p {
        margin: 0;
        color: #d6d6d6;
        font-size: 16px;
        line-height: 1.65;
    }

.feature-card {
    grid-column: 1 / -1;
    text-align: center;
}

/* LISTE */
.sector-list {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

    .sector-list span {
        border: 1px solid var(--gold-soft);
        background: #ffffff;
        border-radius: 40px;
        padding: 13px 21px;
        color: var(--black);
        font-weight: 800;
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
    }

.dark-list span {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-color: rgba(176, 138, 46, 0.55);
    box-shadow: none;
}

/* CONTATTI */
.contact-box {
    margin: 42px auto 0;
    max-width: 850px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

    .contact-box div {
        border: 1px solid rgba(176, 138, 46, 0.45);
        border-radius: 18px;
        padding: 20px 24px;
        background: #121212;
        text-align: left;
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
    }

    .contact-box strong {
        display: block;
        color: var(--gold-light);
        margin-bottom: 7px;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .contact-box a,
    .contact-box span {
        color: white;
        text-decoration: none;
        font-size: 18px;
    }

.privacy-note {
    margin-top: 28px !important;
    font-size: 14px !important;
    color: #bbbbbb !important;
    line-height: 1.6 !important;
}

    .privacy-note a {
        color: var(--gold-light);
        font-weight: 900;
        text-decoration: none;
    }

/* MAPPA */
.map-wrapper {
    margin: 42px auto 0;
    max-width: 950px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(176, 138, 46, 0.75);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    background: #ffffff;
}

    .map-wrapper iframe {
        display: block;
        width: 100%;
        height: 450px;
    }

.map-consent-box {
    min-height: 360px;
    padding: 42px 28px;
    background: #121212;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .map-consent-box h3 {
        color: var(--gold-light);
        margin: 0 0 14px;
        font-size: 26px;
    }

    .map-consent-box p {
        color: #dddddd;
        max-width: 650px;
        margin-bottom: 26px;
    }

/* FOOTER */
.footer-card {
    margin-top: 34px;
    margin-bottom: 0;
    background: #ffffff;
    padding: 0;
}

.footer-inner {
    padding: 34px 7%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .footer-brand strong {
        color: var(--black);
        font-size: 18px;
        letter-spacing: 0.3px;
    }

    .footer-brand span {
        color: #666666;
        font-size: 14px;
    }

.footer-copy {
    color: #555555;
    font-size: 14px;
    line-height: 1.5;
}

.footer-links {
    margin-top: 4px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

    .footer-links a,
    .footer-links button {
        background: #ffffff;
        border: 1px solid rgba(176, 138, 46, 0.65);
        color: var(--gold);
        font-weight: 800;
        cursor: pointer;
        font-family: inherit;
        font-size: 14px;
        padding: 10px 16px;
        border-radius: 30px;
        transition: 0.25s ease;
        text-decoration: none;
    }

        .footer-links a:hover,
        .footer-links button:hover {
            background: #f8f4eb;
            color: #8c6b22;
        }

/* COOKIE */
.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    color: var(--text);
    border: 1px solid rgba(176, 138, 46, 0.75);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    padding: 20px 22px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    z-index: 10000;
}

    .cookie-banner.show {
        display: flex;
    }

.cookie-text strong {
    display: block;
    color: var(--black);
    margin-bottom: 6px;
    font-size: 16px;
}

.cookie-text p {
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
    color: #555555;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    border-radius: 30px;
    padding: 11px 18px;
    font-family: inherit;
    font-weight: 900;
    cursor: pointer;
    border: 1px solid var(--gold);
}

    .cookie-btn.solid {
        background: var(--gold);
        color: white;
    }

    .cookie-btn.outline {
        background: transparent;
        color: var(--black);
    }

/* MOBILE */
@media (max-width: 900px) {

    .top-card,
    .section-card,
    .footer-card {
        width: calc(100% - 24px);
        border-radius: 24px;
    }

    .top-card {
        margin-top: 12px;
        margin-bottom: 24px;
    }

    .section-card {
        margin-top: 24px;
        padding: 70px 24px;
    }

    .navbar {
        height: 78px;
        padding: 0 22px;
    }

    .brand img {
        height: 50px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 78px;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-bottom: 1px solid #eeeeee;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 12px 24px 20px;
        display: none;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
    }

        .nav-menu.active {
            display: flex;
        }

        .nav-menu a {
            width: 100%;
            padding: 15px 0;
            font-size: 16px;
            border-bottom: 1px solid #f1f1f1;
        }

    .hero {
        min-height: auto;
        padding: 74px 18px 76px;
        background: #000000;
    }

    .eyebrow {
        font-size: 12px;
        line-height: 1.6;
        margin-bottom: 24px;
    }

    .hero-slogan-image {
        max-width: 100%;
        margin-bottom: 28px;
        background: #000000;
    }

        .hero-slogan-image img {
            width: 100%;
            border-radius: 0;
            box-shadow: none;
            background: #000000;
        }

    .hero h1 {
        letter-spacing: -0.8px;
    }

    .hero-text {
        font-size: 17px;
        line-height: 1.65;
    }

    .contract-badge {
        font-size: 13px;
        line-height: 1.5;
        border-radius: 22px;
    }

    .stat-number-clean {
        letter-spacing: -2px;
    }

    .counter-burst {
        top: 62px;
    }

    .home-navigation-buttons,
    .hero-buttons,
    .map-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 330px;
    }

    .inner-page-header {
        padding: 70px 24px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card,
    .feature-card {
        text-align: center;
        grid-column: auto;
    }

    .contact-box div {
        text-align: center;
    }

    .map-wrapper {
        border-radius: 18px;
    }

        .map-wrapper iframe {
            height: 300px;
        }

    .map-consent-box {
        min-height: 300px;
        padding: 34px 20px;
    }

    .footer-inner {
        padding: 30px 22px;
    }

    .footer-links {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

        .footer-links a,
        .footer-links button {
            width: 100%;
        }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}

@media (min-width: 901px) and (max-width: 1150px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card {
        grid-column: 1 / -1;
    }
}
