/*
================================================================================
CSS - RIZZO LANDSCAPE BUILDING SRL
DESIGN: APPLE STYLE PREMIUM & MINIMAL (INVESTOR-READY V9 - COOKIE MODAL V2)
================================================================================
*/

:root {
    --color-primary: #3C8F3A;
    --color-secondary: #E0873D;
    --color-background: #FFFFF4;
    --color-text: #1C1C1C;
    --color-light-gray: #F7F7F7;
    --color-border-gray: #E0E0E0;
    --color-shadow: rgba(0, 0, 0, 0.08);
    --border-radius-global: 12px;
    --transition-speed: 0.4s;
    --transition-timing: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==============================================================================
    1. RESET E BASE
================================================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Roboto', Arial, sans-serif; font-weight: 300; color: var(--color-text); background-color: var(--color-background); line-height: 1.75; min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; color: var(--color-text); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: 3rem; margin-bottom: 2rem; text-align: center; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
a { text-decoration: none; color: var(--color-primary); transition: color var(--transition-speed); }
a:hover { color: var(--color-secondary); }
.section { padding: 4rem 0; }
.section-highlight { background-color: var(--color-light-gray); }

/* ==============================================================================
    2. ANIMAZIONI E STILI COMUNI
================================================================================ */
.fade-in-section { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--transition-timing), transform 0.8s var(--transition-timing); }
.fade-in-section.visible { opacity: 1; transform: translateY(0); }

.apple-card { background-color: white; box-shadow: 0 4px 15px var(--color-shadow); border: 1px solid var(--color-border-gray); padding: 2rem; transition: all var(--transition-speed) var(--transition-timing); border-radius: var(--border-radius-global); }
.lift-animation:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12); }
.zoom-animation { transition: transform 0.5s var(--transition-timing); }
.work-item:hover .zoom-animation { transform: scale(1.05); }
.text-center { text-align: center; }
.highlight-green { color: var(--color-primary); }
.highlight-orange { color: var(--color-secondary); }

/* ==============================================================================
    3. HEADER & NAVIGATION
================================================================================ */
.apple-nav { position: sticky; top: 0; z-index: 1000; padding: 0.5rem 0; }
.glass-effect { background-color: rgba(255, 255, 244, 0.8); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 35px; width: auto; }
.nav-right-group { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-item { color: var(--color-text); font-weight: 400; padding: 0.5rem 0; position: relative; transition: color var(--transition-speed); }
.nav-item:hover, .nav-item.active-link { color: var(--color-primary); }
.underline-animation::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -2px; left: 0; background-color: var(--color-primary); transition: width var(--transition-speed) var(--transition-timing); }
.underline-animation:hover::after, .nav-item.active-link::after { width: 100%; }
.cta-button { background-color: var(--color-secondary); color: white; padding: 0.6rem 1.2rem; font-weight: 700; text-transform: uppercase; transition: all var(--transition-speed) var(--transition-timing); text-align: center; display: block; white-space: nowrap; border-radius: var(--border-radius-global); border: none; }
.cta-button:hover { background-color: #c77b38; color: white; transform: scale(1.05); box-shadow: 0 6px 12px rgba(0,0,0,0.2); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--color-text); }
.language-selector { position: relative; display: inline-block; }
.lang-toggle { background-color: var(--color-light-gray); color: var(--color-text); border: 1px solid var(--color-border-gray); padding: 0.5rem 0.75rem; cursor: pointer; font-weight: 400; display: flex; align-items: center; gap: 0.5rem; border-radius: var(--border-radius-global); }
.lang-dropdown { display: none; position: absolute; top: 100%; right: 0; background-color: white; min-width: 140px; list-style: none; padding: 0.5rem 0; margin-top: 0.25rem; border: 1px solid var(--color-border-gray); box-shadow: 0 4px 8px var(--color-shadow); z-index: 10; border-radius: var(--border-radius-global); }
.lang-dropdown.active { display: block; }
.lang-dropdown li { padding: 0.5rem 1rem; cursor: pointer; font-weight: 300; }
.lang-dropdown li:hover { background-color: var(--color-light-gray); }
.lang-dropdown li.active { font-weight: 700; color: var(--color-primary); }

/* ==============================================================================
    4. NUOVA HERO SECTION DI IMPATTO (MODIFICATA PER SLIDESHOW)
================================================================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden; 
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    opacity: 0; 
    transform: scale(1.1); 
    transition: opacity 1.5s ease-in-out, transform 8s linear; 
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1); 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInHero 1.5s 0.5s var(--transition-timing) forwards;
    opacity: 0;
    padding: 2rem 0;
}

@keyframes fadeInHero { to { opacity: 1; transform: translateY(0); } }
.hero-content p, .hero-content h1, .hero-content .cta-button {
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s var(--transition-timing) forwards;
}
.hero-content h1 { animation-delay: 0.2s; }
.hero-content .cta-button { animation-delay: 0.4s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

.hero-subheading { font-size: 1.25rem; font-weight: 300; margin-bottom: 1rem; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.hero h1 { 
    font-size: clamp(2.5rem, 6vw, 4.5rem); 
    color: white; 
    margin-bottom: 2.5rem; 
    font-weight: 700; 
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); 
}

.hero h1 .hero-title-thin {
    font-weight: 100;
}

.hero h1 .hero-ampersand {
    font-weight: 100;
    margin: 0 0.5rem;
}

.hero h1 .animated-gradient-text {
    text-shadow: none;
}

.hero .cta-button { padding: 1rem 2rem; font-size: 1.1rem; }
.pulse-animation { animation: pulse 2.5s infinite 1s; }
@keyframes pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(224, 135, 61, 0.7); } 70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(224, 135, 61, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(224, 135, 61, 0); } }


/* ==============================================================================
    5. CHISIAMO E TITOLO ANIMATO
================================================================================ */
.about-us-flex { display: flex; gap: 3rem; align-items: stretch; }
.mission-highlight { flex: 1; min-width: 300px; padding: 2rem; }
.accent-text { font-size: 1.15rem; font-weight: 400; margin-top: 1.5rem; }
#services-showcase { flex: 2; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.service-item { background-color: white; border: 1px solid var(--color-border-gray); padding: 1.5rem; box-shadow: 0 2px 5px var(--color-shadow); border-radius: var(--border-radius-global); }
.service-item h4 { color: var(--color-primary); margin-bottom: 0.5rem; font-weight: 700; }
.service-item p { font-size: 0.95rem; font-weight: 300; }

.animated-gradient-text {
    display: inline-block;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-flow 4s linear infinite;
}

.mission-highlight h3.animated-gradient-text {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
}

@keyframes gradient-flow {
    to { background-position: 200% center; }
}

/* ==============================================================================
    5.5 VIDEO SHOWCASE (FIXED: 16:9 FORZATO CON HACK CSS e !important)
================================================================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    justify-items: center;
}

.video-item {
    text-align: center;
    width: 100%;
    max-width: 350px;
    padding: 1.5rem;
}

.video-wrapper {
    width: 100%;
    /* HACK CSS per garantire l'aspect ratio 16:9 */
    position: relative; 
    padding-top: 56.25%; /* 9/16 = 0.5625 (forza l'aspect ratio 16:9) */
    height: 0; /* Altezza azzerata */
    
    overflow: hidden;
    border-radius: var(--border-radius-global);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px var(--color-shadow);
    background-color: #000;
}

.video-item video,
.video-item iframe {
    position: absolute; 
    top: 0;
    left: 0;
    /* *** FIX CRITICO: !important per forzare il riempimento orizzontale su qualsiasi iframe/video *** */
    width: 100% !important;
    height: 100% !important; 
    object-fit: cover;
    border: none;
}

.video-item h4 {
    color: var(--color-primary);
    font-size: 1.15rem;
}

/* ==============================================================================
    5.6 MAIN VIDEO GALLERY (CORREZIONE ANCHE PER IL VIDEO GRANDE)
================================================================================ */

.video-gallery-main-view {
    width: 100%; 
    position: relative;
    padding-top: 56.25%; /* Forza 16:9 */
    height: 0; 
    overflow: hidden; 
    box-shadow: 0 4px 12px var(--color-shadow); 
    border-radius: var(--border-radius-global); 
    margin-bottom: 1rem; /* Aggiunto piccolo margine per coerenza */
}

.video-gallery-main-view video,
.video-gallery-main-view iframe {
    position: absolute;
    top: 0;
    left: 0;
    /* *** FIX CRITICO: !important per forzare il riempimento orizzontale sul video principale *** */
    width: 100% !important;
    height: 100% !important; 
    object-fit: cover;
    border: none;
}

/* ==============================================================================
    6. GALLERY "SHOWCASE" (Aggiornato)
================================================================================ */
.gallery-showcase { display: flex; flex-direction: column; gap: 1rem; }
.gallery-main-view { 
    width: 100%; 
    aspect-ratio: 16 / 9; 
    overflow: hidden; 
    box-shadow: 0 4px 12px var(--color-shadow); 
    border-radius: var(--border-radius-global); 
}
.gallery-main-view img { /* Mantiene solo lo stile per le immagini */
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: opacity 0.4s ease-in-out, transform 0.4s ease; 
}
.gallery-main-view:hover img { transform: scale(1.03); }
.gallery-thumbnails { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--color-border-gray) transparent; }
.gallery-thumbnails::-webkit-scrollbar { height: 6px; }
.gallery-thumbnails::-webkit-scrollbar-track { background: transparent; }
.gallery-thumbnails::-webkit-scrollbar-thumb { background-color: var(--color-border-gray); border-radius: 10px; }
.thumbnail { flex: 0 0 100px; height: 75px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 3px solid transparent; opacity: 0.6; transition: all var(--transition-speed) var(--transition-timing); }
.thumbnail:hover { opacity: 1; transform: translateY(-3px); }
.thumbnail.active { opacity: 1; border-color: var(--color-primary); transform: scale(1.05); }

/* ==============================================================================
    7. WORKS (PROGETTI)
================================================================================ */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.work-item { display: block; overflow: hidden; padding: 0; text-align: center; }
.work-item-img-wrapper { overflow: hidden; height: 200px; border-radius: var(--border-radius-global) var(--border-radius-global) 0 0; }
.work-item img { width: 100%; height: 100%; object-fit: cover; }
.work-item-info { padding: 1.5rem; text-align: left; }
.work-item-info h4 { color: var(--color-secondary); margin-bottom: 0.5rem; font-size: 1.15rem; }
.work-item-info p { font-size: 0.9rem; }

/* ==============================================================================
    8. PARTNERS
================================================================================ */
.partners-section { padding-top: 2rem; padding-bottom: 2rem; }
.partners-section h2 { margin-bottom: 1rem; }
.partners-carousel-wrapper { overflow: hidden; padding: 2rem 0; white-space: nowrap; position: relative; -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%); }
.partners-logo-grid { display: flex; animation: scroll-partners 40s linear infinite; }
.partners-logo-grid:hover { animation-play-state: paused; }
.partner-item { flex-shrink: 0; width: 150px; height: 80px; margin: 0 2rem; background-color: white; border: 1px solid var(--color-border-gray); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px var(--color-shadow); border-radius: var(--border-radius-global); transition: all var(--transition-speed) var(--transition-timing); }
.partner-item:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
.partner-item img { max-width: 80%; max-height: 80%; object-fit: contain; filter: grayscale(100%); transition: filter var(--transition-speed); }
.partner-item:hover img { filter: grayscale(0%); }
@keyframes scroll-partners { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==============================================================================
    9. CONTATTI
================================================================================ */
.contact-grid-container { display: flex; gap: 3rem; margin-top: 3rem; }
.contact-info, .contact-form { flex: 1; }
.contact-info { padding: 2rem; background-color: var(--color-light-gray); border: 1px solid var(--color-border-gray); box-shadow: 0 4px 8px var(--color-shadow); border-radius: var(--border-radius-global); }
.contact-info h3 { margin-bottom: 1.5rem; font-weight: 700; }
.info-group { margin-bottom: 1.5rem; }
.info-label { display: block; font-weight: 700; margin-bottom: 0.25rem; font-size: 0.9rem; }
.info-detail { display: block; margin-left: 1rem; font-weight: 400; color: var(--color-text); }
.modern-contact-form { padding: 2rem; background-color: white; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); border: 1px solid var(--color-border-gray); border-radius: var(--border-radius-global); }
.modern-contact-form h3 { margin-top: 0; margin-bottom: 2rem; font-size: 1.75rem; color: var(--color-text); }
.form-fields label { display: block; font-weight: 400; margin-top: 1rem; margin-bottom: 0.5rem; color: var(--color-text); padding-left: 1.5rem; }
.modern-input { width: 100%; padding: 0.75rem 1rem; margin-bottom: 1rem; border: 1px solid var(--color-border-gray); background-color: var(--color-light-gray); font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; border-radius: var(--border-radius-global); }
.modern-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(60, 143, 58, 0.2); outline: none; background-color: white; }
textarea.modern-input { resize: vertical; min-height: 120px; }
.modern-send { margin-top: 1.5rem; width: 100%; padding: 1rem; font-size: 1.1rem; }
.form-submit-container { text-align: center; }

/* ==============================================================================
    10. FOOTER
================================================================================ */
footer { background-color: #333; color: white; padding: 2rem 0; margin-top: auto; font-size: 0.9rem; text-align: center; }
footer a { color: white; opacity: 0.8; transition: opacity var(--transition-speed); }
footer a:hover { opacity: 1; }

/* ==============================================================================
    11. MODALE (DISCLAIMER E PREFERENZE COOKIE)
================================================================================ */
.modal { 
    position: fixed; 
    z-index: 1001; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(5px); 
    display: flex; 
    justify-content: center; 
    align-items: center;
    padding: 1rem; 
    overflow-y: auto; 
}

.modal-content.apple-card { 
    background-color: #fefefe; 
    margin: auto; 
    padding: 20px; 
    border: none; 
    width: 100%; 
    max-width: 600px; 
    max-height: 90vh; 
    overflow-y: auto; 
    border-radius: var(--border-radius-global); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    opacity: 0;
    animation: modalShow 0.3s forwards;
}

@keyframes modalShow { to { transform: scale(1); opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.close-button { color: #aaa; background: none; border: none; font-size: 28px; font-weight: bold; cursor: pointer; }
.close-button:hover, .close-button:focus { color: #000; text-decoration: none; }
.modal-body p { margin-bottom: 1rem; font-size: 0.95rem; }
.modal-footer { padding-top: 1rem; text-align: center; }

/* ==============================================================================
    12. NUOVO BANNER COOKIE INFERIORE
================================================================================ */
#cookie-consent-modal {
    align-items: flex-end;
    background: none;
    backdrop-filter: none;
    padding: 0;
    pointer-events: none;
}

#cookie-consent-modal .modal-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background-color: rgba(255, 255, 244, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--border-radius-global) var(--border-radius-global) 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s var(--transition-timing) forwards;
    pointer-events: auto;
    padding: 0;
}

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

#cookie-consent-modal .modal-body p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--color-text);
}

#cookie-consent-modal .cookie-actions {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding-top: 0;
    flex-shrink: 0;
}

#cookie-consent-modal .cta-button.secondary-cta {
    background-color: rgba(0,0,0,0.1);
    color: var(--color-text);
    border: 1px solid transparent;
}
#cookie-consent-modal .cta-button.secondary-cta:hover {
    background-color: rgba(0,0,0,0.2);
}

/* ==============================================================================
    13. MODALE PREFERENZE COOKIE (Rimane centrato)
================================================================================ */
.cookie-preferences-content {
    max-width: 700px;
    padding: 2rem;
    text-align: left;
}

.cookie-preferences-content h4 {
    color: var(--color-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cookie-toggle-group {
    padding: 1rem;
    border: 1px solid var(--color-border-gray);
    border-radius: var(--border-radius-global);
    margin-bottom: 1rem;
    background-color: var(--color-light-gray);
}
.cookie-toggle-group p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
}

.toggle-wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--color-border-gray);
}

.toggle-wrapper.disabled .toggle-label {
    color: var(--color-text);
    font-weight: 700;
}

.toggle-wrapper input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.slider {
    position: relative;
    cursor: pointer;
    background-color: #ccc;
    transition: .4s;
    width: 50px;
    height: 28px;
    border-radius: 28px;
    flex-shrink: 0;
    order: 2; 
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-label {
    order: 1; 
    font-weight: 400;
    margin-right: 1rem;
}

input:checked + .slider {
    background-color: var(--color-primary); 
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--color-primary);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.toggle-wrapper.disabled .slider {
    background-color: #999;
    cursor: not-allowed;
}

.prefs-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.prefs-actions button {
    width: 48%;
}

/* ==============================================================================
    14. RESPONSIVE DESIGN (Sezione Video Rinforzata)
================================================================================ */
@media (max-width: 1024px) { .partners-logo-grid { animation-duration: 30s; } }
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .container { padding: 0 1rem; }
    .section { padding: 3rem 0; }
    .apple-nav { padding: 0.75rem 0; }
    .nav-right-group { gap: 0; }
    .menu-toggle { display: block; margin-left: 1rem; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); padding: 1rem 0; border-top: 1px solid var(--color-border-gray); border-radius: 0 0 var(--border-radius-global) var(--border-radius-global); }
    .nav-links.open { display: flex; }
    .nav-item { padding: 0.75rem 1.5rem; border-bottom: 1px solid var(--color-border-gray); font-size: 1.1rem; }
    .nav-item:last-child { border-bottom: none; }
    .nav-right-group > .cta-button { display: none; } 
    .language-selector { margin-right: 0.5rem; }
    .hero { min-height: 70vh; }
    .hero h1 { font-size: clamp(2.2rem, 8vw, 2.8rem); }
    .about-us-flex { flex-direction: column; gap: 2rem; }
    .mission-highlight { padding: 1.5rem; }
    .mission-highlight h3.animated-gradient-text { font-size: 1.5rem; }
    .accent-text { font-size: 1rem; }
    .services-grid { grid-template-columns: 1fr; }
    .works-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .contact-grid-container { flex-direction: column; gap: 2rem; }
    .contact-info { padding: 1.5rem; }
    .info-detail { margin-left: 0; font-size: 1rem; }
    
    /* === CORREZIONI RESPONSIVE VIDEO SHOWCASE (5.5 e 5.6) === */
    .video-grid {
        grid-template-columns: 1fr; /* Una colonna in mobile */
        gap: 1.5rem;
        justify-items: stretch; 
    }
    
    .video-item {
        max-width: 100%; 
        padding: 0; 
        width: 100%; 
    }

    /* RINFORZO: Aggiunto !important anche qui per essere ultra-sicuri in mobile */
    .video-item .video-wrapper,
    .video-gallery-main-view {
        padding-top: 56.25% !important; /* Forza 16:9 su tutti i wrapper video */
    }
    /* ======================================================= */

    #cookie-consent-modal .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    #cookie-consent-modal .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-preferences-content { padding: 1.5rem; }
    .prefs-actions { flex-direction: column; gap: 0.75rem; }
    .prefs-actions button { width: 100%; }
    .cookie-toggle-group { padding: 0.8rem; }
    .toggle-wrapper { padding-top: 0.5rem; }
}

@media (max-width: 480px) {
    .video-grid {
        gap: 1rem; 
    }
    .video-item {
        padding: 0; 
    }
}










/* ==============================================================================
    15. RTL SUPPORT
================================================================================ */
html[dir="rtl"] { text-align: right; }
html[dir="rtl"] .underline-animation::after { left: auto; right: 0; }
html[dir="rtl"] .lang-toggle { flex-direction: row-reverse; }
html[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
html[dir="rtl"] .info-detail { margin-left: 0; margin-right: 1rem; }
html[dir="rtl"] label { padding-left: 0; padding-right: 1.5rem; }
html[dir="rtl"] .partners-carousel-wrapper { -webkit-mask-image: linear-gradient(to left, transparent 0%, black 15%, black 85%, transparent 100%); mask-image: linear-gradient(to left, transparent 0%, black 15%, black 85%, transparent 100%); }
html[dir="rtl"] .partners-logo-grid { animation-name: scroll-partners-rtl; }
@keyframes scroll-partners-rtl { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (max-width: 768px) { html[dir="rtl"] .menu-toggle { margin-left: 0; margin-right: 1rem; } }

@media (min-width: 768px) {
    html[dir="rtl"] #cookie-consent-modal .cookie-banner-content {
        direction: rtl;
    }
}

