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

body {
    font-family:'Courier New', Courier, monospace;
    /* america typewriter */
    line-height: 1.4;
    background-color: #f8f9fa;
    padding-top: 60px;
}

header {
    background: white;
    padding: 1rem;
    left:0;
    max-width: 100%;
    right: 0;
    margin: 0;
    height: 60px;
    position:fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color:black;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

nav a:hover,
nav a.active {
    color: #e74c3c;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 1.8rem;
    cursor: pointer;
}

.hero-section {
    background: linear-gradient(
        rgba(0,0,0,0.4),
        rgba(0,0,0,0.4)
    ), url('/img/PHOTO-9.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
}

.intro-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0);
}

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

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}
/*
.intro-title::after {
    content: '';
    display: block;
    width: 90%;
    height: 2px;
    background: #0066FF;
    margin: 1rem auto;
}
*/
.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.social-section {
    padding: 3em 1em;
    text-align: center;
    background-color:#ffffff;
}

.social-links {
    justify-content: center;
    display:flex;
    gap: 40px;
    margin-top: 0.5em;
}

.social-link {
    text-decoration: none;
}

.recensioni {
    padding: 3em 1em;
    text-align: center;
    background-color: #f8f9fa;
}

.blog {
    padding: 3em 1em;
    text-align: center;
    background-color: #ffffff;
}

footer {
    /* background: #0066FF; */
    background: rgba(65, 129, 218, 0.295);
    color: black;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 0 2rem;
}

.footer-section h3 {
    /* color: #FFFF00; */
    color: black;
}

.footer-section a {
    color:#e74c3c;
    text-decoration: none;
    max-width: 300px;
}

.footer-image {
    margin-left: auto;
    display: flex;
    align-items: flex-start;
}

.footer-image img {
    width: 200px;
    height: auto;
    border-radius: 0;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 0 1rem;
    }

    .footer-image {
        margin-left: 0;
    }

    .footer-image img {
        width: 180px;
    }
}

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        display: none;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        padding: 0rem;
        gap: 0;
    }

    nav a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }

    .hero-title {
        font-size: 2rem;
    }
}

.slideshow-container {
    position: relative;
    max-width: 700px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 1px;
}

.slide {
    display: none;
    width: 100%;
}

.slide img,
.slide video {
    width: 100%;
    height: auto;
    display: block;
}

.slide.active {
    display: block;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 12px;
    color: white;
    font-size: 20px;
    background: rgba(0,0,0,0.5);
    transform: translateY(-50%);
    border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }

.dots {
    text-align: center;
    margin-top: 10px;
}

.dots span {
    height: 10px;
    width: 10px;
    margin: 5px;
    background: gray;
    display: inline-block;
    border-radius: 50%;
    cursor: pointer;
}

.dots span.active {
    background: #e74c3c;
}

.slide {
    display: none;
    width: 100%;
    height: 600px;
}

.slide img,
.slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stile per il banner dei cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333; /* colore di sfondo */
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    z-index: 9999; /* Assicura che il banner sia sopra gli altri contenuti */
    display: none; /* Nascosto inizialmente */
}

.cookie-banner.show {
    display: block; /* Mostra il banner */
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-text p {
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

.cookie-btn.reject {
    background-color: #e74c3c;
    color: white;
}

.cookie-btn.settings {
    background-color: #f39c12;
    color: white;
}

.cookie-btn.accept {
    background-color: #2ecc71;
    color: white;
}

.cookie-btn:hover {
    opacity: 0.8;
}

/* Stile per il modale delle impostazioni dei cookies */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Sfondo semitrasparente */
    display: none; /* Nascosto inizialmente */
    z-index: 10000;
}

.cookie-modal-content {
    background-color: white;
    color: black;
    padding: 20px;
    margin: 50px auto;
    max-width: 600px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cookie-category {
    margin-bottom: 15px;
}

.cookie-toggle {
    width: 30px;
    height: 15px;
    background-color: #ccc;
    border-radius: 15px;
    cursor: pointer;
}

.cookie-toggle.active {
    background-color: #2ecc71;
}

.cookie-toggle.disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

.cookie-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-modal-btn {
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

.cookie-modal-btn.secondary {
    background-color: #e74c3c;
    color: white;
}

.cookie-modal-btn.primary {
    background-color: #2ecc71;
    color: white;
}

.cookie-modal-btn:hover {
    opacity: 0.8;
}

.floating-cookie-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2ecc71; /* Colore del bottone (verde, modificabile) */
    color: white;
    font-size: 20px;
    padding: 15px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 10001; /* Assicura che il bottone sia sopra gli altri contenuti */
    display: none; /* Impostato su none per nascondere inizialmente */
}

.floating-cookie-btn:hover {
    background-color: #27ae60; /* Colore del bottone al passaggio del mouse */
}

.floating-cookie-btn i {
    font-size: 18px;
}

/* Menu a tendina per dispositivi mobili */
@media (max-width: 768px) {

    nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        display: none;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        z-index: 999;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        padding: 0rem;
        gap: 0;
        list-style-type: none;
    }

    nav a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }

    .menu-toggle {
        display: block;
    }
}

/* PAGINA BLOG */

.blog-hero {
    background: linear-gradient(
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    ),
    url('/img/PHOTO-9.jpg');

    background-size: cover;
    background-position: center;
    padding: 6rem 1rem;
    text-align: center;
    color: white;
}

.blog-page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.blog-page {
    padding: 4rem 0;
}

/* ARTICOLO GRANDE */

.featured-article {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;

    background: white;
    border-radius: 18px;
    overflow: hidden;

    text-decoration: none;
    color: black;

    margin-bottom: 3rem;

    box-shadow: 0 5px 20px rgba(0,0,0,0.08);

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}
/*
.featured-article:hover {
    transform: translateY(-5px);

    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
*/
.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-content {
    padding: 2rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-category {
    color: #e74c3c;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.featured-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.featured-content p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 2rem;
}

.read-more {
    font-weight: bold;
    color: #e74c3c;
}

/* GRIGLIA */

.articles-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 2rem;
}

.article-card {
    background: white;

    border-radius: 16px;
    overflow: hidden;

    text-decoration: none;
    color: black;

    box-shadow: 0 5px 20px rgba(0,0,0,0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease; 
}
/*
.article-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
*/
.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.article-info {
    padding: 1.5rem;
}

.article-info h3 {
    margin-top: 0.7rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

/* MOBILE */

@media (max-width: 768px) {

    .featured-article {
        grid-template-columns: 1fr;
    }

    .blog-page-title {
        font-size: 2.2rem;
    }

    .featured-content h2 {
        font-size: 1.6rem;
    }

    .article-card img {
        width: 100%;
        max-height: 250px;
        height: auto;
        object-fit: contain;
        background: #f8f9fa;
    }

    .featured-article img {
        width: 110%;
        max-height: 250px;
        height: auto;
        background: #f8f9fa;
    }
}