@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --sicily-red: #CE2B37;
    --sicily-yellow: #FCD116;
    --sicily-black: #0A0A0A;
    --bg-white: #FFFFFF;
    --bg-off-white: #F9FAFB;
    --text-dark: #111111;
    --text-gray: #6B7280;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--sicily-black); letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ==========================================
   DESKTOP STYLES (Base)
   ========================================== */

/* HEADER */
header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 0; }

/* LOGO: La tua modifica esatta, senza bordi tratteggiati */
.logo-placeholder {
    width: 160px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    color: var(--sicily-black); font-weight: 800; font-size: 0.85rem;
    border-radius: 6px; font-family: 'Montserrat', sans-serif;
}
.logo-placeholder img { max-width: 100%; max-height: 100%; object-fit: contain; }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { font-weight: 600; font-size: 0.9rem; color: var(--text-dark); position: relative; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background-color: var(--sicily-red); transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--sicily-red); }

/* Nascondi hamburger su desktop */
.mobile-menu-btn { display: none; }

/* HERO */
.hero {
    position: relative;
    height: 85vh; min-height: 600px;
    background: linear-gradient(135deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.7) 100%), 
                url('https://images.unsplash.com/photo-1598488035139-bdbb2231ce04?q=80&w=2070&auto=format&fit=crop');
    background-size: cover; background-position: center;
    display: flex; align-items: center;
    color: white;
}
.hero-content { max-width: 800px; animation: fadeInUp 1s ease-out; }
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; color: white; }
.hero h1 span { color: var(--sicily-yellow); }
.hero p { font-size: 1.25rem; color: #E5E7EB; margin-bottom: 2.5rem; font-weight: 300; max-width: 600px; }

.btn {
    padding: 1rem 2.2rem; border-radius: 6px; font-family: 'Montserrat', sans-serif;
    font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 0.5rem; transition: var(--transition);
    border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background-color: var(--sicily-red); color: white; border-color: var(--sicily-red); }
.btn-primary:hover { background-color: #a8202a; border-color: #a8202a; transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: white; border-color: rgba(255,255,255,0.3); }
.btn-outline-light:hover { border-color: var(--sicily-yellow); color: var(--sicily-yellow); }

/* SECTIONS */
.section-padding { padding: 6rem 0; }
.bg-off-white { background-color: var(--bg-off-white); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-header h2::after {
    content: ''; display: block; width: 50px; height: 4px; background: var(--sicily-red);
    margin: 1.5rem auto 0; border-radius: 2px;
}
.section-header p { color: var(--text-gray); font-size: 1.1rem; }

/* GRIGLIE DESKTOP */
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.pillar-card {
    background: white; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04); transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}
.pillar-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.pillar-img { height: 200px; overflow: hidden; }
.pillar-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.pillar-card:hover .pillar-img img { transform: scale(1.05); }
.pillar-content { padding: 2rem; }
.pillar-content h3 { font-size: 1.25rem; margin-bottom: 0.8rem; }
.pillar-content p { color: var(--text-gray); font-size: 0.95rem; line-height: 1.6; }

.spotlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.spotlight-img { 
    border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.1); 
    position: relative;
}
.spotlight-img img { width: 100%; height: 100%; object-fit: cover; }
.spotlight-img::before {
    content: ''; position: absolute; top: -20px; left: -20px; width: 100px; height: 100px;
    background: var(--sicily-yellow); z-index: -1; border-radius: 12px; opacity: 0.5;
}
.spotlight-text h2 { font-size: 2.5rem; margin-bottom: 1.5rem; line-height: 1.2; }
.spotlight-text p { color: var(--text-gray); margin-bottom: 1.5rem; font-size: 1.05rem; }

.check-list { list-style: none; margin-bottom: 2rem; }
.check-list li { padding-left: 1.5rem; position: relative; margin-bottom: 0.8rem; color: var(--text-dark); font-weight: 500; }
.check-list li::before {
    content: '✓'; position: absolute; left: 0; color: var(--sicily-red); font-weight: 800;
}

/* CONTACT */
.contact-wrapper { 
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; 
    background: white; padding: 3rem; border-radius: 16px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.03);
}
.info-box { padding: 1.5rem; background: var(--bg-off-white); border-radius: 8px; margin-bottom: 1.5rem; border-left: 4px solid var(--sicily-yellow); }
.info-box h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.info-box p, .info-box a { color: var(--text-gray); font-size: 0.95rem; }
.info-box a:hover { color: var(--sicily-red); }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 1rem; border: 1px solid #E5E7EB; border-radius: 6px;
    font-family: 'Inter', sans-serif; font-size: 1rem; transition: var(--transition); background: white;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--sicily-black); box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

/* FOOTER */
footer { background-color: var(--sicily-black); color: #9CA3AF; padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-col h4 { color: white; font-size: 1.1rem; margin-bottom: 1.5rem; }
.footer-col p, .footer-col a { color: #9CA3AF; font-size: 0.9rem; margin-bottom: 0.8rem; display: block; }
.footer-col a:hover { color: var(--sicily-yellow); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid #27272A; font-size: 0.85rem; line-height: 1.6; }
.footer-bottom a { color: var(--sicily-yellow); text-decoration: none; }
.footer-bottom a:hover { color: white; }

/* COOKIE ELEMENTS */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: white; box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    padding: 2rem; z-index: 9999;
    transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 3px solid var(--sicily-red);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-content { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.cookie-text h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.cookie-text p { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 1rem; }
.cookie-text a { color: var(--sicily-red); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.cookie-btn {
    padding: 0.7rem 1.5rem; border-radius: 6px; font-weight: 600; font-size: 0.85rem;
    cursor: pointer; transition: var(--transition); border: 2px solid transparent;
    font-family: 'Montserrat', sans-serif;
}
.cookie-btn-primary { background: var(--sicily-red); color: white; }
.cookie-btn-primary:hover { background: #a8202a; }
.cookie-btn-secondary { background: var(--bg-off-white); color: var(--text-dark); border-color: #E5E7EB; }
.cookie-btn-secondary:hover { border-color: var(--sicily-black); }
.cookie-btn-outline { background: transparent; color: var(--text-dark); border-color: #E5E7EB; }
.cookie-btn-outline:hover { border-color: var(--sicily-red); color: var(--sicily-red); }

.cookie-modal {
    display: none; position: fixed; bottom: 100px; right: 20px;
    background: white; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 2rem; z-index: 10000; max-width: 450px; width: calc(100% - 40px);
    max-height: 80vh; overflow-y: auto;
}
.cookie-modal.show { display: block; animation: fadeIn 0.3s ease-out; }
.cookie-modal h3 { margin-bottom: 1rem; font-size: 1.3rem; }
.cookie-modal p { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 1.5rem; }
.cookie-category { margin-bottom: 1.5rem; }
.cookie-category-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.cookie-category h4 { font-size: 1rem; margin: 0; }
.cookie-category p { font-size: 0.85rem; margin: 0; color: var(--text-gray); }

.toggle-switch { position: relative; width: 50px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc; transition: 0.3s; border-radius: 26px;
}
.toggle-slider:before {
    position: absolute; content: ""; height: 20px; width: 20px;
    left: 3px; bottom: 3px; background-color: white; transition: 0.3s; border-radius: 50%;
}
input:checked + .toggle-slider { background-color: var(--sicily-red); }
input:checked + .toggle-slider:before { transform: translateX(24px); }
input:disabled + .toggle-slider { background-color: var(--sicily-black); cursor: not-allowed; }

.cookie-widget {
    position: fixed; bottom: 20px; right: 20px;
    width: 50px; height: 50px; background: var(--sicily-black);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 9998; transition: var(--transition);
    opacity: 0; pointer-events: none;
}
.cookie-widget.show { opacity: 1; pointer-events: all; }
.cookie-widget:hover { transform: scale(1.1); background: var(--sicily-red); }
.cookie-widget svg { width: 24px; height: 24px; fill: white; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }


/* ==========================================
   MOBILE STYLES (Solo sotto i 900px)
   ========================================== */
@media (max-width: 900px) {
    /* Navbar: padding simmetrico */
    .navbar {
        padding: 1rem 1.5rem;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }

    /* Logo: tua modifica + spinta a sinistra */
    .logo-placeholder {
        margin-right: auto;
        width: 160px;
        height: 60px;
    }

    /* Hamburger: nero, grande, spinto a destra */
    .mobile-menu-btn {
        display: block !important;
        color: var(--sicily-black) !important;
        font-size: 3rem !important;
        margin-left: auto;
        margin-right: 0;
        padding: 0;
        line-height: 1;
        background: none;
        border: none;
        cursor: pointer;
        flex-shrink: 0;
    }

    /* Menu mobile aperto */
    .nav-links {
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%;
        background: white; 
        flex-direction: column; 
        padding: 1.5rem 2rem; 
        gap: 1.2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    .nav-links.active { display: flex; }
    .nav-links a { font-size: 1rem; padding: 0.5rem 0; }

    /* Hero mobile */
    .hero { min-height: 500px; height: 70vh; padding: 0 1rem; }
    .hero h1 { font-size: 2.2rem; line-height: 1.15; }
    .hero p { font-size: 1rem; padding: 0 0.5rem; }
    .hero-content { text-align: center; }
    .hero .btn { width: 100%; justify-content: center; margin-bottom: 0.5rem; }

    /* Sezioni mobile */
    .section-padding { padding: 3.5rem 0; }
    .section-header h2 { font-size: 1.8rem; }
    .section-header p { font-size: 1rem; }

    /* Griglie a colonna singola su mobile */
    .pillars-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .spotlight-grid { grid-template-columns: 1fr; gap: 2rem; }
    .spotlight-text h2 { font-size: 1.8rem; }
    .spotlight-img::before { display: none; }

    /* Contatti mobile */
    .contact-wrapper { 
        grid-template-columns: 1fr; 
        gap: 2rem; 
        padding: 1.5rem;
    }
    .contact-form h3, .contact-info h3 { font-size: 1.3rem; }

    /* Footer mobile */
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { font-size: 0.75rem; padding-top: 1.5rem; }

    /* Cookie mobile */
    .cookie-content { grid-template-columns: 1fr; text-align: center; }
    .cookie-buttons { justify-content: center; }
    .cookie-modal { right: 10px; left: 10px; width: auto; bottom: 80px; max-width: none; }
}

/* Schermi molto piccoli (es. iPhone SE) */
@media (max-width: 480px) {
    .navbar { padding: 0.8rem 1rem; }
    .logo-placeholder { width: 130px; height: 50px; font-size: 0.75rem; }
    .mobile-menu-btn { font-size: 2.5rem !important; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.95rem; }
    .section-header h2 { font-size: 1.5rem; }
    .btn { padding: 0.9rem 1.5rem; font-size: 0.8rem; }
}

/*PLAYER DEMO */
.play-icon {
    width: 60px;
    height: 60px;
    background: var(--sicily-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}
.play-icon:hover {
    transform: scale(1.1);
    background: var(--sicily-yellow);
}
.play-icon:hover svg {
    fill: var(--sicily-black);
}
.play-icon:active {
    transform: scale(0.92);
}
.play-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
    margin-left: 4px;
    transition: fill 0.3s ease;
}
.play-icon.is-playing {
    background: var(--sicily-yellow);
}
.play-icon.is-playing svg {
    fill: var(--sicily-black);
    margin-left: 0;
}