:root {
    --asfalto: #2D2D2D;
    --bianco: #FFFFFF;
    --bianco-off: #F8F9FA;
    --rosso: #E31E24;
    --verde-wa: #25D366;
    --text-dark: #1A1A1A;
    --text-muted: #555555;
    --border: #E5E7EB;
    
    --font-main: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bianco);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: 100px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 2px solid var(--rosso);
    z-index: 1000;
    padding: 0.8rem 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--asfalto);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--rosso) 0%, #c2181d 100%);
    color: var(--bianco);
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c2181d 0%, #a01418 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.3);
}

.btn-wa {
    background: linear-gradient(135deg, var(--verde-wa) 0%, #1eb956 100%);
    color: var(--bianco);
    margin-left: 1rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-wa:hover {
    background: linear-gradient(135deg, #1eb956 0%, #19a34a 100%);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('home page.webp?v=2');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 120px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for legibility */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.8rem); /* Slightly smaller and more controlled */
    margin-bottom: 1rem;
    color: var(--bianco);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: clamp(1rem, 4vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto 3rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Services */
.service-card {
    background: var(--bianco);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 0;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(227, 30, 36, 0.2);
}

.service-img-placeholder {
    width: 100%;
    height: 200px;
    background: #f1f3f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    font-size: 0.75rem;
    color: #adb5bd;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    color: var(--asfalto);
}

.service-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Portfolio */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 3rem;
}

.portfolio-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding: 1rem 5% 4rem;
    margin: 0 -5%;
    scrollbar-width: thin;
    scrollbar-color: var(--rosso) var(--bianco-off);
}

.portfolio-slider::-webkit-scrollbar {
    height: 6px;
}

.portfolio-slider::-webkit-scrollbar-track {
    background: var(--bianco-off);
}

.portfolio-slider::-webkit-scrollbar-thumb {
    background: var(--rosso);
    border-radius: 10px;
}

.portfolio-item {
    flex: 0 0 calc(33.33% - 1.5rem); /* 3 per fila su desktop per proporzioni migliori */
    min-width: 300px; /* Evita che diventino troppo strette */
    scroll-snap-align: start;
    background: var(--bianco);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.portfolio-img {
    width: 100%;
    aspect-ratio: 16 / 9; /* Rapporto d'aspetto naturale per evitare distorsioni */
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--asfalto);
}

.portfolio-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Why Us */
.why-us {
    background: var(--asfalto);
    color: var(--bianco);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem 5rem;
}

.why-item h3 {
    color: var(--rosso);
    margin-bottom: 1rem;
}

/* Contact */
.contact-section {
    background: var(--bianco-off);
}

.map-container {
    width: 100%;
    height: 400px;
    margin-top: 3rem;
    border: 1px solid var(--border);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: var(--bianco);
    padding: 4rem 0;
    text-align: center;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    section { padding: 60px 0; }
    h2 { font-size: 1.6rem; margin-bottom: 2.5rem !important; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; margin-bottom: 4.5rem; }
    .btn { 
        width: 100%; 
        max-width: 280px; 
        padding: 0.8rem 1.5rem; 
        font-size: 0.75rem;
        margin: 0.5rem 0; 
        display: flex;
        justify-content: center; 
    }
    .hero-btns {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .btn-wa { margin-left: 0; }
    .navbar .btn { display: none; } /* Hide the 'Contattaci' button in nav on mobile, will be in hamburger */
    
    .hamburger {
        display: block !important;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--asfalto);
        margin: 5px 0;
        transition: var(--transition);
    }

    /* Active Hamburger Animation */
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    .mobile-menu {
        display: flex !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 120px;
        gap: 1.5rem;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu a {
        font-size: 1.8rem;
        text-decoration: none;
        color: var(--asfalto);
        font-weight: 800;
        text-transform: uppercase;
        opacity: 0;
        transform: translateY(20px);
        transition: 0.4s ease forwards;
    }

    .mobile-menu.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered animation for menu items */
    .mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
    .mobile-menu.active a:nth-child(2) { transition-delay: 0.15s; }
    .mobile-menu.active a:nth-child(3) { transition-delay: 0.2s; }
    .mobile-menu.active a:nth-child(4) { transition-delay: 0.25s; }
    .mobile-menu.active a:nth-child(5) { transition-delay: 0.3s; }
    .mobile-menu.active a:nth-child(6) { transition-delay: 0.35s; }
    .mobile-menu.active a:nth-child(7) { transition-delay: 0.4s; }

    .mobile-menu a:hover {
        color: var(--rosso);
    }

    .mobile-contact-info {
        margin-top: 3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        padding: 0 10%;
        opacity: 0;
        transition: 0.6s ease 0.5s;
    }

    .mobile-menu.active .mobile-contact-info {
        opacity: 1;
    }

    .mobile-contact-item {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        color: var(--asfalto);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
    }

    /* Portfolio Slider Mobile Overrides */
    .portfolio-slider {
        gap: 1.2rem;
        padding: 0 5% 2rem;
        scrollbar-width: none;
    }

    .portfolio-slider::-webkit-scrollbar {
        display: none;
    }

    .portfolio-item {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
}

.hamburger {
    display: none;
}

.mobile-menu {
    display: none;
}

/* Animazione Linea Stradale Hero Premium */
.linea-stradale {
    position: relative;
    display: inline-block;
    z-index: 1;
    padding: 0 8px;
    color: var(--asfalto);
    transition: color 0.4s ease 0.8s;
}

.linea-stradale::after {
    content: '';
    position: absolute;
    bottom: 5%; 
    left: 0;
    width: 100%;
    height: 45%; 
    background: linear-gradient(90deg, var(--rosso), #ff4d4d); 
    z-index: -1; 
    transform-origin: left;
    transform: scaleX(0) skewX(-15deg);
    border-radius: 2px;
    box-shadow: 2px 2px 10px rgba(227, 30, 36, 0.3);
    animation: tracciaLineaPremium 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.8s; 
}

/* Cambio colore testo quando la linea lo copre */
.linea-stradale {
    animation: colorChange 0.4s ease forwards;
    animation-delay: 1.2s;
}

@keyframes tracciaLineaPremium {
    0% { transform: scaleX(0) skewX(-15deg); }
    100% { transform: scaleX(1) skewX(-15deg); }
}

@keyframes colorChange {
    to { color: var(--bianco); }
}

/* =========================================
   Splash Screen - Animazione Iniziale
   ========================================= */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bianco);
    z-index: 9999;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.6s ease-out;
}

.splash-container {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: driveAway 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 1s; /* Pausa iniziale per far leggere il logo */
}

.splash-logo {
    height: 50px;
}

.splash-machine-img {
    height: 120px; /* Macchina più grande e protagonista */
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

/* La striscia che viene disegnata */
.splash-line {
    position: absolute;
    right: 130px; /* Spostata sul retro della macchina */
    top: 50%;
    transform: translateY(-50%);
    width: 150vw; /* Abbastanza lunga da coprire lo schermo uscendo */
    height: 8px; /* Un po' più spessa per visibilità */
    background-image: repeating-linear-gradient(90deg, var(--rosso), var(--rosso) 40px, transparent 40px, transparent 80px);
    z-index: 1;
}

/* L'animazione di uscita verso destra */
@keyframes driveAway {
    to { left: 150%; }
}

/* =========================================
   Cookie Consent Banner
   ========================================= */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--asfalto);
    color: var(--bianco);
    z-index: 9998;
    padding: 1.5rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    animation: slideUpBanner 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
}

@keyframes slideUpBanner {
    to { transform: translateY(0); }
}

#cookie-banner .cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

#cookie-banner .cookie-text {
    flex: 1;
    min-width: 280px;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
}

#cookie-banner .cookie-text a {
    color: var(--rosso);
    text-decoration: underline;
    font-weight: 600;
}

#cookie-banner .cookie-text a:hover {
    color: #ff4d4d;
}

#cookie-banner .cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

#cookie-banner .btn-cookie-accept {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--rosso) 0%, #c2181d 100%);
    color: var(--bianco);
    border: none;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

#cookie-banner .btn-cookie-accept:hover {
    background: linear-gradient(135deg, #c2181d 0%, #a01418 100%);
    transform: translateY(-1px);
}

#cookie-banner .btn-cookie-reject {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.5rem;
    background: transparent;
    color: var(--bianco);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

#cookie-banner .btn-cookie-reject:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    #cookie-banner .cookie-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
    }

    #cookie-banner .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    #cookie-banner .btn-cookie-accept,
    #cookie-banner .btn-cookie-reject {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   Google Maps Placeholder (Blocco Preventivo)
   ========================================= */
.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: var(--bianco-off);
    border: 2px dashed var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    gap: 1rem;
}

.map-placeholder .map-placeholder-icon {
    font-size: 3rem;
    opacity: 0.4;
}

.map-placeholder p {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 400px;
    line-height: 1.5;
}

.map-placeholder .btn-map-accept {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--rosso) 0%, #c2181d 100%);
    color: var(--bianco);
    border: none;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    text-decoration: none;
}

.map-placeholder .btn-map-accept:hover {
    background: linear-gradient(135deg, #c2181d 0%, #a01418 100%);
    transform: translateY(-1px);
}

.map-container iframe.map-blocked {
    display: none;
}

/* =========================================
   Footer Legal Links
   ========================================= */
.footer-legal {
    margin-top: 0.75rem;
    font-size: 0.8rem;
}

.footer-legal a {
    color: var(--bianco);
    opacity: 0.5;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-legal a:hover {
    opacity: 0.9;
}

/* =========================================
   Legal Pages Content
   ========================================= */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.4rem;
    color: var(--rosso);
    margin: 3rem 0 1.5rem;
    text-transform: uppercase;
}

.legal-content h3 {
    font-size: 1.1rem;
    color: var(--asfalto);
    margin: 2rem 0 1rem;
}

.legal-content p,
.legal-content li {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: var(--asfalto);
}

.legal-content a {
    color: var(--rosso);
    text-decoration: none;
    font-weight: 600;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content .legal-update {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
}

/* =========================================
   Sardegna Sicura - SVG Map
   ========================================= */
.mappa-section {
    background: var(--asfalto);
    color: var(--bianco);
}

.sardegna-map-wrapper {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}

.sardegna-svg {
    width: 100%;
    height: auto;
    display: block;
}

.sardegna-outline {
    fill: url(#sardegna-fill);
    stroke: rgba(227, 30, 36, 0.35);
    stroke-width: 1.5;
    filter: url(#glow);
    transition: stroke 0.4s ease;
}

.sardegna-map-wrapper:hover .sardegna-outline {
    stroke: rgba(227, 30, 36, 0.55);
}

/* Pin markers */
.map-pin {
    position: absolute;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 5;
}

.map-pin .pin-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--rosso);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(227, 30, 36, 0.7);
    z-index: 3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-pin:hover .pin-core {
    transform: translate(-50%, -50%) scale(1.4);
    box-shadow: 0 0 20px rgba(227, 30, 36, 0.9);
}

.map-pin .pin-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(227, 30, 36, 0.35);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pinPulse 2.5s ease-out infinite;
}

.map-pin .pin-wave-2 {
    animation-delay: 0.8s;
}

@keyframes pinPulse {
    0% { width: 10px; height: 10px; opacity: 0.6; }
    100% { width: 45px; height: 45px; opacity: 0; }
}

.map-pin .pin-label {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-main);
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.map-pin:hover .pin-label {
    opacity: 1;
}

/* =========================================
   Project Photo Modal
   ========================================= */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.project-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.project-modal-content {
    position: relative;
    background: var(--bianco);
    border-radius: 12px;
    overflow: hidden;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-modal-content img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.project-modal-body {
    padding: 1.2rem;
    text-align: center;
}

.project-modal-location {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--rosso);
    letter-spacing: 0.12em;
    display: block;
}

.project-modal-body h3 {
    font-size: 1.15rem;
    color: var(--asfalto);
    margin: 0.4rem 0 0.6rem;
}

.project-modal-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.project-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: var(--bianco);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 5;
    line-height: 1;
}

.project-modal-close:hover {
    background: var(--rosso);
}

@media (max-width: 1024px) {
    .hero {
        background-attachment: scroll !important;
    }
}

@media (max-width: 768px) {
    .project-modal-content img {
        height: 180px;
    }
}

