/* ============================================================
   MAX MARMOR S.R.L.S. – Main Stylesheet
   Skill: UI/UX Pro Max | Style: Luxury Stone / Dark Elegance
   Palette: Charcoal #1a1a1a · Warm White #f5f0eb · Gold #c9a96e
   Typography: Cormorant Garamond (headings) + Inter (body)
   ============================================================ */

/* ──────────────────────────────────────────────
   1. DESIGN TOKENS
────────────────────────────────────────────── */
:root {
    --clr-bg:         #0d0c0b;
    --clr-surface:    #141210;
    --clr-surface-2:  #1e1b17;
    --clr-border:     rgba(201, 169, 110, 0.18);
    --clr-gold:       #c9a96e;
    --clr-gold-light: #e2c99a;
    --clr-gold-dark:  #9a7a45;
    --clr-white:      #f5f0eb;
    --clr-text:       #c8bfb4;
    --clr-text-muted: #7a7268;
    --clr-overlay:    rgba(13, 12, 11, 0.72);

    --font-heading:   'Cormorant Garamond', Georgia, serif;
    --font-body:      'Inter', -apple-system, sans-serif;

    --radius-sm:      4px;
    --radius-md:      8px;
    --radius-lg:      16px;
    --radius-xl:      24px;

    --shadow-sm:  0 2px 12px rgba(0,0,0,.35);
    --shadow-md:  0 8px 32px rgba(0,0,0,.45);
    --shadow-lg:  0 20px 60px rgba(0,0,0,.55);
    --shadow-gold: 0 0 30px rgba(201,169,110,.12);

    --transition: 0.35s cubic-bezier(.4,0,.2,1);
    --nav-h:       70px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* Selection */
::selection { background: var(--clr-gold); color: var(--clr-bg); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-surface); }
::-webkit-scrollbar-thumb { background: var(--clr-gold-dark); border-radius: 3px; }

/* ──────────────────────────────────────────────
   3. LAYOUT UTILITY
────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--clr-gold);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--clr-white);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--clr-text-muted);
    max-width: 55ch;
    margin-inline: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* ──────────────────────────────────────────────
   4. BUTTONS
────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--clr-gold);
    color: var(--clr-bg);
    border: 1px solid var(--clr-gold);
}
.btn-primary:hover {
    background: var(--clr-gold-light);
    border-color: var(--clr-gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-outline {
    background: transparent;
    color: var(--clr-white);
    border: 1px solid rgba(245,240,235,.3);
}
.btn-outline:hover {
    border-color: var(--clr-gold);
    color: var(--clr-gold);
    transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ──────────────────────────────────────────────
   5. NAVBAR
────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: transparent;
    /* Rimossi i transition diretti di background e shadow da qui per delegarli al ::before */
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: transparent;
    transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.navbar.scrolled::before {
    background: rgba(13, 12, 11, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--clr-border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.nav-logo {
    display: flex;
    align-items: baseline;
    gap: .35rem;
    text-decoration: none;
}
.logo-max {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--clr-gold);
    letter-spacing: .04em;
}
.logo-marmor {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--clr-white);
    letter-spacing: .04em;
}
.logo-srls {
    font-family: var(--font-body);
    font-size: .7rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(245,240,235,.75);
    position: relative;
    transition: color var(--transition);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--clr-gold);
    transition: width var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--clr-gold);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 1.5px;
    background: var(--clr-white);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ──────────────────────────────────────────────
   6. HERO
────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}
.hero.loaded .hero-bg { transform: scale(1); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(13,12,11,0.78) 0%,
        rgba(13,12,11,0.55) 50%,
        rgba(13,12,11,0.82) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    padding-inline: 1.5rem;
    animation: heroFadeIn 1.2s ease-out both;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--clr-gold);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 300;
    color: var(--clr-white);
    line-height: 1.05;
    margin-bottom: 1.5rem;
}
.hero-title em {
    font-style: italic;
    color: var(--clr-gold);
}

.hero-subtitle {
    font-size: clamp(.95rem, 2vw, 1.15rem);
    color: var(--clr-text);
    max-width: 55ch;
    margin-inline: auto;
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 2;
}
.hero-scroll span {
    display: block;
    width: 1px;
    height: 8px;
    background: var(--clr-gold);
    border-radius: 1px;
    animation: scrollPulse 1.8s ease-in-out infinite;
}
.hero-scroll span:nth-child(2) { animation-delay: .2s; }
.hero-scroll span:nth-child(3) { animation-delay: .4s; }
@keyframes scrollPulse {
    0%, 100% { opacity: .2; transform: scaleY(.5); }
    50%       { opacity: 1;  transform: scaleY(1.5); }
}

/* ──────────────────────────────────────────────
   7. CHI SIAMO
────────────────────────────────────────────── */
.chi-siamo {
    padding-block: clamp(5rem, 10vw, 9rem);
    background: var(--clr-surface);
}

.chi-siamo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.chi-siamo-image {
    position: relative;
}
.image-frame {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--clr-border);
}
.image-frame img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.image-frame:hover img { transform: scale(1.04); }

.image-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: var(--clr-gold);
    color: var(--clr-bg);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}
.badge-year { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; line-height: 1; }
.badge-text  { font-size: .6rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

.chi-siamo-content .section-title { text-align: left; }

.text-lead {
    font-size: 1.1rem;
    color: var(--clr-white);
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.text-body {
    font-size: .95rem;
    color: var(--clr-text);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.stats-row {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--clr-border);
    padding-top: 1.75rem;
}

.stat {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}
.stat-icon {
    width: 32px;
    height: 32px;
    color: var(--clr-gold);
    margin-bottom: .75rem;
}
.stat-label-large {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--clr-white);
    line-height: 1.2;
    margin-bottom: .25rem;
}
.stat-desc {
    font-size: .85rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
}

/* ──────────────────────────────────────────────
   8. SERVIZI
────────────────────────────────────────────── */
.servizi {
    padding-block: clamp(5rem, 10vw, 9rem);
    background: var(--clr-bg);
}

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201,169,110,.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201,169,110,.4);
    box-shadow: var(--shadow-md), var(--shadow-gold);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--clr-gold);
    margin-bottom: 1.5rem;
    transition: transform var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.1); }
.service-icon svg { width: 100%; height: 100%; }

.service-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--clr-white);
    margin-bottom: .75rem;
    line-height: 1.25;
}

.service-desc {
    font-size: .9rem;
    color: var(--clr-text);
    line-height: 1.75;
}

/* ──────────────────────────────────────────────
   9. CTA STRIP
────────────────────────────────────────────── */
.cta-strip {
    background: linear-gradient(135deg, #1a1410 0%, #221c12 50%, #1a1410 100%);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
    padding-block: 5rem;
    position: relative;
    overflow: hidden;
}
.cta-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(201,169,110,.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-strip-content {
    text-align: center;
    position: relative;
    z-index: 1;
}
.cta-strip-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--clr-white);
    margin-bottom: 1rem;
}
.cta-strip-content p {
    font-size: 1rem;
    color: var(--clr-text);
    max-width: 50ch;
    margin-inline: auto;
    margin-bottom: 2rem;
}

/* ──────────────────────────────────────────────
   10. CONTATTI
────────────────────────────────────────────── */
.contatti {
    padding-block: clamp(5rem, 10vw, 9rem);
    background: var(--clr-surface);
}

.contatti-grid {
    max-width: 600px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-info { display: contents; }

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--clr-surface-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.contact-card:hover {
    border-color: rgba(201,169,110,.4);
    transform: translateY(-2px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--clr-gold);
    margin-top: 2px;
}
.contact-icon svg { width: 100%; height: 100%; }

.contact-label {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    margin-bottom: .3rem;
}

.contact-value {
    font-size: .95rem;
    color: var(--clr-white);
    line-height: 1.5;
    transition: color var(--transition);
}
a.contact-value:hover { color: var(--clr-gold); }



/* ──────────────────────────────────────────────
   11. FOOTER
────────────────────────────────────────────── */
.footer {
    background: var(--clr-bg);
    border-top: 1px solid var(--clr-border);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--clr-border);
}

.footer-logo {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--clr-white);
    margin-bottom: 1rem;
}
.footer-logo em { color: var(--clr-gold); font-style: normal; }

.footer-brand p {
    font-size: .875rem;
    color: var(--clr-text-muted);
    line-height: 1.75;
    max-width: 30ch;
}

.footer-nav h4,
.footer-legal h4 {
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--clr-gold);
    margin-bottom: 1.25rem;
}

.footer-nav ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.footer-nav a:hover { color: var(--clr-gold); }
.footer-nav li, .footer-legal li {
    font-size: .875rem;
    color: var(--clr-text-muted);
    transition: color var(--transition);
}
.footer-legal a { color: var(--clr-text-muted); transition: color var(--transition); }
.footer-legal a:hover { color: var(--clr-gold); }

.btn-cookie-link {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: .875rem;
    color: var(--clr-text-muted);
    cursor: pointer;
    padding: 0;
    transition: color var(--transition);
    text-align: left;
}
.btn-cookie-link:hover { color: var(--clr-gold); }

.footer-bottom {
    text-align: center;
    padding-block: 1.5rem;
    font-size: .8rem;
    color: var(--clr-text-muted);
}

/* ──────────────────────────────────────────────
   12. AOS (Scroll animations)
────────────────────────────────────────────── */
[data-aos] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .6s ease, transform .6s ease;
    will-change: opacity, transform;
}

/* Active animation: start hidden, then reveal on scroll */
[data-aos].aos-ready {
    opacity: 0;
    transform: translateY(22px);
}
[data-aos].aos-ready.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-aos], [data-aos].aos-ready { opacity: 1; transform: none; transition: none; }
}

/* ──────────────────────────────────────────────
   13. RESPONSIVE – TABLET  ≤ 900px
────────────────────────────────────────────── */
@media (max-width: 900px) {
    .nav-menu {
        position: absolute;
        top: var(--nav-h);
        left: 0; right: 0;
        flex-direction: column;
        align-items: center;
        gap: 0;
        background: rgba(13,12,11,0.97);
        padding: 2rem 1.5rem;
        transform: translateY(-120%);
        transition: transform var(--transition), opacity var(--transition);
        opacity: 0;
        pointer-events: none;
        border-bottom: 1px solid var(--clr-border);
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-menu li { width: 100%; text-align: center; }
    .nav-link {
        display: block;
        padding: 1rem;
        font-size: .9rem;
        border-bottom: 1px solid var(--clr-border);
    }
    .nav-menu li:last-child .nav-link { border-bottom: none; }
    .nav-toggle { display: flex; }

    .chi-siamo-grid   { grid-template-columns: 1fr; gap: 3rem; }
    .servizi-grid     { grid-template-columns: repeat(2, 1fr); }
    .contatti-grid    { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-grid      { grid-template-columns: 1fr 1fr; }
    .footer-brand     { grid-column: 1 / -1; }
    .chi-siamo-image  { max-width: 500px; margin-inline: auto; }
}

/* ──────────────────────────────────────────────
   14. RESPONSIVE – MOBILE  ≤ 600px
────────────────────────────────────────────── */
@media (max-width: 600px) {
    :root { --nav-h: 60px; }

    .hero-scroll { display: none; }

    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 100%; max-width: 300px; justify-content: center; }

    .image-badge { width: 72px; height: 72px; bottom: -1rem; right: -1rem; }
    .badge-year { font-size: 1.1rem; }

    .stats-row { gap: 1.5rem; }
    .stat-value { font-size: 1.8rem; }

    .servizi-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

    .contact-form-wrap { padding: 1.5rem; }

    .image-frame img { height: 280px; }
}

/* ──────────────────────────────────────────────
   15. COOKIE NOTICE PRO OVERRIDES
────────────────────────────────────────────── */
#cookieNoticePro {
    font-family: var(--font-body) !important;
}

/* Hide floating cookie icon */
#cnp-reinit-btn, 
.cnp-reinit-btn {
    display: none !important;
}
