/* style.css - EPR srl */

/* --- RESET & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

@import url('https://fonts.cdnfonts.com/css/capture-it');

.font-capture {
    font-family: 'Capture it', sans-serif !important;
    font-weight: normal !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 0.95;
    background: linear-gradient(140deg, #ffffff 35%, #FFF200 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: titleIn 1s .5s cubic-bezier(.16,1,.3,1) both;
}
.font-capture span {
    color: inherit !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(140deg, #FFF200 0%, #FFCC00 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

:root {
    /* Colors inspired by industrial/modern look but avoiding pure black */
    --bg-color: #f4f6f8;
    /* Super light background */
    --dark-bg: #1c2726;
    /* Slate-grey with minimal teal tint */
    --darker-bg: #141e1d;
    /* Deeper slate-grey with teal tint */
    --text-main: #d1d5db;
    /* Main text color */
    --text-light: #ffffff;
    /* Titles, highlights */
    --text-dark: #2a2d34;
    /* For light sections */
    --accent: #FFCC00;
    /* Bright yellow */
    --accent-hover: #e6b800;
    /* Darker Bright yellow */
    --glow-accent: rgba(255, 204, 0, 0.4);

    --font-family: 'Inter', sans-serif;
    --font-display: 'Montserrat', sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    --spacing-sm: 1rem;
    --spacing-md: 2.5rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--darker-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--text-light);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(42, 45, 52, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 80px;
    /* Increased for greater presence */
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease, visibility 0.4s;
    /* Logo: Always visible by default on subpages */
    opacity: 1;
    visibility: visible;
}

body.home header:not(.scrolled) .logo {
    /* Ghost Logo: Hidden initially ONLY on home page */
    opacity: 0;
    visibility: hidden;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    /* Glow effect to ensure visibility on dark background */
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.2));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--text-light);
    font-size: 1.8rem;
    /* Increased brand size */
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.8em;
    letter-spacing: 1px;
}

.logo:hover {
    transform: scale(1.02);
}

/* --- NAVIGATION DROPDOWN --- */
.nav-dropdown-wrap {
    position: relative;
}

.nav-menu-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 6px;
    padding: 0.45rem 0.7rem;
    color: #000;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(255, 204, 0, 0.3);
}

.nav-menu-btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.45);
    transform: translateY(-1px);
}

.nav-menu-btn.open {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.45);
}

.nav-hamburger {
    flex-shrink: 0;
    transition: color 0.25s ease;
}

.nav-arrow {
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.25s ease;
}

.nav-menu-btn.open .nav-arrow {
    transform: rotate(180deg);
}

/* The dropdown panel */
.nav-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    min-width: 220px;
    background: rgba(26, 30, 36, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 204, 0, 0.15);
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top left;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    pointer-events: none;
}

.nav-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.nav-panel a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-panel a::after {
    display: none;
}

.nav-panel a:hover {
    background: rgba(255, 204, 0, 0.08);
    color: var(--accent);
    text-shadow: none;
}

.nav-panel a.nav-panel-active {
    color: var(--accent);
    background: rgba(255, 204, 0, 0.1);
    font-weight: 700;
}

.nav-panel a.nav-panel-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px var(--glow-accent);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: var(--transition);
}

/* MEGA MENU */
.has-dropdown {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;

    /* Abstract dark map pattern */
    background-image:
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 60%),
        url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1.5" fill="rgba(255,255,255,0.03)"/></pattern><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
}

.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu h3 {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-light);
    font-weight: 600;
}

.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.letter-group {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition);
}

.letter-group:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.letter {
    background-color: var(--darker-bg);
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 800;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.countries {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    width: 100%;
}

.countries a {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text-main);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0;
    display: block;
}

.countries a::after {
    display: none;
}

.countries a:hover {
    color: var(--accent);
    background-color: rgba(255, 255, 255, 0.02);
    text-shadow: 0 0 8px var(--glow-accent);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    background: linear-gradient(160deg, rgba(13, 21, 20, 0.95) 0%, rgba(17, 20, 24, 0.6) 50%, rgba(13, 21, 20, 0.95) 100%),
        url('header-bg.png') center/cover no-repeat;
    overflow: hidden;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to bottom, transparent, var(--darker-bg));
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    max-width: 1500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 2;
    animation: fadeInDown 1s ease-out;
}

.hero-main-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    width: 100%;
    margin-bottom: 2rem;
}

.hero-logo {
    height: clamp(250px, 35vw, 480px);
    width: auto;
    opacity: 0.85;
    filter: drop-shadow(0 0 60px rgba(255, 204, 0, 0.35));
    z-index: 1;
    transform: none;
    flex-shrink: 0;
    transition: filter 0.5s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero h1 {
    position: relative;
    z-index: 2;
    font-family: 'Capture It', sans-serif;
    font-size: clamp(3.2rem, 7.5vw, 7.5rem);
    line-height: 0.92;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: left;
    margin: 0;
    background: linear-gradient(140deg, #ffffff 35%, #FFF200 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 992px) {
    .hero-main-layout {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-logo {
        height: clamp(180px, 30vw, 240px);
        transform: none;
        opacity: 0.75;
    }

    .hero h1 {
        text-align: center;
        font-size: clamp(2.8rem, 8vw, 4.5rem);
        letter-spacing: 0;
        margin-left: 0;
    }

    .hero-content {
        align-items: center;
    }

    .hero-dal-1976,
    .hero-subtitle-contacts {
        text-align: center !important;
    }
}

.hero-dal-1976 {
    display: block;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 900;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 12px;
    margin: 0 0 1rem;
    text-align: right;
    text-shadow: 0 0 35px var(--glow-accent);
}

.hero-subtitle-contacts {
    font-size: 1rem;
    color: var(--text-main);
    opacity: 0.7;
    letter-spacing: 2px;
    font-weight: 400;
    margin: 0 0 2rem;
    text-align: right;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: #000000;
    font-weight: 700;
    box-shadow: 0 4px 14px 0 var(--glow-accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--darker-bg);
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- SECTIONS --- */
.section {
    padding: var(--spacing-xl) 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* Page Header (for subpages) */
.page-header {
    padding: 12rem 2rem 6rem;
    text-align: center;
    background-color: var(--dark-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* --- GRID LAYOUTS --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1200px) {
    .grid-3[style*="repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 700px) {
    .grid-3[style*="repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* --- CARDS --- */
.card {
    background-color: var(--dark-bg);
    border-radius: 8px;
    padding: 2.5rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-main);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Img Boxes */
.img-box img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* --- FORMS --- */
.contact-form {
    background-color: var(--dark-bg);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background-color: var(--darker-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* --- FOOTER (Standard Premium) --- */
.site-footer {
    background-color: var(--darker-bg);
    padding: 4rem 5% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 2;
    min-width: 300px;
}

.footer-logo {
    display: block;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-width: 140px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.footer-claim {
    font-size: 0.95rem;
    color: #a1a1aa;
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-display);
    font-weight: 700;
}

.footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-contact-item {
    color: #a1a1aa;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-contact-item a {
    color: var(--accent);
}

.footer-copyright {
    padding: 2rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: #71717a;
    font-size: 0.85rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-brand,
    .footer-section {
        min-width: 100%;
    }
}

/* --- UTILITIES & ANIMATIONS --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* responsive */
@media (max-width: 900px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: flex;
    }
}

/* LANGUAGE SWITCHER */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: var(--transition);
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    min-width: 140px;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin-top: 0;
}

.lang-switcher:hover .lang-menu {
    display: flex;
}

.lang-menu.show {
    display: flex;
}

.lang-menu a {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: var(--transition);
}

.lang-menu a:hover {
    background-color: var(--accent);
    color: #fff;
}

.lang-menu a::after {
    display: none;
}

/* --- MODAL SYSTEM --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(17, 20, 24, 0.9);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #151515;
    width: 100%;
    max-width: 850px;
    max-height: 85vh;
    border: 1px solid rgba(255, 242, 0, 0.3);
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 100px rgba(255, 242, 0, 0.1);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.modal-close:hover {
    color: var(--accent);
}

.modal-header {
    padding: 2rem 2.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: var(--font-display);
    color: var(--accent);
    margin: 0;
}

.modal-body {
    padding: 2rem 2.5rem;
    overflow-y: auto;
    color: var(--text-main);
    line-height: 1.7;
    flex: 1;
    min-height: 0;
}

.modal-body h3 {
    color: var(--accent);
    margin-top: 2rem;
    font-size: 1.2rem;
}

.modal-close-icon {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
}

.modal-close-icon:hover {
    opacity: 1;
    color: var(--accent);
}

.agent-details {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 1.5rem;
    text-align: left;
}

.agent-details p {
    margin-bottom: 0.5rem;
}

.agent-details p:last-child {
    margin-bottom: 0;
}

/* --- BiV SECTION --- */
.biv-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, rgba(17, 20, 24, 1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 204, 0, 0.08);
    padding: 5rem 2rem;
}

.biv-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 0;
}

.biv-acronym {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding-right: 3rem;
    min-width: 140px;
}

.biv-letters {
    font-size: clamp(4rem, 7vw, 6.5rem);
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -4px;
    line-height: 1;
    text-shadow: 0 0 40px rgba(255, 204, 0, 0.4), 0 4px 20px rgba(255, 204, 0, 0.2);
    font-family: var(--font-family);
    user-select: none;
}

.biv-letters em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85em;
}

.biv-divider {
    width: 3px;
    background: linear-gradient(to bottom, transparent 0%, var(--accent) 15%, var(--accent) 85%, transparent 100%);
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.5);
    flex-shrink: 0;
    align-self: stretch;
    min-height: 180px;
}

.biv-content {
    padding-left: 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.biv-tagline {
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.biv-lead {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.biv-text {
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 0.85rem;
    font-size: 0.97rem;
}

.biv-text:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .biv-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .biv-acronym {
        padding-right: 0;
    }

    .biv-divider {
        width: 80px;
        height: 3px;
        min-height: 3px;
        background: linear-gradient(to right, transparent, var(--accent), transparent);
        align-self: center;
    }

    .biv-content {
        padding-left: 0;
    }
}

/* --- SCROLL TO TOP --- */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background: var(--accent);
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease, background 0.2s ease;
    box-shadow: 0 4px 20px rgba(255, 204, 0, 0.35);
}

/* --- CONTACT EXTENSIONS --- */
.contact-interni {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.interni-title {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 204, 0, 0.3);
    padding-bottom: 0.5rem;
}

.interni-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

.interno-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.interno-label {
    font-weight: 600;
    color: var(--text-light);
}

.interno-number {
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-display);
}

@media (min-width: 768px) {
    .interni-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 3rem;
    }
}

.scroll-top-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 28px rgba(255, 204, 0, 0.55);
    transform: translateY(-3px);
}


.map-tint {
    filter: contrast(110%) brightness(70%) sepia(60%) saturate(200%) hue-rotate(10deg);
    /* Gives a subtle warm yellow tint matching --accent, without being too loud */
}


/* --- PRODUCT CARD HOVER TOOLTIP --- */
.grid-2-prod {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .grid-2-prod {
        grid-template-columns: 1fr;
    }
}

.product-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    padding: 4rem 3rem;
    min-height: 580px;
    background: linear-gradient(145deg, #0e1117 0%, #141820 50%, #0a0d10 100%);
    border: 1px solid rgba(255, 204, 0, 0.12);
    border-radius: 4px;
    transition: all 0.4s ease;
    /* Unique retroillumination effect: amber underglow on base state */
    box-shadow:
        0 4px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 0 60px rgba(255, 204, 0, 0.04);
}

.product-card:hover {
    box-shadow:
        0 8px 60px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(255, 204, 0, 0.18),
        0 0 200px rgba(255, 204, 0, 0.06),
        inset 0 0 40px rgba(255, 204, 0, 0.03);
    border-color: rgba(255, 204, 0, 0.5);
    transform: translateY(-4px);
}

.product-card-img {
    width: 100%;
    max-width: 460px;
    height: 280px;
    object-fit: contain;
    margin-bottom: 2.5rem;
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 20px rgba(255, 204, 0, 0.08));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.product-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(2.1rem, 2.5vw, 2.5rem);
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 0;
    text-shadow: 0 0 30px rgba(255, 204, 0, 0.3);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: 100%;
}

.product-card:hover .product-card-img {
    transform: scale(1.08) translateY(-4px);
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 30px rgba(255, 204, 0, 0.2));
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 20, 24, 0.97) 0%, rgba(26, 30, 36, 0.97) 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    border: 1px solid rgba(255, 204, 0, 0.15);
    padding: 2rem;
}

.product-card:hover .product-overlay {
    opacity: 1;
    transform: translateY(0);
}

.product-overlay-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 204, 0, 0.4);
    margin-bottom: 0.5rem;
}

.product-overlay-links {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
}

.product-overlay-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-overlay-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    box-shadow: 0 0 12px var(--glow-accent);
}

.product-overlay-btn:hover::before {
    transform: scaleY(1);
}

.product-overlay-btn .btn-icon {
    font-size: 1.2rem;
    width: 28px;
    flex-shrink: 0;
}

.product-overlay-btn .btn-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-overlay-btn .btn-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.product-overlay-btn .btn-sub {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-overlay-btn:hover .btn-label {
    color: var(--accent);
    text-shadow: 0 0 16px rgba(255, 204, 0, 0.6), 0 0 32px rgba(255, 204, 0, 0.25);
}

.product-overlay-btn:hover {
    border-color: rgba(255, 204, 0, 0.25);
    background: rgba(255, 204, 0, 0.04);
    transform: translateX(4px);
}

/* --- PRIVACY BANNER --- */
.privacy-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 30, 36, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 9999;
    border-bottom: 2px solid var(--accent);
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.privacy-banner.active {
    transform: translateY(0);
}

.privacy-banner p {
    font-size: 0.85rem;
    color: var(--text-main);
    max-width: 800px;
    margin: 0;
}

.btn-group-mini {
    display: flex;
    gap: 10px;
}

.btn-mini {
    padding: 6px 18px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn-mini-info {
    background: transparent;
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-mini-info:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-light);
}

.btn-mini-accent {
    background: var(--accent);
    color: #000;
}

.btn-mini-accent:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

@media (max-width: 768px) {
    .privacy-banner {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 12px;
    }
}

/* --- PAGE HEADERS (Subpages) --- */
.page-header {
    padding: calc(var(--spacing-xl) + 5rem) 5% var(--spacing-lg);
    text-align: left;
    background: linear-gradient(to right, rgba(17, 20, 24, 0.7) 0%, rgba(17, 20, 24, 0.2) 50%, rgba(17, 20, 24, 0.7) 100%),
        url('header-bg.png') center/cover no-repeat;
    background-attachment: fixed;
    border-bottom: 3px solid var(--accent);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
}

.page-header h1 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 900;
    animation: fadeInDown 0.8s ease-out;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.6);
}

.page-header p {
    font-size: 1.3rem;
    color: #fff;
    max-width: 850px;
    opacity: 1;
    font-weight: 600;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6);
}

/* --- GIGANTIC PRODUCTION SHOWCASE --- */
.page-header-innesto-rapido {
    padding: calc(var(--spacing-xl) + 5rem) 5% var(--spacing-lg);
    text-align: left;
    background: linear-gradient(to right, rgba(10, 12, 15, 0.8) 0%, rgba(10, 12, 15, 0.95) 80%),
        url('header-innesto-rapido.jpg') center/cover no-repeat;
    background-attachment: fixed;
    border-bottom: 3px solid var(--accent);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
}

.page-header-innesto-rapido h1 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 900;
    animation: fadeInDown 0.8s ease-out;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.page-header-innesto-rapido p {
    font-size: 1.3rem;
    color: #ddd;
    max-width: 850px;
    font-weight: 600;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

.showcase-seamless {
    background-color: var(--darker-bg);
    padding: 5rem 2rem 2rem;
    display: grid;
    place-items: center;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    position: relative;
}

.showcase-img-wrap {
    grid-area: 1 / 1;
    width: 100%;
    max-width: 1400px;
    /* Gigantic scale per user request */
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.showcase-img-wrap img {
    width: 100%;
    max-width: 1300px;
    /* Extreme presence */
    height: auto;
    opacity: 0.8;
    /* Higher transparency for overlay effect */
    filter: brightness(1.2) contrast(1.1);
}

.showcase-text {
    grid-area: 1 / 1;
    /* Overlay layer */
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4.5rem);
    /* Adjusted for better legibility in overlay */
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 0.95;
    max-width: 1000px;
    text-shadow: 0 0 40px rgba(0, 0, 0, 1), 0 10px 80px rgba(0, 0, 0, 0.9);
    pointer-events: none;
}

.showcase-text span {
    color: var(--accent);
}

/* --- MADE IN ITALY STRIP --- */
.made-in-italy-strip {
    padding: 0 5% 0.5rem;
    background: var(--darker-bg);
    text-align: center;
    position: relative;
    z-index: 10;
    margin-top: -6rem;
    /* Much closer to cardano */
}

.flag-box {
    display: inline-block;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 10;
}

/* New beautiful pure CSS Tricolore icon */
.tricolore-icon {
    display: flex;
    margin: 0 auto;
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.7);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.tricolore-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.tricolore-icon .t-green {
    flex: 1;
    background: #009246;
}

.tricolore-icon .t-white {
    flex: 1;
    background: #ffffff;
}

.tricolore-icon .t-red {
    flex: 1;
    background: #CE2B37;
}

.flag-small {
    width: 110px;
    /* Slightly smaller for viewport fit */
    height: auto;
    border-radius: 3px;
    display: none;
    /* Just hidden in case of old HTML */
}

.mii-text {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 1.2rem;
    color: #fff;
    opacity: 0.9;
    margin-top: 1rem;
}

/* --- REPOSITIONED BUTTONS --- */
.nav-buttons-section {
    padding: 1.5rem 5% 5rem;
    /* Brought closer to flag */
    background: var(--darker-bg);
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-buttons-section .btn {
    padding: 18px 45px;
    font-size: 1.25rem;
    border-radius: 8px;
}

/* --- SALES NETWORK PAGE SPECIALS (YELLOW REINFORCEMENT) --- */
.map-tint {
    /* Soft, elegant yellow as requested */
    filter: sepia(1) saturate(3.5) hue-rotate(-12deg) brightness(1.25) contrast(1.1);
    opacity: 0.45 !important;
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 30%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 30%, transparent 90%);
}

.countries a {
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 2px 0;
}

.countries a:hover {
    color: var(--accent) !important;
    transform: translateX(5px);
}

.letter-group {
    background: rgba(255, 204, 0, 0.05);
    border: 1px solid rgba(255, 204, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.letter-group:hover,
.letter-group.active {
    background: rgba(255, 204, 0, 0.12);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.4);
    /* Intense yellow glow */
}

/* --- CONTACT EXTENSIONS --- */
.contact-interni {
    margin-top: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.interni-title {
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.7rem;
    display: inline-block;
}

.interni-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.interno-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
    transition: var(--transition);
}

.interno-item:hover {
    border-color: var(--accent);
}

.interno-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 1rem;
}

.interno-number {
    font-weight: 900;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .interni-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 4rem;
    }
}


/* --- PRIVACY BANNER TOP --- */
.privacy-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    background: rgba(18, 18, 18, 0.98);
    border-bottom: 2px solid var(--accent);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    backdrop-filter: blur(12px);
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* .privacy-banner.hidden disabled */
.disabled-banner {
    transform: translateY(-120%);
}

.privacy-banner p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
}

.privacy-banner .btn-group-mini {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-mini {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-mini-info {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-mini-accent {
    background: var(--accent);
    color: #000;
    border: 1px solid var(--accent);
}

.btn-mini:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

/* --- COOKIE MODAL --- */

@media (max-width: 768px) {
    .privacy-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}


/* --- PAGE HEADER GIUNTI --- */
.page-header-giunti {
    padding: calc(var(--spacing-xl) + 5rem) 5% var(--spacing-lg);
    text-align: left;
    background: linear-gradient(to right, rgba(255, 190, 0, 0.4) 0%, rgba(10, 12, 15, 0.95) 80%),
        url('header-giunti.jpg') center/cover no-repeat;
    background-attachment: fixed;
    border-bottom: 3px solid var(--accent);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
}

.page-header-giunti h1 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 900;
    animation: fadeInDown 0.8s ease-out;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.page-header-giunti p {
    font-size: 1.3rem;
    color: #ddd;
    max-width: 850px;
    font-weight: 600;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

/* NEW SCROLL TO TOP */
#smartScrollTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    /* Square but slightly soft */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

#smartScrollTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#smartScrollTop:hover {
    background-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* --- ADVANCED UI UPGRADES --- */

/* 1. SottomenÃ¹ Orizzontale per Prodotti */
.horizontal-product-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    background: #0f1216;
    /* matching dark background */
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 90px;
    z-index: 50;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.horizontal-product-nav a {
    color: #bbb;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.horizontal-product-nav a:hover {
    color: #fff;
    border-bottom-color: var(--accent);
}

.horizontal-product-nav a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* 2. Nuova Page Header Allunghe */
.page-header-allunghe {
    padding: calc(var(--spacing-xl) + 5rem) 5% var(--spacing-lg);
    text-align: left;
    background: linear-gradient(to right, rgba(18, 22, 28, 0.5) 0%, rgba(20, 25, 30, 0.95) 80%),
        url('header-allunghe.jpg') center/cover no-repeat;
    background-attachment: fixed;
    border-bottom: 3px solid var(--accent);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
}

.page-header-allunghe h1 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 900;
    animation: fadeInDown 0.8s ease-out;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.page-header-allunghe p {
    font-size: 1.3rem;
    color: #ddd;
    max-width: 850px;
    font-weight: 600;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

/* 3. Typography Upgrades */
.data-table th,
.data-table td {
    font-weight: 600;
    /* Corposo ma non volgare */
    font-size: 1.15rem;
}

.data-table tbody tr {
    transition: background 0.2s ease, transform 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(255, 204, 0, 0.05);
    transform: scale(1.01);
}

.title-impact {
    font-family: var(--font-primary), sans-serif;
    font-weight: 900;
    text-transform: capitalize;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #fff 0%, #bbb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    font-size: clamp(3rem, 5vw, 6rem);
}

/* 4. Carosello Auto Marquee - Reconstructed for Stability */
.marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 3rem 0;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    margin-bottom: 5rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    /* Mask for smooth edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    display: flex;
    gap: 1.6rem;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    white-space: nowrap;
    animation: marquee-scroll 45s linear infinite;
    gap: 1.6rem;
    min-width: 100%;
    justify-content: space-around;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* Image Wrapper for consistency - Removed empty white boxes */
.marquee-item {
    flex: 0 0 auto;
    height: 220px;
    margin: 0;
    background: transparent;
    border-radius: 4px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.marquee-item img {
    height: 100%;
    width: auto;
    max-width: 500px;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

.marquee-item:hover {
    transform: scale(1.06) translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 204, 0, 0.2);
    border-color: var(--accent);
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% - 1.6rem));
    }
}

/* Modifica font modelli base row */
.models-list-item {
    font-weight: 600;
    font-size: 1.1rem;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&display=swap');

.title-impact {
    font-family: 'Playfair Display', serif !important;
    letter-spacing: 2px !important;
}


/* Nuovi stili Nav e Capture It */
.horizontal-product-nav {
    position: sticky;
    top: 90px;
    z-index: 50;
    display: flex;
    justify-content: center;
    gap: 2rem;
    background: #0f1216;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.nav-back-button {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: #000;
    color: var(--accent);
    padding: 0.6rem 1.2rem;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.nav-back-button:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 204, 0, 0.3);
}

.nav-back-button:before {
    content: "";
    color: var(--accent);
}

.nav-back-button:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.nav-back-button:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.title-impact {
    font-family: 'Capture it', sans-serif !important;
    font-weight: normal;
    text-transform: uppercase;
    font-size: 4rem;
    color: #000;
    background-color: var(--accent);
    display: inline-block;
    padding: 1rem 3rem;
    border: 3px solid #fff;
    box-shadow: 6px 6px 0px rgba(255, 255, 255, 0.2), 0 10px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

/* Documentazione Layout */
.doc-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    width: 100%;
    min-height: 80vh;
    background: #000;
}

.doc-sidebar {
    background: #0a0d10;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

.doc-sidebar-title {
    color: #fff;
    font-size: 1.2rem;
    padding: 0 2rem 1rem;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

.doc-link {
    display: block;
    padding: 1rem 2rem;
    color: #bbb;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.doc-link:hover,
.doc-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
    border-left-color: var(--accent);
}

.doc-viewer {
    width: 100%;
    height: 100%;
    min-height: 800px;
    border: none;
    background: #222;
}




/* USER REQUEST: TEXT ONLY BACK BUTTON */
/* TEXT ONLY NAV BACK */
.nav-back-button {
    background: transparent !important;
    border: none !important;
    color: var(--accent) !important;
    padding: 0 2rem 0 0 !important;
    box-shadow: none !important;
    font-size: 1rem !important;
}

.nav-back-button:hover {
    color: #fff !important;
    transform: none !important;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5) !important;
}

/* === LinkedIn Footer Button === */
.footer-linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.04);
}

.footer-linkedin-btn:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 119, 181, 0.35);
}

/* Privacy Banner & Modal Styles */
.privacy-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 12, 16, 0.95);
    color: #fff;
    padding: 15px 20px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--accent);
    transform: translateY(-100%);
    transition: transform 0.5s ease-in-out;
}
.privacy-banner.hidden {
    display: none !important;
}
.privacy-banner.active {
    transform: translateY(0);
}
.privacy-banner p {
    margin: 0;
    font-size: 0.95rem;
}
.btn-group-mini {
    display: flex;
    gap: 10px;
}
.btn-mini {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.3s;
}
.btn-mini-info {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-mini-info:hover {
    background: rgba(255, 204, 0, 0.1);
}
.btn-mini-accent {
    background: var(--accent);
    color: var(--dark-bg);
}
.btn-mini-accent:hover {
    background: #e6b800;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--dark-bg);
    color: var(--text-main);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 8px;
    border: 1px solid var(--accent);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h2 {
    color: var(--accent);
    margin: 0;
    font-size: 1.5rem;
}
.modal-close-icon {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}
.modal-close-icon:hover {
    color: var(--accent);
}
.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #d1d5db;
    flex: 1;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,204,0,0.8) rgba(255,255,255,0.05);
}
.modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-body::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}
.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255,204,0,0.4);
    border-radius: 3px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255,204,0,0.7);
}
.modal-body h3 {
    color: #FFCC00;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.15rem;
}
.modal-body p {
    margin-bottom: 0.8rem;
}
.modal-body strong {
    color: #fff;
}
.modal-body a {
    color: var(--accent);
    text-decoration: underline;
}


/* ============================================================
   === DESIGN UPGRADE LAYER — EPR S.r.l. =====================
   === Micro-animazioni · Depth · Glassmorphism · Polish ======
   ============================================================ */

/* ----- KEYFRAMES ADDIZIONALI ----- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0); }
    50%       { box-shadow: 0 0 0 8px rgba(255, 204, 0, 0.12); }
}

@keyframes borderDraw {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0% 0 0); }
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-6px); }
}

/* ----- STAGGER FADE-UP ----- */
/* Supporta data-delay="0..5" sugli elementi .fade-up */
.fade-up[data-delay="1"] { transition-delay: 0.1s; }
.fade-up[data-delay="2"] { transition-delay: 0.2s; }
.fade-up[data-delay="3"] { transition-delay: 0.3s; }
.fade-up[data-delay="4"] { transition-delay: 0.4s; }
.fade-up[data-delay="5"] { transition-delay: 0.5s; }
.fade-up[data-delay="6"] { transition-delay: 0.6s; }
.fade-up { transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1); }

/* ----- HEADER GLASSMORPHISM UPGRADE ----- */
header.scrolled {
    background: rgba(20, 30, 29, 0.75) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 204, 0, 0.08);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 8px 32px rgba(0, 0, 0, 0.45) !important;
}

/* Logo animazione entrata */
header.scrolled .logo {
    animation: fadeInDown 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Glow sul logo al hover più elegante */
.logo:hover img {
    filter: drop-shadow(0 0 18px rgba(255, 204, 0, 0.45));
    transition: filter 0.35s ease;
}

/* ----- NAVIGAZIONE DROPDOWN — DEPTH ----- */
.nav-menu-btn {
    position: relative;
    overflow: hidden;
}

/* Shimmer sul pulsante nav quando non è aperto */
.nav-menu-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.nav-menu-btn:hover::after {
    opacity: 1;
    animation: shimmer 0.6s ease forwards;
}

/* Nav panel — separatore sottile tra le voci */
.nav-panel a + a {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* ----- BOTTONI — STATI INTERATTIVI AVANZATI ----- */
.btn {
    position: relative;
    overflow: hidden;
    transition: background-color 0.25s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Ripple effect sui bottoni */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.btn:active::after {
    opacity: 1;
    transform: scale(2.5);
    transition: 0s;
}

.btn-primary {
    background: linear-gradient(135deg, #FFCC00 0%, #e8b800 100%);
    box-shadow:
        0 4px 14px rgba(255, 204, 0, 0.32),
        0 1px 0 rgba(255,255,255,0.18) inset;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #FFD740 0%, #FFCC00 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 28px rgba(255, 204, 0, 0.45),
        0 2px 0 rgba(255,255,255,0.2) inset;
}
.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(255, 204, 0, 0.3);
}
.btn-primary:focus-visible {
    outline: 3px solid rgba(255, 204, 0, 0.6);
    outline-offset: 3px;
}

.btn-outline {
    position: relative;
    overflow: hidden;
}
.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 204, 0, 0.15);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}
.btn-outline span, .btn-outline {
    position: relative;
    z-index: 1;
}
.btn-outline:hover::before { transform: scaleX(1); }
.btn-outline:hover { 
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 204, 0, 0.15);
}
.btn-outline:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
}

/* ----- CARDS — LAYERED SHADOWS + GLASSMORPHISM ----- */
.card {
    position: relative;
    background: linear-gradient(145deg, #1e2d2b 0%, #1c2726 100%);
    border: 1px solid rgba(255, 255, 255, 0.055);
    box-shadow:
        0 2px 4px rgba(0,0,0,0.25),
        0 8px 20px rgba(0,0,0,0.18),
        0 0 0 1px rgba(255,255,255,0.025) inset;
    transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1),
                box-shadow 0.4s ease,
                border-color 0.35s ease;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    border-radius: 8px 8px 0 0;
    pointer-events: none;
}
.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 204, 0, 0.22) !important;
    box-shadow:
        0 4px 8px rgba(0,0,0,0.3),
        0 20px 50px rgba(0,0,0,0.28),
        0 0 60px rgba(255, 204, 0, 0.06),
        0 0 0 1px rgba(255,204,0,0.08) inset !important;
}

/* Icona card — float animation al hover */
.card:hover .card-icon {
    animation: subtleFloat 2.5s ease-in-out infinite;
}

/* ----- SECTION TITLE — DECORATORE MIGLIORATO ----- */
.section-title::after {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), rgba(255,204,0,0.3));
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.4);
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-title:hover::after,
.section-title.visible::after {
    width: 80px;
}

/* ----- PRODUCT CARDS — DEPTH RINFORZATO ----- */
.product-card {
    background: linear-gradient(155deg, #0f1318 0%, #141820 45%, #0a0d10 100%);
}
.product-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,204,0,0.08), transparent);
    pointer-events: none;
}
.product-card:hover {
    transform: translateY(-6px) scale(1.005);
}
.product-card:hover .product-card-img {
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.7)) drop-shadow(0 0 40px rgba(255,204,0,0.25));
}

/* ----- CONTACT FORM — STATI FOCUS / ACTIVE ----- */
.form-control {
    background: rgba(20, 30, 29, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.form-control:focus {
    background: rgba(20, 30, 29, 0.9) !important;
    border-color: var(--accent) !important;
    box-shadow:
        0 0 0 3px rgba(255, 204, 0, 0.12),
        0 4px 16px rgba(0,0,0,0.2) !important;
    outline: none;
}
.form-control:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.4);
}
.form-control::placeholder {
    color: rgba(209, 213, 219, 0.35);
    font-style: italic;
}

/* Label micro-animazione su focus */
.form-group:focus-within label {
    color: var(--accent);
    transition: color 0.3s ease;
}

/* Contact form box — glassmorphism */
.contact-form {
    background: rgba(28, 39, 38, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow:
        0 4px 8px rgba(0,0,0,0.25),
        0 24px 64px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.025) inset;
    position: relative;
    overflow: hidden;
}
.contact-form::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
    pointer-events: none;
}

/* ----- BiV SECTION — MICRO-DETTAGLI ----- */
.biv-section {
    position: relative;
    overflow: hidden;
}
.biv-section::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,204,0,0.03) 0%, transparent 70%);
    pointer-events: none;
}

.biv-letters {
    position: relative;
    transition: text-shadow 0.5s ease;
}
.biv-section:hover .biv-letters {
    text-shadow:
        0 0 50px rgba(255, 204, 0, 0.55),
        0 4px 20px rgba(255, 204, 0, 0.3);
}

/* ----- FOOTER — UPGRADE DEPTH ----- */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, var(--darker-bg) 0%, #0f1611 100%);
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 5%; right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,204,0,0.2), transparent);
    pointer-events: none;
}

.footer-link {
    position: relative;
    padding-left: 0;
    display: inline-flex;
    align-items: center;
    gap: 0;
}
.footer-link::before {
    content: '→';
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    color: var(--accent);
    font-size: 0.75em;
    margin-right: 0;
    display: inline-block;
    width: 0;
    overflow: hidden;
    transition: width 0.25s ease, opacity 0.25s ease;
}
.footer-link:hover::before {
    opacity: 1;
    width: 16px;
}
.footer-link:hover {
    color: var(--accent) !important;
    padding-left: 0 !important;
    transform: translateX(3px);
    transition: color 0.25s ease, transform 0.25s ease;
}

/* ----- LANG SWITCHER — GLASSMORPHISM ----- */
.lang-menu {
    background: rgba(20, 30, 29, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 204, 0, 0.1) !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.03) inset !important;
    border-radius: 8px !important;
    overflow: hidden;
    margin-top: 6px !important;
    transform-origin: top right;
    animation: none;
}
.lang-switcher:hover .lang-menu,
.lang-menu.show {
    animation: fadeInDown 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.lang-menu a:hover {
    background: rgba(255, 204, 0, 0.12) !important;
    color: var(--accent) !important;
}

/* ----- MADE IN ITALY — TRICOLORE GLOW ----- */
.tricolore-icon {
    transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.made-in-italy-strip:hover .tricolore-icon {
    box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 25px rgba(206,43,55,0.3), inset 0 2px 4px rgba(255,255,255,0.6);
    transform: scale(1.05);
}

/* ----- STRENGTH CARDS — BORDER GLOW ----- */
.strength-card {
    transition: flex 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s ease,
                box-shadow 0.4s ease !important;
}
.strength-card:hover {
    box-shadow: 0 0 40px rgba(255, 204, 0, 0.15), 0 20px 60px rgba(0,0,0,0.5) !important;
}
.strength-card h3 {
    transition: text-shadow 0.4s ease;
}
.strength-card:hover h3 {
    text-shadow: 0 0 30px rgba(255, 204, 0, 0.5);
}

/* ----- PAGE HEADER — PARALLAX PSEUDO-LAYER ----- */
.page-header {
    transition: none;
}
.page-header h1 {
    position: relative;
}
.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 4rem;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 16px rgba(255,204,0,0.5);
    animation: borderDraw 0.6s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ----- MODAL — UPGRADE DEPTH ----- */
.modal-content {
    box-shadow:
        0 0 0 1px rgba(255,204,0,0.15),
        0 4px 16px rgba(0,0,0,0.4),
        0 32px 80px rgba(0,0,0,0.7) !important;
}

/* ----- SCROLL TOP BUTTON — PULSANTE UPGRADE ----- */
#smartScrollTop {
    border-radius: 10px !important;
    box-shadow:
        0 4px 16px rgba(255,204,0,0.4),
        0 0 0 1px rgba(255,255,255,0.1) inset !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
#smartScrollTop:hover {
    transform: translateY(-5px) scale(1.08) !important;
    box-shadow:
        0 8px 28px rgba(255,204,0,0.55),
        0 0 0 1px rgba(255,255,255,0.15) inset !important;
}

/* ----- PRODUCT OVERLAY BUTTONS — MICRO-DETTAGLIO ----- */
.product-overlay-btn {
    transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.product-overlay-btn:hover {
    transform: translateX(6px) !important;
}

/* ----- HORIZONTAL PRODUCT NAV — INDICATORE UNDERLINE ANIMATO ----- */
.horizontal-product-nav a {
    position: relative;
}
.horizontal-product-nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255,204,0,0.5);
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.horizontal-product-nav a:hover::after,
.horizontal-product-nav a.active::after {
    width: 100%;
}

/* ----- INTERNI ITEMS — LINEA SEPARATOR ANIMATA ----- */
.interno-item {
    transition: border-color 0.3s ease, padding-left 0.3s ease;
}
.interno-item:hover {
    padding-left: 0.5rem;
}

/* ----- FOOTER LINKEDIN BTN — GLOW UPGRADE ----- */
.footer-linkedin-btn {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.footer-linkedin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.45) !important;
}

/* ----- LETTER GROUP (RETE DI VENDITA) — GLOW RINFORZATO ----- */
.letter-group {
    transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), 
                box-shadow 0.35s ease, 
                border-color 0.35s ease, 
                background 0.35s ease !important;
}

/* ----- SECTION — RITMO VERTICALE MIGLIORATO ----- */
.section {
    padding-top: calc(var(--spacing-xl) + 1rem);
    padding-bottom: calc(var(--spacing-xl) + 1rem);
}

/* Separatore decorativo tra sezioni principali */
.biv-section + .section,
.section + .section {
    border-top: none;
    position: relative;
}

/* ----- IMG-BOX — EFFETTO PROFONDITÀ ----- */
.img-box img {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
    box-shadow:
        0 4px 8px rgba(0,0,0,0.25),
        0 20px 50px rgba(0,0,0,0.35);
}
.img-box:hover img {
    transform: scale(1.02) translateY(-4px);
    box-shadow:
        0 8px 16px rgba(0,0,0,0.35),
        0 32px 64px rgba(0,0,0,0.45);
}

/* ----- CTA SECTION — GLASSMORPHISM BOX ----- */
.section[style*="background-color: var(--dark-bg)"] {
    background: linear-gradient(135deg, rgba(28,39,38,0.8) 0%, rgba(20,30,29,0.9) 100%) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.05) !important;
    border-radius: 16px !important;
    box-shadow:
        0 4px 8px rgba(0,0,0,0.2),
        0 24px 60px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.025) inset;
    position: relative;
    overflow: hidden;
}
.section[style*="background-color: var(--dark-bg)"]::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,204,0,0.3), transparent);
    pointer-events: none;
}

/* ----- RESPONSIVE FINE-TUNING ----- */
@media (max-width: 768px) {
    .btn-primary:hover,
    .btn-outline:hover {
        transform: translateY(-2px) scale(1.01);
    }
    .card:hover {
        transform: translateY(-4px);
    }
    .img-box:hover img {
        transform: scale(1.01) translateY(-2px);
    }
}

/* ----- SCROLLBAR PERSONALIZZATA ----- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--darker-bg); }
::-webkit-scrollbar-thumb {
    background: rgba(255, 204, 0, 0.35);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ----- SELEZIONE TESTO ----- */
::selection {
    background: rgba(255, 204, 0, 0.28);
    color: var(--text-light);
}

