/*
Theme Name: Sicuria
Description: Custom one-page per Sicuria
Author: Antigravity
Version: 2.0
*/

html, body { overflow-x: hidden; 
    scroll-behavior: smooth;
    
    background-color: #121212;
}

/* ==== CUSTOM SCROLLBAR ==== */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #121212;
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
    border: 3px solid #121212;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

section[id] {
    scroll-margin-top: 80px; /* Altezza della navbar fissa */
}

:root {
    --frame-thickness: 18px;
    --frame-radius: 36px;
    --color-primary: #FF8C1A;
    --color-primary-dark: #e0740b;
    --color-text: #2c3e50;
    --color-text-light: #7f8c8d;
    --color-bg: #ffffff;
    --color-gray-light: #f8f9fa;
    --color-gray: #e9ecef;
    --color-white: #ffffff;
    --color-dark: #121212;
    --color-dark-alt: #1a1a1a;

    --font-main: 'Antonio', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --radius: 4px;
    --radius-lg: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --container-pad: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global viewport frame */
.global-frame {
    position: fixed;
    top: var(--frame-thickness);
    left: var(--frame-thickness);
    right: var(--frame-thickness);
    bottom: var(--frame-thickness);
    border-radius: var(--frame-radius);
    box-shadow: 0 0 0 100vmax var(--color-white);
    z-index: 9999;
    pointer-events: none;
}

body {
    font-family: var(--font-main);
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 1.1rem;
}

.bg-pattern-topography {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 304 304' width='304' height='304'%3E%3Cpath fill='%23ff8c1a' fill-opacity='0.04' d='M44.1 224a5 5 0 1 1 0 2H0v-2h44.1zm160 48a5 5 0 1 1 0 2H82v-2h122.1zm57.8-46a5 5 0 1 1 0-2H304v2h-42.1zm0 16a5 5 0 1 1 0-2H304v2h-42.1zm6.2-114a5 5 0 1 1 0 2h-86.2a5 5 0 1 1 0-2h86.2zm-256-48a5 5 0 1 1 0 2H0v-2h12.1zm185.8 34a5 5 0 1 1 0-2h86.2a5 5 0 1 1 0 2h-86.2zM258 12.1a5 5 0 1 1-2 0V0h2v12.1zm-64 208a5 5 0 1 1-2 0v-54.2a5 5 0 1 1 2 0v54.2zm48-198.2V80h62v2h-64V21.9a5 5 0 1 1 2 0zm16 16V64h46v2h-48V37.9a5 5 0 1 1 2 0zm-128 96V208h16v12.1a5 5 0 1 1-2 0V210h-16v-76.1a5 5 0 1 1 2 0zm-5.9-21.9a5 5 0 1 1 0 2H114v48H85.9a5 5 0 1 1 0-2H112v-48h12.1zm-6.2 130a5 5 0 1 1 0-2H176v-74.1a5 5 0 1 1 2 0V242h-60.1zm-16-64a5 5 0 1 1 0-2H114v48h10.1a5 5 0 1 1 0 2H112v-48h-10.1zM66 284.1a5 5 0 1 1-2 0V274H50v30h-2v-32h18v12.1zM236.1 176a5 5 0 1 1 0 2H226v94h48v32h-2v-30h-48v-98h12.1zm25.8-30a5 5 0 1 1 0-2H274v44.1a5 5 0 1 1-2 0V146h-10.1zm-64 96a5 5 0 1 1 0-2H208v-80h16v-14h-42.1a5 5 0 1 1 0-2H226v18h-16v80h-12.1zm86.2-210a5 5 0 1 1 0 2H272V0h2v32h10.1zM98 101.9V146H53.9a5 5 0 1 1 0-2H96v-42.1a5 5 0 1 1 2 0zM53.9 34a5 5 0 1 1 0-2H80V0h2v34H53.9zm60.1 3.9V66H82v64H69.9a5 5 0 1 1 0-2H80V64h32V37.9a5 5 0 1 1 2 0zM101.9 82a5 5 0 1 1 0-2H128V37.9a5 5 0 1 1 2 0V82h-28.1zm16-64a5 5 0 1 1 0-2H146v44.1a5 5 0 1 1-2 0V18h-26.1zm102.2 270a5 5 0 1 1 0 2H98v14h-2v-16h124.1zM242 149.9V160h16v34h-16v62h48v48h-2v-46h-48v-66h16v-30h-16v-12.1a5 5 0 1 1 2 0zM53.9 18a5 5 0 1 1 0-2H64V2H48V0h18v18H53.9zm112 32a5 5 0 1 1 0-2H192V0h50v2h-48v48h-28.1zm-48-48a5 5 0 0 1-9.8-2h2.07a3 3 0 1 0 5.66 0H178v34h-18V21.9a5 5 0 1 1 2 0V32h14V2h-58.1zm0 96a5 5 0 1 1 0-2H137l32-32h39V21.9a5 5 0 1 1 2 0V66h-40.17l-32 32H117.9zm28.1 90.1a5 5 0 1 1-2 0v-76.51L175.59 80H224V21.9a5 5 0 1 1 2 0V82h-49.59L146 112.41v75.69zm16 32a5 5 0 1 1-2 0v-99.51L184.59 96H300.1a5 5 0 0 1 3.9-3.9v2.07a3 3 0 0 0 0 5.66v2.07a5 5 0 0 1-3.9-3.9H185.41L162 121.41v98.69zm-144-64a5 5 0 1 1-2 0v-3.51l48-48V48h32V0h2v50H66v55.41l-48 48v2.69zM50 53.9v43.51l-48 48V208h26.1a5 5 0 1 1 0 2H0v-65.41l48-48V53.9a5 5 0 1 1 2 0zm-16 16V89.41l-34 34v-2.82l32-32V69.9a5 5 0 1 1 2 0zM12.1 32a5 5 0 1 1 0 2H9.41L0 43.41V40.6L8.59 32h3.51zm265.8 18a5 5 0 1 1 0-2h18.69l7.41-7.41v2.82L297.41 50H277.9zm-16 160a5 5 0 1 1 0-2H288v-71.41l16-16v2.82l-14 14V210h-28.1zm-208 32a5 5 0 1 1 0-2H64v-22.59L40.59 194H21.9a5 5 0 1 1 0-2H41.41L66 216.59V242H53.9zm150.2 14a5 5 0 1 1 0 2H96v-56.6L56.6 162H37.9a5 5 0 1 1 0-2h19.5L98 200.6V256h106.1zm-150.2 2a5 5 0 1 1 0-2H80v-46.59L48.59 178H21.9a5 5 0 1 1 0-2H49.41L82 208.59V258H53.9zM34 39.8v1.61L9.41 66H0v-2h8.59L32 40.59V0h2v39.8zM2 300.1a5 5 0 0 1 3.9 3.9H3.83A3 3 0 0 0 0 302.17V256h18v48h-2v-46H2v42.1zM34 241v63h-2v-62H0v-2h34v1zM17 18H0v-2h16V0h2v18h-1zm273-2h14v2h-16V0h2v16zm-32 273v15h-2v-14h-14v14h-2v-16h18v1zM0 92.1A5.02 5.02 0 0 1 6 97a5 5 0 0 1-6 4.9v-2.07a3 3 0 1 0 0-5.66V92.1zM80 272h2v32h-2v-32zm37.9 32h-2.07a3 3 0 0 0-5.66 0h-2.07a5 5 0 0 1 9.8 0zM5.9 0A5.02 5.02 0 0 1 0 5.9V3.83A3 3 0 0 0 3.83 0H5.9zm294.2 0h2.07A3 3 0 0 0 304 3.83V5.9a5 5 0 0 1-3.9-5.9zm3.9 300.1v2.07a3 3 0 0 0-1.83 1.83h-2.07a5 5 0 0 1 3.9-3.9zM97 100a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-48 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 96a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-144a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-96 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm96 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-32 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM49 36a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-32 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM33 68a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 240a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm80-176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm112 176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 180a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 84a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 300px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.container-large {
    max-width: 1500px;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--color-white) !important;
}

.mt-2 {
    margin-top: 2rem;
}

.logo-fixed-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
    display: flex;
}

.logo-inner-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-pad);
    position: relative;
    height: 100%;
}

.floating-logo {
    position: absolute;
    top: 34vh;
    left: 50%;
    transform: translate(-50%, calc(-50% + var(--logo-scroll-offset, 0px)));
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.floating-logo.scroll-tracking {
    transition: none;
}

.floating-logo .logo-hero {
    height: 258px;
    width: auto;
    display: block;
}

body.scrolled .floating-logo {
    top: 34vh; /* Manteniamo fisso per evitare il ricalcolo del layout */
    left: 50%;
    transform: translate(-50%, calc(-50% - 44vh)) scale(0.8); /* Equivalente a top -10vh ma 100% accelerato dalla GPU */
    opacity: 0;
    pointer-events: none;
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    background-color: transparent;
    pointer-events: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
    padding-top: var(--frame-thickness);
    pointer-events: auto;
    /* padding inherited from .container via --container-pad */
}

.nav-logo-reveal {
    position: absolute;
    left: 0;
    top: var(--frame-thickness);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.scrolled .nav-logo-reveal {
    top: 0;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.4s ease 0.1s, top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-crop {
    width: 52px;
    height: 52px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-crop img {
    height: 52px;
    width: auto;
    max-width: none;
}

.nav-capsule {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background-color: var(--color-white);
    height: calc(60px + var(--frame-thickness));
    padding: var(--frame-thickness) 2.5rem 0 2.5rem;
    display: flex;
    align-items: center;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    /* Su Safari separare le transizioni aiuta a ridurre il jitter layout/compositing */
    transition: padding-left 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.4s ease,
                box-shadow 0.4s ease;
    will-change: transform, padding-left;
    z-index: 1001;
    pointer-events: auto;
}

.nav-capsule::before,
.nav-capsule::after {
    content: '';
    position: absolute;
    top: calc(var(--frame-thickness) - 1px);
    width: 25px;
    height: 25px;
    background: transparent;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s, opacity 0.4s ease 0.3s;
    pointer-events: none;
    z-index: -1;
}

.nav-capsule::before {
    left: -24px;
    background: radial-gradient(circle at bottom left, transparent 24px, var(--color-white) 24.5px);
    transform-origin: top right;
}

.nav-capsule::after {
    right: -24px;
    background: radial-gradient(circle at bottom right, transparent 24px, var(--color-white) 24.5px);
    transform-origin: top left;
}

body.scrolled .nav-capsule {
    top: calc(var(--frame-thickness) + 10px);
    height: 60px;
    padding-top: 0;
    padding-left: calc(2.5rem + 60px);
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

body.scrolled .nav-capsule::before,
body.scrolled .nav-capsule::after {
    transform: scale(0);
    opacity: 0;
    transition: transform 0.2s ease 0s, opacity 0.2s ease 0s;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    list-style: none;
    padding: 0;
}

.nav-links li a {
    font-weight: 700;
    color: var(--color-dark-alt);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    line-height: 1;
    transition: color 0.3s ease;
    position: relative;
    padding-top: 6px;
    padding-bottom: 6px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-links li a:hover {
    color: var(--color-primary);
}

.nav-links li a:hover::after {
    transform: scaleX(1);
}

.nav-links li a.active {
    color: var(--color-primary);
}

.nav-links li a.active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    margin-left: auto;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.scrolled .header-actions {
    transform: translateY(9px);
}

.btn-supremo {
    background-color: transparent;
    color: var(--color-dark-alt);
    border-color: var(--color-dark-alt);
    gap: 0.5rem;
}

body.scrolled .btn-supremo {
    background-color: var(--color-white);
    border-color: var(--color-white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.btn-supremo:hover,
body.scrolled .btn-supremo:hover {
    background-color: var(--color-dark-alt);
    border-color: var(--color-dark-alt);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-supremo .supremo-icon {
    display: flex;
    align-items: center;
}

.btn-supremo .supremo-icon i {
    width: 18px;
    height: 18px;
    color: #00B2FF;
    stroke-width: 2.5;
}

.btn-area-riservata {
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    letter-spacing: 1px;
    line-height: 1;
}

.btn-small {
    padding: 0 1.5rem;
    font-size: 0.9rem;
    height: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, #FFAA00 0%, #FF8C1A 50%, #E62222 100%);
    background-origin: border-box;
    color: #FFFFFF !important;
    border-color: transparent;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FF8C1A 0%, #E62222 50%, #B81414 100%);
    background-origin: border-box;
    color: #FFFFFF !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 34, 34, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--color-dark-alt);
    border-color: var(--color-dark-alt);
}

.btn-outline-dark:hover {
    background-color: var(--color-dark-alt);
    color: var(--color-white);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 80px;
    /* Space for the fixed header */
    padding-bottom: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: inset 0 15px 40px -10px rgba(0, 0, 0, 0.5), inset 0 -15px 40px -10px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Background Containers */
.hero-video-wrapper,
.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay,
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

.hero-main-stripe {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.logo-placeholder {
    height: 258px;
    margin-bottom: -40px;
    width: 1px;
}


.hero-tagline {
    color: var(--color-dark-alt);
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 700px;
    text-align: center;
}

.hero-actions {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0;
    justify-content: center;
}

/* Scroll Indicator (Mouse Style) */
.scroll-mouse-indicator {
    position: absolute;
    bottom: calc(var(--frame-thickness) + 30px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
    opacity: 0.85;
}

.scroll-mouse-indicator .mouse-pill {
    width: 28px;
    height: 46px;
    border: 2px solid var(--color-white);
    border-radius: 20px;
    position: relative;
    display: flex;
    justify-content: center;
}

.scroll-mouse-indicator .mouse-dot {
    width: 4px;
    height: 10px;
    background-color: var(--color-primary);
    border-radius: 2px;
    margin-top: 6px;
    animation: scrollMouse 1.8s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

.scroll-mouse-indicator .scroll-text {
    font-size: 0.8rem;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--color-white);
}

@keyframes scrollMouse {
    0% { transform: translateY(0); opacity: 1; }
    50% { opacity: 1; }
    100% { transform: translateY(18px); opacity: 0; }
}

.scroll-mouse-indicator .phone-pill {
    width: 30px;
    height: 52px;
    border: 2px solid var(--color-white);
    border-radius: 6px;
    position: relative;
    display: flex;
    justify-content: center;
}

.scroll-mouse-indicator .phone-pill::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 1px;
}

.scroll-mouse-indicator .phone-dot {
    width: 4px;
    height: 10px;
    background-color: var(--color-primary);
    border-radius: 2px;
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    margin: 0 auto;
    animation: scrollPhone 1.8s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

@keyframes scrollPhone {
    0% { transform: translateY(0); opacity: 1; }
    50% { opacity: 1; }
    100% { transform: translateY(-18px); opacity: 0; }
}

/* Sections General */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Chi Siamo */
.chi-siamo-section {
    background-color: var(--color-bg);
    padding: 7rem 0;
}

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

.chi-siamo-media {
    position: relative;
}

.media-placeholder {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.media-placeholder img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 2rem;
    border-radius: 50%;
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 20px rgba(255, 140, 26, 0.4);
    border: 5px solid var(--color-bg);
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 5px;
    letter-spacing: 1px;
}

.chi-siamo-text h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.chi-siamo-text p {
    font-size: 1.15rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.chi-siamo-text p:last-child {
    margin-bottom: 3rem;
}

.chi-siamo-text p.lead {
    font-size: 1.4rem;
    color: var(--color-dark);
    font-weight: 600;
    margin-bottom: 2rem;
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5rem;
    line-height: 1.5;
}

.chi-siamo-text p strong {
    color: var(--color-dark);
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 1px solid var(--color-gray);
    padding-top: 2rem;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 0;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: 1px;
}

/* Parallax Transition Between Chi Siamo and Servizi */
.parallax-transition {
    background-image: url('../assets/images/transizione.webp');
    height: 650px;
    background-attachment: fixed;
    background-position: center 40%;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    position: relative;
    box-shadow: inset 0 20px 40px rgba(0, 0, 0, 0.15), inset 0 -20px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-transition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    pointer-events: none;
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 3rem 2rem;
    text-align: center;
}

.parallax-title {
    color: var(--color-white);
    font-size: 2.2rem;
    font-family: var(--font-main);
    text-transform: uppercase;
    margin-bottom: 3rem;
    font-weight: 700;
    max-width: 950px;
    line-height: 1.3;
}

.parallax-title span {
    color: var(--color-primary);
}

.parallax-cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6rem;
    width: 100%;
}

.parallax-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.parallax-card img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--color-white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.parallax-card:hover img {
    transform: scale(1.05);
}

.parallax-card .btn {
    margin-top: -26px;
    position: relative;
    z-index: 10;
    pointer-events: none;
    cursor: default;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.3);
    padding: 0.95rem 2.6rem;
    font-size: 1.15rem;
}

/* Parallax Responsiveness */
@media (max-width: 768px) {
    .parallax-transition {
        height: auto;
        padding: var(--spacing-lg) 0;
    }
    .parallax-cards-container {
        flex-direction: column;
        gap: 3.5rem;
    }
    .parallax-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    .parallax-card img {
        width: 150px;
        height: 150px;
    }
}

/* Servizi */
.servizi-section {
    background-color: var(--color-gray-light);
}

.carousel-nav-tabs {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2rem;
    margin: 2rem auto 3rem auto;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    max-width: 100%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0 1rem;
}

@media (min-width: 1200px) {
    .carousel-nav-tabs {
        justify-content: center;
        padding: 0;
        margin-top: 3.5rem;
    }
}

.carousel-nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 0.5rem 1rem 0.5rem;
    font-family: 'Antonio', sans-serif;
    font-size: 1.2rem;
    color: var(--color-text-light);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    white-space: nowrap;
    margin-bottom: -1px; /* Overlap the container border */
}

.nav-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-tab-btn:hover {
    color: var(--color-dark);
}

.nav-tab-btn.active {
    color: var(--color-primary);
    text-shadow: 0 0 1px var(--color-primary);
}

.nav-tab-btn.active::after {
    transform: scaleX(1);
}

.carousel-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}

.services-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
    margin-top: 4rem;
    width: 100%;
}

.services-carousel {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    display: flex;
    justify-content: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.service-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-dark);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
    display: flex;
    flex-direction: column;
    transform: translateX(100%) scale(0.85) translateZ(0);
    opacity: 0;
    z-index: 0;
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius-lg);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.service-card[data-pos="0"] {
    transform: translateX(0) scale(1) translateZ(0);
    opacity: 1;
    z-index: 3;
}

.service-card[data-pos="1"] {
    transform: translateX(20%) scale(0.9) translateZ(0);
    opacity: 0.4;
    z-index: 2;
    pointer-events: none;
}

.service-card[data-pos="-1"] {
    transform: translateX(-20%) scale(0.9) translateZ(0);
    opacity: 0.4;
    z-index: 2;
    pointer-events: none;
}

.service-card[data-pos="hidden"] {
    transform: translateX(0) scale(0.7) translateZ(0);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.service-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}

.service-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.service-top-left {
    align-self: flex-start;
    color: var(--color-white);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.service-top-left .service-icon {
    width: 56px;
    height: 56px;
    color: var(--color-primary);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.service-top-left h3 {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    color: var(--color-white);
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.service-bottom-right {
    align-self: flex-end;
    text-align: right;
    max-width: 600px;
    color: var(--color-white);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.service-bottom-right p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.5);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: left;
}

.service-brands-horizontal {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    max-width: 100%;
    width: 100%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    user-select: none;
}

.service-brands-horizontal::-webkit-scrollbar {
    display: none;
}

.service-brands-horizontal .brand-item {
    flex: 0 0 auto;
    width: 140px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
}

.service-brands-horizontal .brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel-btn {
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    color: var(--color-dark);
    transition: var(--transition);
    z-index: 5;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: scale(1.1);
}

/* Nuovi Servizi (3 schede) */
.nuovi-servizi-section {
    background-color: var(--color-bg);
    position: relative;
}

.nuovi-servizi-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    margin-top: 3rem;
    margin-left: -1rem;
    margin-right: -1rem;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    filter: blur(0px);
}

.nuovi-servizi-grid.is-loading {
    opacity: 0;
    transform: scale(0.97);
    filter: blur(5px);
    pointer-events: none;
}

/* Alta specificità necessaria: override delle transizioni individuali
   impostate su ciascun elemento durante il caricamento filtri JS */
.nuovi-servizi-grid.no-transition .servizio-card,
.nuovi-servizi-grid.no-transition .servizio-card img,
.nuovi-servizi-grid.no-transition .servizio-card-content,
.nuovi-servizi-grid.no-transition .servizio-card-form-wrapper {
    transition: none !important;
}

.servizi-loader-container {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.servizi-loader-container.is-active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.servizi-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-gray-light);
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.servizio-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    position: relative;
    min-width: 0;
    height: 580px;
    flex: none;
    width: calc(33.333% - 2rem);
    margin: 0 1rem;
}

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

.servizio-card:not(.is-expanded):hover img {
    transform: scale(1.05);
}

.servizio-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 0px solid var(--color-primary);
    border-right: 0px solid var(--color-primary);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.servizio-card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    opacity: 1;
    visibility: visible;
    transition: all 0.4s ease;
    z-index: 2;
}

.servizio-card-content h3 {
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.servizio-card-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 0;
    min-height: 3.3rem;
}

.overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
    outline: none;
}



/* Contatti e Dove Siamo - Bento Grid */
.contatti-bento-section {
    padding: var(--spacing-xl) 0 4rem 0;
    position: relative;
    z-index: 10;
}

.contatti-bento-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    align-items: stretch;
}

.bento-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background-color: #1E1E1E;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bento-info {
    grid-column: 1;
    grid-row: 1 / span 2;
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.bento-dept {
    display: block;
    height: 100%;
    min-height: 250px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bento-dept img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-dept:hover img {
    transform: scale(1.05);
}

.bento-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.bento-dept:hover .bento-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(241, 90, 36, 0.2) 100%);
}

.bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 2;
    color: var(--color-white);
}

.bento-content h3 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.bento-dept:hover .bento-content h3 {
    color: var(--color-primary);
}

.bento-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.95rem;
}

.bento-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full, 30px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.bento-action-btn i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.bento-dept:hover .bento-action-btn {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(241, 90, 36, 0.3);
}

.bento-dept:hover .bento-action-btn i {
    transform: translateX(3px) scale(1.1);
}

.bento-map {
    grid-column: 2 / span 2;
    grid-row: 2;
    min-height: 350px;
    padding: 0;
}

.custom-static-map {
    position: relative;
    overflow: hidden;
    padding: 0;
}

/* Stili per mappa Leaflet e Marker */
.leaflet-container {
    background-color: #f8f9fa;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.leaflet-sicuria-marker {
    background: transparent;
    border: none;
}

.pulse-marker {
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 0 0 rgba(241, 90, 36, 0.7);
    animation: pulse-orange 2s infinite;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pulse-marker:hover {
    transform: scale(1.15);
}

.pulse-marker i {
    width: 24px;
    height: 24px;
}

@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(241, 90, 36, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(241, 90, 36, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(241, 90, 36, 0);
    }
}

.map-info-box {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 5;
    border: 1px solid rgba(0,0,0,0.05);
    max-width: calc(100% - 3rem);
}

.map-box-title {
    color: var(--color-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 800;
}

.map-box-address {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full, 30px);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(241, 90, 36, 0.2);
}

.btn-directions:hover {
    background-color: #d1491a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(241, 90, 36, 0.4);
}
.btn-directions i {
    width: 16px;
    height: 16px;
}

@media (max-width: 991px) {
    .bento-map {
        min-height: 400px;
    }
    .map-info-box {
        top: auto;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 2rem);
        max-width: 450px;
        padding: 0.8rem 1rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
    .map-box-title {
        display: none;
    }
    .map-box-address {
        margin-bottom: 0;
        font-size: 0.85rem;
        line-height: 1.2;
    }
    .btn-directions {
        padding: 0.6rem;
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(241, 90, 36, 0.3);
    }
    .btn-directions .btn-text {
        display: none;
    }
    .btn-directions i {
        margin: 0;
        width: 18px;
        height: 18px;
    }
    /* Nascondi controlli zoom mappa su mobile */
    .leaflet-control-zoom {
        display: none !important;
    }
}

.contact-card-title {
    color: var(--color-white);
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.contact-info-item i {
    color: var(--color-primary);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 5px;
}

.contact-info-item strong {
    display: block;
    color: var(--color-primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.3rem;
}

.contact-info-item p {
    color: var(--color-white);
    margin: 0;
    line-height: 1.5;
    font-size: 1.1rem;
}

/* Footer Styling */
/* Sticky Reveal Footer Setup */
@media (min-width: 993px) {
    main {
        position: relative;
        z-index: 2;
        background-color: var(--color-bg);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
        margin-bottom: var(--footer-height, 0);
    }
    .site-footer {
        background-color: var(--color-dark-alt);
        padding: 6rem 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1;
    }
}
@media (max-width: 992px) {
    .site-footer {
        background-color: var(--color-dark-alt);
        padding: 5rem 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-links-col,
.footer-legal-col {
    justify-self: end;
}

@media (max-width: 992px) {
    .footer-links-col,
    .footer-legal-col {
        justify-self: start;
    }
}

.footer-col h3 {
    color: var(--color-white);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.brand-col .footer-logo {
    max-width: 200px;
    margin-bottom: 2rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-piva {
    font-size: 0.85em;
    opacity: 0.7;
    margin-left: 10px;
    display: inline-block;
}

@media (max-width: 768px) {
    .footer-piva {
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--color-white);
    transition: var(--transition);
}

.social-btn:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
    color: var(--color-white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.footer-contact-info i {
    color: var(--color-primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0 calc(1.5rem + var(--frame-thickness));
    background-color: var(--color-dark);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-inner p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    margin: 0;
}

.developed-by {
    color: rgba(255, 255, 255, 0.3) !important;
}

.desktop-hide {
    display: none !important;
}

/* Responsive */
@media (max-width: 992px) {
    .mobile-hide { display: none !important; }
    .desktop-hide { display: block !important; }

    .logo-fixed-wrapper { display: none !important; }

    .site-header {
        background-color: var(--color-white);
        box-shadow: var(--shadow);
        pointer-events: auto;
    }

    .header-inner {
        display: flex;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0 !important;
        padding-top: 0;
    }

    .mobile-menu-btn {
        background: none;
        border: none;
        color: var(--color-dark-alt);
        cursor: pointer;
        padding: 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    .mobile-menu-btn i { width: 32px; height: 32px; }

    .mobile-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        height: 55px;
        display: flex !important;
        align-items: center;
    }
    .mobile-logo img {
        height: 100%;
        width: auto;
    }

    .mobile-hero-logo {
        height: 126px;
        width: auto;
        margin-bottom: 2rem;
        margin-top: -12vh;
        display: block !important;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .btn-area-riservata {
        margin: 0;
        padding: 0;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
    .btn-area-riservata i {
        width: 20px;
        height: 20px;
    }
    body.scrolled .header-actions {
        transform: none;
    }

    .mobile-drawer {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        max-width: 80%;
        height: 100vh;
        background-color: var(--color-white);
        z-index: 1002;
        transition: left 0.3s ease;
        padding: 4rem 2rem 2rem;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        display: block;
    }
    .mobile-drawer.is-open { left: 0; }
    
    .mobile-drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    .mobile-drawer-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }
    
    .close-drawer-btn {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: none;
        border: none;
        color: var(--color-dark-alt);
        cursor: pointer;
    }
    .close-drawer-btn i { width: 32px; height: 32px; }
    
    .mobile-nav-links {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    .mobile-nav-links li a {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--color-dark-alt);
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    .mobile-nav-links li a.active {
        color: var(--color-primary);
    }

    .mobile-drawer-divider {
        height: 1px;
        background-color: var(--color-gray);
        margin: 2.5rem 0;
    }

    .mobile-drawer-btn {
        width: 100%;
        justify-content: center;
        padding: 1.1rem;
    }

    .chi-siamo-inner {
        grid-template-columns: 1fr;
    }
    
    .contatti-bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-info {
        grid-column: 1;
        grid-row: auto;
    }

    .bento-map {
        grid-column: 1;
        grid-row: auto;
        min-height: 400px;
    }

    .services-carousel-wrapper {
        position: relative;
        gap: 0;
    }

    .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 45px;
        height: 45px;
    }

    .carousel-btn.prev-btn {
        left: -10px;
    }

    .carousel-btn.next-btn {
        right: -10px;
    }

    .carousel-btn:hover,
    .carousel-btn:active {
        background: var(--color-white);
        color: var(--color-dark);
        border-color: var(--color-gray);
        transform: translateY(-50%);
    }

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

    .footer-bottom-inner {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .chi-siamo-section {
        padding: var(--spacing-lg) 0;
    }

    .chi-siamo-inner {
        gap: 2rem;
    }

    .chi-siamo-text h2 {
        margin-bottom: 1.5rem;
    }

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

    .service-top-left {
        gap: 0.5rem;
    }

    .service-top-left h3 {
        font-size: 1.35rem;
        word-break: break-word;
    }

    .service-top-left .service-icon {
        width: 30px;
        height: 30px;
    }

    .service-content {
        padding: 1.2rem;
    }

    .service-bottom-right {
        width: 100%;
        max-width: 100%;
    }

    .service-bottom-right p {
        font-size: 0.95rem;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .form-actions .close-form-btn {
        flex: 1;
        padding: 1.1rem 0.5rem;
    }

    .form-actions .btn-primary {
        flex: 4;
    }

    .nuovi-servizi-grid {
        flex-direction: column;
    }

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


}

/* Espansione Schede Servizi */
.nuovi-servizi-grid {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.servizio-card.is-hidden {
    width: 0 !important;
    opacity: 0;
    pointer-events: none;
    box-shadow: none;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.servizio-card.is-expanded {
    width: 1150px;
    max-width: 100%;
    height: 580px;
    margin: 0 1rem;
    cursor: default;
    transform: none;
}

.servizio-card.is-expanded:hover {
    transform: none;
    box-shadow: var(--shadow); /* Keep standard shadow or slightly elevated */
}

.servizio-card.is-expanded img {
    width: 450px;
    height: 580px;
    border-bottom: 0px solid var(--color-primary);
    border-right: 4px solid var(--color-primary);
}

.servizio-card.is-expanded .servizio-card-content {
    opacity: 0;
    visibility: hidden;
}

.servizio-card-form-wrapper {
    position: absolute;
    top: 0;
    left: 450px;
    width: calc(100% - 450px);
    height: 580px;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    padding: 2.5rem;
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.servizio-card.is-expanded .servizio-card-form-wrapper {
    opacity: 1;
    visibility: visible;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.form-actions .btn {
    padding: 1.1rem;
    font-size: 1.1rem;
}

.form-actions .close-form-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-actions .btn-primary {
    flex: 2;
}

.form-scroll-area h4 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    color: var(--color-dark);
}

.servizio-form .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.servizio-form .form-group {
    flex: 1;
}

.servizio-form input,
.servizio-form textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: none;
    border-radius: 8px;
    background: #f4f6f8;
    color: var(--color-dark);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.servizio-form input::placeholder,
.servizio-form textarea::placeholder {
    color: #a0aab5;
    font-weight: 400;
}

.servizio-form input:focus,
.servizio-form textarea:focus {
    outline: none;
    background: var(--color-white);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08), 0 0 0 2px var(--color-primary);
    transform: translateY(-2px);
}

.servizio-form textarea {
    resize: none;
    min-height: 80px;
}

.expand-btn {
    align-self: flex-start;
    margin-top: auto !important;
}

@media (max-width: 992px) {
    .servizio-card {
        width: 100%;
        margin: 0 0 2rem 0;
    }
    .nuovi-servizi-grid {
        margin-left: 0;
        margin-right: 0;
        flex-direction: column;
    }
    .servizio-card.is-hidden {
        height: 0 !important;
        margin: 0 !important;
        border: none !important;
    }
    .servizio-card.is-expanded {
        width: 100%;
        max-width: 700px;
        height: auto;
        margin: 0 auto;
    }
    .servizio-card.is-expanded img {
        width: 100%;
        height: 250px;
        border-right: 0px solid var(--color-primary);
        border-bottom: 0px solid var(--color-primary);
    }
    .servizio-card.is-expanded .servizio-card-content {
        height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
    .servizio-card-form-wrapper {
        top: 250px;
        left: 0;
        right: auto;
        width: 100%;
        height: 750px;
        justify-content: flex-start;
        overflow-y: auto;
    }
    .servizio-card.is-expanded .servizio-card-form-wrapper {
        position: relative;
        top: 0;
        height: auto;
        overflow-y: visible;
        padding: 4rem 2rem 2rem;
    }
}

@media (max-width: 576px) {
    .servizio-form .form-row {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    .servizio-card-form-wrapper {
        padding: 2rem 1.5rem;
    }
}

/* Modal Contatti */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
}

.contact-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.contact-modal-content {
    background: var(--color-dark);
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-xl);
    padding: 3rem;
    position: relative;
    margin: auto;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
}

.contact-modal-overlay.active .contact-modal-content {
    transform: translateY(0) scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1.5rem;
}

.modal-subtitle {
    color: var(--color-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-title {
    color: white;
    font-size: 1.8rem;
    font-family: var(--font-main);
    letter-spacing: 1px;
}

.contact-modal-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-modal-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-modal-form label {
    display: block;
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

.contact-modal-form input,
.contact-modal-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-modal-form input:focus,
.contact-modal-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(241, 90, 36, 0.1);
}

.contact-modal-form textarea {
    resize: none;
    min-height: 100px;
}

.modal-submit-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .contact-modal-content {
        padding: 2rem 1.5rem;
    }
    .contact-modal-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .modal-title {
        font-size: 1.5rem;
    }
}

/* ==== WHATSAPP POPUP ==== */
.wa-location-popup {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: calc(100% - 3rem);
    max-width: 400px;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.wa-location-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.wa-location-popup p {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-right: 20px;
    line-height: 1.4;
}
.wa-input-group {
    display: flex;
    gap: 0.5rem;
}
.wa-input-group input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-family: inherit;
}
.wa-input-group input:focus {
    outline: none;
    border-color: var(--color-primary);
}
.btn-wa-send {
    padding: 0 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.close-wa-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}
.close-wa-btn:hover {
    opacity: 1;
}

/* Notification Toast */
.notification-toast {
    position: fixed; 
    top: 20px; 
    right: 20px;
    background: var(--bg-card, #1a1a1f); 
    border-left: 4px solid var(--primary-color, #e43d12);
    padding: 16px 24px; 
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateX(120%); 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    pointer-events: none;
}
.notification-toast.show { transform: translateX(0); }
.notification-toast.error { border-left-color: #ef4444; }
.notification-toast.error #toast-icon { color: #ef4444; }
.toast-content { display: flex; align-items: center; gap: 12px; }
#toast-icon { color: var(--primary-color, #e43d12); }
#toast-message { font-weight: 500; font-size: 0.95rem; color: #ffffff; }
.notification-toast.success { border-left-color: #10b981; }
.notification-toast.success #toast-icon { color: #10b981; }

/* Loader Utility */
.spin { animation: spin 1s linear infinite; }


/* ==========================================================================
   13. IUBENDA OVERRIDES (FOOTER & COOKIE BANNER)
   ========================================================================== */

/* Footer Links Reset */
.footer-links li a.iubenda-white {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-family: inherit !important;
    font-size: 0.95rem !important;
    box-shadow: none !important;
    text-decoration: none !important;
    height: auto !important;
    line-height: normal !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}
.footer-links li a.iubenda-white:hover {
    color: var(--color-primary) !important;
    background: transparent !important;
    transform: translateX(5px);
}

/* Cookie Banner Styling */
#iubenda-cs-banner {
    background-color: var(--color-dark-alt) !important;
    color: var(--color-white) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-family: 'Antonio', sans-serif !important;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.8) !important;
}
#iubenda-cs-banner * {
    font-family: 'Antonio', sans-serif !important;
}
#iubenda-cs-banner .iubenda-cs-content {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.1rem !important;
}
#iubenda-cs-banner .iubenda-cs-opt-group button {
    text-transform: uppercase !important;
    border-radius: var(--radius-full, 30px) !important;
    font-weight: 700 !important;
    padding: 10px 24px !important;
    transition: all 0.3s ease !important;
    border: none !important;
}
#iubenda-cs-banner .iubenda-cs-accept-btn {
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    box-shadow: 0 4px 15px rgba(241, 90, 36, 0.3) !important;
}
#iubenda-cs-banner .iubenda-cs-accept-btn:hover {
    background-color: #d1491a !important;
    transform: translateY(-2px) !important;
}
#iubenda-cs-banner .iubenda-cs-reject-btn,
#iubenda-cs-banner .iubenda-cs-customize-btn {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--color-white) !important;
}
#iubenda-cs-banner .iubenda-cs-reject-btn:hover,
#iubenda-cs-banner .iubenda-cs-customize-btn:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.footer-links li a.iubenda-white img, .footer-links li a.iubenda-white svg, .footer-links li a.iubenda-white .iubenda-logo { display: none !important; }


/* ==========================================================================
   14. CUSTOM COOKIE BANNER
   ========================================================================== */

.cookie-banner-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-dark-alt);
    color: var(--color-white);
    z-index: 99999;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner-overlay.is-visible {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-text h3 {
    color: var(--color-white);
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.cookie-banner-text p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-banner-actions {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
    .cookie-banner-actions {
        display: flex;
        justify-content: stretch;
    }
    .cookie-banner-actions button {
        width: 100%;
    }
}

/* ==========================================
   SEZIONE NEWS E AGGIORNAMENTI (CAROUSEL)
========================================== */
.news-section {
    padding: 5rem 0;
    background-color: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.news-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.news-carousel-wrapper {
    overflow: hidden;
    flex-grow: 1;
    border-radius: var(--radius-lg);
}

.news-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.news-card {
    flex: 0 0 calc(33.333% - 1rem); /* 3 cards on desktop con un po' di gap */
    margin-right: 1.5rem;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Gestione dei margini sull'ultimo elemento */
.news-card:last-child {
    margin-right: 0;
}

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

.news-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
}

.news-banner {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.news-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: 100%;
}

.news-date {
    display: inline-block;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-title {
    color: var(--color-white);
    font-size: 1.4rem;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    height: 2.6em;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bottoni Carousel */
.news-carousel-btn {
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    color: var(--color-dark);
    transition: var(--transition);
    z-index: 5;
    flex-shrink: 0;
}

.news-carousel-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: scale(1.1);
}

.news-carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: var(--color-white);
    color: var(--color-gray);
    border-color: var(--color-gray);
}

/* Dots */
.news-dots-container {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.news-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-gray);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
}

.news-dot.active {
    background-color: var(--color-primary);
    transform: scale(1.3);
}

/* Responsive News */

@media (max-width: 991px) {
    .news-card {
        flex: 0 0 calc(50% - 1rem); /* 2 cards on tablet */
    }
}

@media (max-width: 767px) {
    .news-carousel-container {
        flex-direction: column;
        align-items: flex-start !important;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }
    .news-carousel-wrapper {
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box;
        margin: 0 !important;
        padding: 0 !important;
    }
    .news-carousel-track {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
    }
    .news-card {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    .news-carousel-btn {
        display: none !important;
    }
    .news-banner {
        height: 300px;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    .news-content {
        padding: 1.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: left !important;
    }
    .news-title {
        font-size: 1.15rem !important;
        word-wrap: break-word !important;
        white-space: normal !important;
        margin: 0 !important;
        text-align: left !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        height: 2.6em !important;
        line-height: 1.3 !important;
    }
}
