/* theme.css – Stile moderno, affidabile e orientato alla conversione */

:root {
    --color-primary: #176B87; /* blu fiducia */
    --color-accent: #64CCC5; /* acqua energizzante */
    --color-light: #F3F9FB; /* sfondo chiaro */
    --color-dark: #0C2D48; /* testi forti */
    --color-success: #58A399; /* CTA */
}

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.6;
}

header.hero {
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    border-bottom: 5px solid var(--color-accent);
}

h1, h2, h3 {
    margin-top: 0;
    color: var(--color-dark);
}

h1 {
    font-size: 2.4rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.3rem;
}

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

.box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.07);
    padding: 1.5rem;
    transition: transform 0.2s ease;
}

    .box:hover {
        transform: scale(1.01);
        box-shadow: 0 0 16px rgba(0,0,0,0.12);
    }

a {
    color: var(--color-primary);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.cta {
    display: inline-block;
    background: var(--color-success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

    .cta:hover {
        background: var(--color-primary);
    }

.site-footer, .site-header {
    background: var(--color-dark);
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.95rem;
}

    footer a, .site-footer a, .site-header a {
        color: var(--color-accent);
    }

select#lang-picker {
    padding: 0.4rem;
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
    border: 1px solid #ccc;
    margin-left: 0.5rem;
}

/* Bandiere sferiche */
option[data-flag]::before {
    content: attr(data-flag);
}

select#lang-picker option {
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-left: 24px;
    background-position: left center;
}

/* Aggiungi bandierine con JS impostando style.backgroundImage su ogni option */


/* theme.css – Stile moderno, affidabile e orientato alla conversione */

:root {
    --color-primary: #176B87;
    --color-accent: #64CCC5;
    --color-light: #F3F9FB;
    --color-dark: #0C2D48;
    --color-success: #58A399;
}

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.6;
}

header.hero {
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    border-bottom: 5px solid var(--color-accent);
}

h1, h2, h3 {
    margin-top: 0;
    color: var(--color-dark);
}

h1 {
    font-size: 2.4rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.3rem;
}

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

.box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.07);
    padding: 1.5rem;
    transition: transform 0.2s ease;
}

    .box:hover {
        transform: scale(1.01);
        box-shadow: 0 0 16px rgba(0,0,0,0.12);
    }

a {
    color: var(--color-primary);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.cta {
    display: inline-block;
    background: var(--color-success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

    .cta:hover {
        background: var(--color-primary);
    }

.site-footer, .site-header {
    background: var(--color-dark);
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.95rem;
}

    footer a, .site-footer a, .site-header a {
        color: var(--color-accent);
    }

select#lang-picker, select#lang-picker-header {
    padding: 0.4rem;
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
    border: 1px solid #ccc;
    margin-left: 0.5rem;
}

option[data-flag]::before {
    content: attr(data-flag);
}

select#lang-picker option, select#lang-picker-header option {
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-left: 24px;
    background-position: left center;
}

/* HEADER RESPONSIVE */
.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.burger {
    display: none;
    font-size: 1.8rem;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

        .nav-menu.open {
            display: flex;
        }

    .burger {
        display: block;
    }
}


.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* Sticky share bar (mobile only) */
.share-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #ddd;
    padding: 0.5rem 0.75rem;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

    .share-sticky a {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        font-size: 0.85rem;
        color: #333;
        text-decoration: none;
        padding: 0.4rem 0.6rem;
        border-radius: 6px;
        background: #f5f5f5;
        transition: background 0.2s;
        white-space: nowrap;
    }

        .share-sticky a:hover {
            background: #e0e0e0;
        }

    .share-sticky .share-icon {
        width: 20px;
        height: 20px;
    }

@media (min-width: 769px) {
    .share-sticky {
        display: none !important;
    }
}