body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #1a73e8 !important; /* Blu Google con !important */
    color: #fff !important;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header .container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header .logo-container {
    display: flex;
    align-items: center;
}

header .logo {
    width: 50px; /* Dimensione uniforme del logo */
    height: auto;
    border-radius: 50%; /* Rendi il logo circolare */
    margin-right: 20px;
}

header .logo-container h1 {
    font-size: 1.5rem;
    margin: 0;
    color: #ffeb3b !important; /* Giallo per il nome del blog con !important */
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
}

header nav ul li {
    margin-left: 1rem;
}

header nav ul li a {
    color: #fff !important; /* Colore bianco per le voci del menu con !important */
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

header nav ul li a:hover {
    background-color: #777;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#menu-toggle {
    background: none;
    border: none;
    color: #fff !important;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

.language-switcher {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.language-switcher a {
    margin-left: 10px;
}

.language-switcher img {
    width: 30px;
    height: auto;
}

@media (max-width: 768px) {
    #menu-toggle {
        display: block;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav ul {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        background-color: #1a73e8 !important; /* Blu Google con !important */
    }

    header nav ul.active {
        display: flex;
    }

    header nav ul li {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }

    header nav ul li a {
        width: 100%;
        text-align: left;
        padding: 1rem;
    }

    header .logo {
        max-width: 100px; /* Ridimensiona il logo su mobile */
        margin-right: 10px;
    }

    .language-switcher {
        order: 2;
        width: 100%;
        justify-content: flex-end;
        margin-top: 1rem;
    }

    nav ul {
        order: 1;
        width: 100%;
    }
}

.hero {
    background-color: #e0f7fa;
    color: #333;
    padding: 2rem;
    text-align: left;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: left;
}

main {
    width: 80%;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #fff !important;
    background-color: #1a73e8 !important; /* Blu Google con !important */
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

section {
    background-color: #fff;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

section h3 {
    font-size: 2rem;
    margin: 0;
    text-align: center;
}

section .section-content {
    margin-top: 1rem;
    text-align: left;
}

footer {
    background-color: #1a73e8 !important; /* Blu Google per il footer con !important */
    color: #fff !important;
    padding: 1rem 0;
    text-align: center;
}

footer .container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

footer ul li a {
    color: #ffeb3b !important; /* Giallo per i link nel footer con !important */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

footer ul li a:hover {
    color: #ccc !important;
}

footer .social-logo {
    width: auto;
    height: 1.15em;
    vertical-align: middle;
    transition: transform 0.3s;
}

footer .social-logo:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    footer .social-logo {
        height: 0.92em;
    }
}

.button-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.button-container a {
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    margin: 0;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    color: #fff !important;
    font-weight: bold;
    display: inline-block;
    text-align: center;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
}

.button-container a.visit-site {
    background-color: #ffeb3b !important; /* Giallo per i pulsanti */
    color: #333 !important;
}

.button-container a.visit-site:hover {
    background-color: #e0c900 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.button-container a span {
    display: block;
    text-align: center;
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .button-container {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .button-container a {
        width: 100%;
        max-width: 100%;
        padding: 0.75rem;
    }

    .button-container a span {
        white-space: nowrap;
    }
}

/* Banner dei cookie */
#cookie-banner {
    background-color: #1a73e8 !important; /* Cambia il colore del banner dei cookie in blu Google */
    color: #fff !important; /* Colore del testo nel banner dei cookie */
    padding: 1rem;
    text-align: center;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

#cookie-banner p {
    margin: 0;
    padding: 0;
}

#cookie-banner div {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

#cookie-banner button {
    background-color: #ffeb3b !important; /* Colore dei pulsanti nel banner dei cookie */
    color: #333 !important; /* Colore del testo nei pulsanti */
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 5px;
}

#cookie-banner button:hover {
    background-color: #e0c900 !important; /* Colore di hover dei pulsanti nel banner dei cookie */
    color: #333 !important;
}
