body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Hidden utility class */
.hidden {
    display: none !important;
}

header {
    background-color: transparent;
    color: #ffffff;
    /* padding: 1rem 0; */ /* Removed padding */
    position: fixed; /* Use fixed to keep it at the top */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: top 0.3s ease; /* Smooth transition for top property */
    height: 80px; /* Defined height for the header */
    display: flex; /* Added display flex to header */
    align-items: center; /* Align items vertically */
}

header .container {
    display: flex;
    justify-content: space-between; /* Push logo left, toggle right */
    align-items: center;
    padding: 0 20px; /* Aggiunto padding per distanziare dagli angoli */
    width: 100%; /* Ensure container takes full width */
    max-width: none; /* Remove max-width constraint */
}



.main-nav {
    flex-grow: 1; /* Allow main-nav to take up available space */
    display: flex; /* Make main-nav a flex container */
    justify-content: center; /* Center its content (the ul) */
}

.main-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    
    /* justify-content: center; */ /* This is handled by .main-nav */
}

.main-nav li {
    margin-left: 20px; 
}

.main-nav ul li a {
    font-size: 2rem;
}

a {
    color: #ff0000;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff0000;
}

.navbar-logo {
    height: 120px; 
    vertical-align: middle;
    /* margin-right: 50px; */ /* Removed fixed margin */
}

.main-nav ul li a {
    font-size: 2rem;
}

.nav-toggle {
    display: none; /* Hidden by default on larger screens */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 1.5rem;
    color: #ffffff;
}

.hamburger {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #ffffff;
    position: relative;
}

.hamburger::before, .hamburger::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background-color: #ffffff;
    position: absolute;
    transition: transform 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Basic responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 20px; /* Add horizontal padding for mobile screens */
    }

    body {
        padding: 0; /* Ensure body padding is 0 to avoid double padding */
    }

    .full-screen-hero {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }

    .main-nav {
        display: none; /* Hide navigation links by default on small screens */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px; /* Adjust based on header height */
        left: 0;
        background-color: #1e1e1e; /* Background for mobile nav */
        padding: 1rem 0;
    }

    .main-nav.active {
        display: flex; /* Show when active */
    }

    .main-nav ul { /* Added styles for ul */
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0; /* Remove gap for vertical stacking */
    }

    .main-nav li {
        margin: 0;
        text-align: center;
        padding: 0.5rem 0;
    }

    .main-nav ul li a {
        font-size: 1.2rem;
        word-wrap: break-word;
    }

    .nav-toggle {
        display: block; /* Show hamburger on small screens */
        font-size: 1rem; /* Reduced font size for mobile */
    }

    .navbar-logo {
        height: 120px;
        margin-right: 0; /* Remove margin on small screens */
    }

    .hamburger {
        width: 25px;
    }

    .hamburger::before, .hamburger::after {
        width: 25px;
    }

    .hamburger::before {
        top: -7px; /* Adjusted for smaller width */
    }

    .hamburger::after {
        top: 7px; /* Adjusted for smaller width */
    }

    .hero-title {
        font-size: 2.5rem; /* Slightly reduced font size */
    }

    h2 {
        font-size: 1.8rem; /* Slightly reduced font size */
    }

    .full-screen-hero .hero-logo {
        max-width: 70%; /* Adjusted for padding */
    }

    .hero-text {
        font-size: 1.3rem; /* Slightly reduced font size */
    }

    .hero-cta a {
        font-size: 1.1rem; /* Slightly reduced font size */
        padding: 10px 20px; /* Adjusted for padding */
        max-width: 280px; /* Limit button width on mobile */
        width: auto; /* Allow button to fit content */
        display: block; /* Make it a block for centering */
        margin: 0 auto; /* Center the button */
    }

    .hero-social-links {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .hero-social-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .service-item {
        padding: 15px;
    }

    .service-item h3 {
        font-size: 1.5rem;
    }

    .service-item p {
        font-size: 0.9rem;
    }
}

.hero-title {
    text-align: center;
    font-size: 4rem;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
}

h2 {
    font-size: 2.5rem;
}







.hero {
    text-align: center;
    padding: 80px 20px;
}

.full-screen-hero {
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../Images/BackGround/desktop-version/b30fb7b8-4ec6-4808-a33c-62e1d82f1d00.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
    padding: 0;
}

.full-screen-hero .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100svh;
    padding: 20px;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .full-screen-hero {
        min-height: calc(100svh - 80px);
        background-image: url('../Images/BackGround/immagini home/mobile-hero.png');
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .full-screen-hero .container {
        min-height: calc(100svh - 80px);
        padding: 20px;
    }
}

.full-screen-hero .hero-logo {
    max-width: 60%; /* Adjust as needed */
    height: auto;
    z-index: 2;
    margin: 0; /* Remove margins for perfect centering */
}

.hero-cta {
    z-index: 3; /* Ensure it's above the logo and background */
    margin-top: 15px; /* Space from the hero-text */
}

.hero-cta a {
    color: #ffffff; /* White text */
    text-decoration: none; /* Remove underline */
    font-size: 2.5rem; /* Increased font size */
    font-weight: bold;
    padding: 15px 30px; /* Padding for the rectangle */
    background-color: transparent; /* Transparent background */
    border: 2px solid #ffffff; /* White border */
    border-radius: 8px; /* Slightly rounded corners for the rectangle */
    display: inline-block; /* To apply padding and background */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.hero-cta a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly visible white background on hover */
    color: #ffffff; /* Keep text white on hover */
    border-color: #ffffff; /* Keep border white on hover */
}

/* Hero Social Links */
.hero-social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    z-index: 3;
}

.hero-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.hero-social-btn i {
    font-size: 1.2rem;
}

.hero-social-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Instagram button hover */
.hero-social-btn:nth-child(1):hover {
    background-color: rgba(225, 48, 108, 0.3);
    border-color: #E1306C;
}

/* WhatsApp button hover */
.hero-social-btn:nth-child(2):hover {
    background-color: rgba(37, 211, 102, 0.3);
    border-color: #25D366;
}

.hero-text {
    color: #ffffff;
    font-size: 2rem; /* Adjust as needed */
    font-weight: bold;
    margin: 20px 0 15px 0; /* Consistent spacing */
    z-index: 3; /* Ensure it's above the logo and background */
}

/* New sections styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.service-item h3 {
    color: #e50914;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.service-item p {
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    background-color: #e50914;
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #ff4500;
}

.mt-4 {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 20px; */ /* Removed padding for corner placement */
}

.card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Enhanced shadow for cards */
}

footer {
    background-color: transparent;
    color: #aaa;
    padding: 10px 0;
    text-align: center;
    margin: 40px 0 0;
}

/* ========================================
   FOOTER STYLES - Ottimizzato e Moderno
   ======================================== */

footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #e0e0e0;
    padding: 60px 0 20px;
    margin-top: 80px;
    border-top: 3px solid #e50914;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #e50914;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #e50914;
    transform: translateX(5px);
}

.footer-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.footer-logo:hover {
    filter: brightness(1.1);
}

.footer-description {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 10px;
}

.footer-vat {
    color: #666;
    font-size: 0.85rem;
    margin-top: 15px;
    font-style: italic;
}

/* Developer Links Styling */
.developer-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-weight: 500;
}

.developer-links li a:hover {
    color: #ff4500;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    margin-top: 20px;
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.copyright {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal-info {
    color: #666;
    font-size: 0.8rem;
    margin: 0;
    font-style: italic;
}

.developed-by {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.developed-by a {
    color: #e50914;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.developed-by a:hover {
    color: #ff4500;
    text-decoration: underline;
}

/* Footer Company Info */
.footer-company-info {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid #c8102e;
}

.footer-company-info h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.footer-company-info p {
    color: #b0b0b0;
    font-size: 0.85rem;
    margin: 6px 0;
    line-height: 1.6;
}

.footer-company-info strong {
    color: #e0e0e0;
}

.footer-company-info a {
    color: #c8102e;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-company-info a:hover {
    color: #ff1744;
    text-decoration: underline;
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.1) 0%, rgba(200, 16, 46, 0.05) 100%);
    border: 2px solid #333;
    border-radius: 50%;
    color: #e0e0e0;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: linear-gradient(135deg, #c8102e 0%, #a00d25 100%);
    border-color: #c8102e;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(200, 16, 46, 0.3);
}

/* WhatsApp specific hover - green */
.social-link[title*="WhatsApp"]:hover,
.social-link[href*="wa.me"]:hover {
    background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
    border-color: #25D366;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Instagram specific hover - keeps red/pink */
.social-link[title*="Instagram"]:hover {
    background: linear-gradient(135deg, #E1306C 0%, #C13584 100%);
    border-color: #E1306C;
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.3);
}

.footer-social-description {
    color: #888;
    font-size: 0.85rem;
    margin-top: 5px;
    font-style: italic;
}

/* Footer Schedule */
.footer-schedule {
    margin-top: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.footer-schedule p {
    color: #b0b0b0;
    font-size: 0.85rem;
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Footer Certifications */
.footer-certifications {
    padding: 15px;
    background: rgba(200, 16, 46, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(200, 16, 46, 0.2);
}

.footer-certifications h4 {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-cert-text {
    color: #b0b0b0;
    font-size: 0.85rem;
    line-height: 1.8;
    margin: 0;
}

.footer-cert-text i {
    color: #c8102e;
    margin-right: 5px;
}

/* Utility Classes */
.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* Social Icons (se necessario in futuro) */
.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.social-icons a img {
    height: 30px;
    width: 30px;
    filter: invert(100%);
    transition: transform 0.3s ease;
}

.social-icons a:hover img {
    transform: translateY(-3px);
}

/* Responsive Footer */
@media (max-width: 768px) {
    footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-logo {
        max-width: 150px;
    }

    .developer-links li a {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-company-info,
    .footer-schedule,
    .footer-certifications {
        text-align: left;
    }

    .footer-bottom-content {
        padding: 0 10px;
    }
}

@media (max-width: 500px) {
    footer {
        padding: 30px 0 15px;
        margin-top: 50px;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-logo {
        max-width: 120px;
    }

    .copyright,
    .developed-by,
    .footer-legal-info {
        font-size: 0.75rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-company-info p,
    .footer-schedule p,
    .footer-cert-text {
        font-size: 0.75rem;
    }
}



.service-icon {
    font-size: 3rem; /* Large icon size */
    color: #e50914; /* Icon color */
    margin-bottom: 15px;
    display: block; /* Ensure it takes up its own line and margin works */
    text-align: center; /* Center the icon */
}

/* Contact Page Specific Styles */
.contact-grid {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    gap: 40px; /* Space between columns */
    align-items: flex-start; /* Align items to the top */
}

.contact-info {
    flex: 1; /* Allow contact info to grow and shrink */
    min-width: 300px; /* Minimum width before wrapping */
}

.contact-map {
    flex: 2; /* Allow map to take more space */
    min-width: 300px; /* Minimum width before wrapping */
}

.contact-map iframe {
    width: 100%;
    height: 450px; /* Maintain a consistent height */
    border-radius: 8px; /* Optional: match other elements' styling */
}

@media (max-width: 768px) {
    .contact-grid {
        flex-direction: column; /* Stack items vertically on small screens */
    }

    .contact-info,
    .contact-map {
        flex: none; /* Remove flex grow/shrink */
        width: 100%; /* Take full width */
    }
}

/* Preventivo Page Specific Styles */
.quote-form-section {
    padding: 60px 0;
}

.form-container {
    background-color: #1e1e1e;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    margin: 0 auto;
}

.form-title {
    text-align: center;
    color: #ffffff;
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.form-subtitle {
    text-align: center;
    color: #b0b0b0;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.quote-form fieldset {
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.quote-form legend {
    color: #e50914;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 0 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #333;
    color: #ffffff;
    font-size: 1rem;
    box-sizing: border-box; /* Ensure padding doesn't add to width */
}

.form-group input[type="file"] {
    width: 100%;
    padding: 12px 0;
    color: #e0e0e0;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 100px;
}

.form-hint {
    display: block;
    margin-top: 6px;
    color: #9a9a9a;
    font-size: 0.9rem;
}

.attachments-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.attachments-preview-item {
    background-color: #2b2b2b;
    border: 1px solid #3b3b3b;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    width: 200px;
    height: 200px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.attachments-preview-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.attachments-preview-file {
    width: 100%;
    height: 140px;
    border-radius: 6px;
    background-color: #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.attachments-preview-name {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #e0e0e0;
    word-break: break-word;
}

/* Gallery Showcase Section */
.gallery-showcase {
    padding: 60px 0;
    background-color: #0a0a0a;
}

.gallery-showcase h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
}

.gallery-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-showcase-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(229, 9, 20, 0.3);
}

.gallery-showcase-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .gallery-showcase-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .gallery-showcase-item img {
        height: 200px;
    }
}


.radio-group label,
.checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.radio-group input[type="radio"],
.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    /* Adjust size if needed */
    transform: scale(1.2);
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #e50914;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #ff4500;
}

.form-group-full {
    margin-top: 20px;
}

/* Responsive adjustments for form */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }

    .form-title {
        font-size: 2rem;
    }

    .form-subtitle {
        font-size: 1rem;
    }

    .quote-form fieldset {
        padding: 15px;
    }

    .quote-form legend {
        font-size: 1.2rem;
    }

    .form-grid {
        grid-template-columns: 1fr; /* Stack items vertically */
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem;
    }

    .btn-submit {
        font-size: 1rem;
        padding: 12px;
    }
}

/* Curtain Page Specific Styles */
.curtain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 9999; /* Ensure it's on top of everything */
    overflow: hidden;
    background-color: #121212; /* Match body background */
}

.curtain-left,
.curtain-right {
    flex: 1;
    background-color: #121212; /* Match body background */
    transition: transform 1s ease-out; /* Animation duration and easing */
}

.curtain-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease-out 0.5s; /* Fade out after curtains start moving */
    display: flex;
    justify-content: center;
    align-items: center;
}

.curtain-logo {
    max-width: 300px; /* Fixed width for better control */
    height: auto;
    display: block;
}

/* Animation classes */
.curtain-container.animate .curtain-left {
    transform: translateX(-100%);
}

.curtain-container.animate .curtain-right {
    transform: translateX(100%);
}

.curtain-container.animate .curtain-logo-container {
    opacity: 0;
}

/* Chi Siamo Page Specific Styles */

.about-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-us-content h2 {
    color: #ffffff;
}



.about-us-image img {
    width: 100%;
    border-radius: 8px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-member h3 {
    font-size: 1.5rem;
}

.team-member p {
    font-size: 1rem;
}

.why-choose-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.why-choose-us-item {
    text-align: center;
}

.why-choose-us-item i {
    font-size: 3rem;
    color: #e50914;
    margin-bottom: 15px;
}

.why-choose-us-item h3 {
    font-size: 1.2rem;
}

.why-choose-us-item p {
    font-size: 1rem;
}

@media (max-width: 992px) {
    .about-us-grid {
        grid-template-columns: 1fr;
    }
}

/* Animazione di entrata per i loghi */
.logo-entrance-animation {
    animation: logo-fade-in-scale-up 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
    transform: scale(0.8);
}

@keyframes logo-fade-in-scale-up {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}



/* Image Gallery Section */
.image-gallery {
    padding: 60px 0;
}

.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.gallery-item {
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-item-caption {
    padding: 20px;
}

.gallery-item-caption h4 {
    color: #e50914;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.gallery-item-caption p {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Legal Pages Styles */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    color: #e0e0e0;
}

.legal-content .last-update {
    font-style: italic;
    color: #b0b0b0;
    margin-bottom: 30px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #c8102e;
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c8102e;
}

.legal-section h3 {
    color: #e0e0e0;
    font-size: 1.3rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-section h4 {
    color: #d0d0d0;
    font-size: 1.1rem;
    margin-top: 15px;
    margin-bottom: 8px;
}

.legal-section p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #d0d0d0;
}

.legal-section ul,
.legal-section ol {
    margin-left: 20px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-section li {
    margin-bottom: 8px;
    color: #d0d0d0;
}

.legal-section a {
    color: #c8102e;
    text-decoration: none;
    transition: color 0.3s;
}

.legal-section a:hover {
    color: #ff1744;
    text-decoration: underline;
}

.contact-box {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.1) 0%, rgba(200, 16, 46, 0.05) 100%);
    border: 2px solid #c8102e;
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
}

.contact-box h2 {
    border-bottom: none;
    margin-bottom: 15px;
}

/* Cookie Table Styles */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
}

.cookie-table thead {
    background: linear-gradient(135deg, #c8102e 0%, #a00d25 100%);
}

.cookie-table th {
    padding: 12px;
    text-align: left;
    color: #ffffff;
    font-weight: 600;
}

.cookie-table td {
    padding: 12px;
    border-bottom: 1px solid #333;
    color: #d0d0d0;
}

.cookie-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cookie-table tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-content {
        padding: 15px;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.2rem;
    }

    .cookie-table {
        font-size: 0.85rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 8px;
    }
}
