/* ==========================================================================
   1. RESET E LAYOUT BASE
   ========================================================================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==========================================================================
   2. HEADER
   ========================================================================== */
header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    margin-bottom: 40px;
}

header h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

header tagline {
    display: block; /* Assicura che vada a capo se necessario */
}

header p {
    font-size: 1.4em;
    opacity: 0.9;
    font-style: italic;
}

/* ==========================================================================
   3. SEZIONI E COMPONENTI COMUNI
   ========================================================================== */
section {
    margin: 20px 0;
    padding-top: 20px;
}

section h2 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 4px solid #e74c3c;
    padding-bottom: 10px;
    display: block;
}

.section-intro {
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #666;
    font-style: italic;
}

.placeholder-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    border: 2px dashed #ddd;
    text-align: center;
    color: #999;
}

/* ==========================================================================
   4. GRID E CARD ARTICOLI
   ========================================================================== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.article-card-content {
    padding: 25px;
    flex-grow: 1;
}

.article-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.article-card p {
    color: #555;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.article-card .read-more {
    color: #e74c3c;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
}

/* ==========================================================================
   5. INTERACTIVE SLIDER (Carousel)
   ========================================================================== */
.slider-wrapper {
    position: relative;
    margin: 0; /* FIX: Rimosso margine negativo per evitare clipping pulsanti */
    padding: 0;
}

.slider-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.slider-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.slider-container .article-card {
    flex: 0 0 320px; /* Larghezza fissa per le card nello slider */
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 100; /* FIX: Sopra le card */
    border: none;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #e74c3c;
    color: white;
}

.nav-btn.prev { left: 10px; } 
.nav-btn.next { right: 10px; }

/* ==========================================================================
   6. SEZIONE CHI SIAMO E BRANDING
   ========================================================================== */
.about-feature {
    background: #fdf2f0;
    padding: 60px 40px;
    margin: 80px 0;
    border-radius: 15px;
    border: 1px solid #f5d6d1;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image img {
    width: 350px;
    height: 480px;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    border: 5px solid white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about-content .subtitle {
    color: #e74c3c;
    font-weight: bold;
    font-family: sans-serif;
    font-size: 0.8em;
    letter-spacing: 2px;
}

.btn-ribelle {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: #e74c3c;
    color: white !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-weight: bold;
    font-family: sans-serif;
    transition: transform 0.3s ease;
}

.btn-ribelle:hover {
    transform: scale(1.05);
    background: #c0392b;
}

/* --- ELEMENTI INSTAGRAM --- */
.instagram-badge {
    display: inline-flex;
    align-items: center;
    background: #e74c3c;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: sans-serif;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.2);
}

.instagram-badge .material-symbols-outlined {
    font-size: 14px;
    margin-right: 5px;
}

.insta-promo-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 20px;
    text-align: center;
    color: white;
    margin: 80px 0;
    width: 100%;
}

.insta-promo-content {
    max-width: 800px;
    margin: 0 auto;
}

.insta-promo-content h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: white;
    border: none;
    padding: 0;
}

.insta-promo-content p {
    font-size: 1.3em;
    margin-bottom: 35px;
    font-style: italic;
}

.btn-insta-full {
    display: inline-flex;
    align-items: center;
    padding: 18px 40px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-family: sans-serif;
}

.btn-insta-full i {
    margin-right: 10px;
    font-size: 1.2em;
}

.btn-insta-full:hover {
    background: #c0392b;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* --- COOKIE WALL PROFESSIONALE (Mappe Ribelli) --- */
/* Applica Roboto solo al banner per non sballare il resto del sito */
.cookie-banner, 
.cookie-banner button, 
.cookie-banner p, 
.cookie-banner a {
    font-family: 'Roboto', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sfondo oscurante con blur (sfocatura) moderno */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px); /* Effetto vetro sfocato molto pro */
    z-index: 9998;
    display: none;
}

/* Banner centrale */
.cookie-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 480px; /* Leggermente più stretto per eleganza */
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 16px; /* Bordi più morbidi */
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
    z-index: 9999;
    display: none; /* Gestito da JS */
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.05);
}

/* 1. Titolo centrato */
.cookie-title {
    font-size: 20px;
    font-weight: 500; /* Roboto Medium */
    color: #2c3e50;
    margin: 0 0 20px 0;
    text-align: center;
    width: 100%;
}

/* 2. Paragrafo ben centrato e pulito (no indentazione manuale) */
.cookie-text {
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
}

.cookie-text p {
    font-size: 15px;
    line-height: 1.6;
    color: #57606f;
    margin: 0 0 10px 0; /* Spazio tra le righe di testo */
}

.cookie-text p:last-child {
    margin-bottom: 0;
}

.cookie-text a {
    color: #341f97; /* Un viola link più elegante */
    text-decoration: underline;
    font-weight: 500;
}

.cookie-text a:hover {
    color: #5f27cd;
}

/* 3. Bottoni uguali e centrati */
.cookie-buttons {
    display: flex;
    gap: 15px; /* Spazio preciso tra i bottoni */
    justify-content: center;
    width: 100%;
    max-width: 320px; /* Contiene i bottoni in centro */
}

.cookie-btn {
    flex: 1; /* Forza i bottoni ad occupare lo stesso spazio */
    max-width: 150px; /* Larghezza massima identica */
    padding: 12px 0; /* Padding verticale fisso */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cookie-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Colore Accetta (Verde più pro, meno fluo) */
.cookie-btn.accept {
    background: #27ae60;
    color: white;
}

.cookie-btn.accept:hover {
    background: #219150;
}

/* Colore Rifiuta (Grigio neutro elegante) */
.cookie-btn.decline {
    background: #f1f2f6;
    color: #57606f;
    border: 1px solid #dfe4ea;
}

.cookie-btn.decline:hover {
    background: #dfe4ea;
    color: #2c3e50;
}

/* ==========================================================================
   8. MEDIA QUERIES (Responsive)
   ========================================================================== */
@media (max-width: 768px) {
    /* Layout Header Mobile */
    header h1 { font-size: 2.5em; }

    /* Layout Chi Siamo Mobile */
    .about-container { 
        flex-direction: column; 
        text-align: center; 
    }
    .about-image img {
        width: 100%;
        max-width: 300px;
        height: auto;
        border-radius: 15px;
        margin: 0 auto;
    .about-image img { 
        width: 250px; 
        height: 250px; 
        border-radius: 50%; /* Opzionale: torna circolare su mobile per spazio */
    }

    /* Slider Mobile */
    .nav-btn { display: none; } /* Nasconde le frecce su mobile per usare lo swipe */
    .slider-container { gap: 15px; }
    .slider-container .article-card { flex: 0 0 280px; }

    /* Banner Instagram Mobile */
    .insta-promo-content h2 { font-size: 2.2em; }
    .insta-promo-banner { 
        padding: 60px 20px; 
        background-attachment: scroll; 
    }
}