/* =========================================================
   RESET DI BASE
========================================================= */

html, body {
    margin: 0;
    padding: 0;
    background-color: #d0fffb;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    flex-direction: column;
}


/* =========================================================
   PALETTE COLORI GLOBALI (solo blu)
========================================================= */

:root {
    /* Blu */
    --blue-light: #e9faff;
    --blue-medium: #2a6f97;
    --blue-dark: #003049;

    /* Testi */
    --text-dark: black;
    --text-light: white;

    /* Sfondi */
    --bg-light: #d0fffb;
    --bg-section: #d0fffb;

    /* Bordi */
    --border-light: #ddd;
}

/* =========================================================
   ELEMENTI GLOBALI
========================================================= */

a {
    color: var(--blue-medium);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--blue-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

/* Layout sticky footer */
#page {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* =========================================================
   TIPOGRAFIA BASE
========================================================= */

h1, h2, h3, h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--blue-dark);
}

p {
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

ul li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

section{
    padding: 40px 0;
}

.section-divider {
    width: 100%;
    border: none;
    border-top: 1px solid var(--blue-medium); /* azzurro molto leggero */
    margin: 3rem 0;
}

.art{
    text-align: left;
}

.breadcrumb {
    font-size: 1rem; /* leggermente più grande */
    margin: 20px 0 30px 0;
    padding: 6px 0; /* più leggero, niente box */
    color: var(--blue-dark);
    display: flex;
    flex-wrap: wrap;
    gap: 6px; /* spazio tra gli elementi */
    align-items: center;
}

.breadcrumb a {
    color: var(--blue-medium);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

/* Separatore elegante */
.breadcrumb a::after {
    content: "›";
    margin: 0 6px;
    color: var(--blue-medium);
    opacity: 0.6;
}

/* Nessun separatore sull’ultimo */
.breadcrumb a:last-of-type::after {
    content: "";
}

/* Icona iniziale, discreta */
.breadcrumb::before {
    content: "🗃️"; /*🗄️*/
    display: inline-block;
    margin-right: 6px;
    margin-left: 4%; /* ora funziona */
    opacity: 0.7;
}

/* =========================================================
   UTILITY CLASS
========================================================= */

.text-center {
    text-align: center;
}

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* =========================================================
   BUTTON GLOBALE
========================================================= */

.btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--blue-dark);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.25s ease;
    transform: scale(1);
    margin-bottom: 10px;
}

button.btn {
    border: none;
    background: var(--blue-dark);
    font: inherit;
    cursor: pointer;
    padding: 10px 22px;
    border-radius: 4px;
}

button.btn:focus {
    outline: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn:hover {
    background: #55b4eb;
    color: black;
    transform: scale(1.05);
}


/* =========================================================
   CARD GLOBALE
========================================================= */

.card {
    background: #fff;
    border-radius: 4px;
    margin: 0 auto;
    background-color: var(--blue-light);
    max-width: 450px;
    border: 1px solid var(--border-light);
    padding: 20px;
    margin-top: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card img {
    height: auto;   /* altezza ideale */
    object-fit: contain;
    width: 100%;
    border-radius: 4px;
    margin: 0 auto 1rem auto;
    display: block;
    margin-bottom: 20px;
}

.card p {
    font-size: 1rem;
    color: #444;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--blue-medium);
}

/* Card premium (per prodotti, piani, raccolte) */
.card-premium {
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.12),
        0 20px 40px rgba(0, 0, 0, 0.10);
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 14px rgba(0,0,0,0.10);
}

@media (max-width: 768px) {
    .card:hover,
    .licenza-card:hover,
    .btn:hover {
        transform: none !important;
    }
}

/* =========================================================
   HEADER MODERNO
========================================================= */
.header-left {
    order: 1;
}

.header-center {
    order: 2;
}

.header-right {
    order: 3;
}

/* DESKTOP: header-top si comporta come se non esistesse */
.header-top {
    display: contents;
}

/* Barra superiore */
.menu-bar {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: var(--blue-dark);
    padding: 14px 0;
    border-bottom: 10px solid rgb(0, 0, 0);
}

/* Layout interno */
.menu-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;

    /* Bordi laterali adattivi */
    padding: 0 3%;

    /* Rimuovi il max-width */
    max-width: none;

    margin: 0 auto;
}

/* LOGO + NOME */
.header-left .site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.custom-logo-img {
    width: 42px;
    height: auto;
}

.site-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
}

/* MENU CENTRALE */
.header-center ul {
    list-style: none;
    display: flex;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.menu_link {
    text-decoration: none;
    color: var(--text-light);
    font-size: 19px;
    letter-spacing: 0.3px;
    font-weight: 500;
    transition: color 0.25s ease;
}

.menu_link:hover {
    background: #55b4eb;
    color: black;
}

/* LINGUA + PRIVACY A DESTRA */
.header-right a {
    margin-left: 1rem;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
}

.header-right a:hover {
    background: #55b4eb;
    color: black;
}

@media (max-width: 768px) {

    /* 1) Header diventa a due righe */
    .menu-inner {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.5rem 1rem;
    }

    .header-top {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

   /* Spostiamo header-left e header-right dentro header-top */
    .header-left,
    .header-right {
        width: auto;
        display: flex;
        align-items: center;
    }

    /* 3) Menu centrato in una riga separata */
    .header-center {
        width: 100%;
        order: 3;
    }

    .header-center ul {
        justify-content: center;
        gap: 1.2rem;
        flex-wrap: wrap;
    }

    /* 4) Logo più piccolo */
    .custom-logo-img {
        width: 32px;
    }

    .site-name {
        font-size: 1rem;
    }

    /* 5) Privacy → icona */
    .header-right a.menu_link {
        font-size: 0;
        padding: 0.4rem;
    }

    .header-right a.menu_link::before {
        content: "📄";
        font-size: 1.4rem;
    }

    /* 6) Lingua → icona */
    .lang-icon {
        width: 24px;
        height: 24px;
        background-size: contain;
        background-repeat: no-repeat;
    }
}

/* =========================================================
   FOOTER MODERNO E COERENTE
========================================================= */

.main_footer {
    background-color: var(--blue-dark);
    color: var(--text-light);
    padding: 50px 3%;
    font-size: 1rem;
}


.footer_content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* LISTA LINK */
.footer_links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer_links li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.25s ease;
}

.footer_links li a:hover {
    color: var(--blue-light);
}

/* LOGO */
.footer_logo img {
    width: 120px;
    opacity: 0.9;
    transition: opacity 0.25s ease;
}

.footer_logo img:hover {
    opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .footer_content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer_links {
        grid-template-columns: 1fr;
    }
}
