
/* ==========================================================
   WHITE LABEL - STILI CONDIVISI
   Versione: 1.5.3

   - Variabili e reset
   - Header e logo
   - Navigazione desktop/mobile
   - Ricerca
   - Contenitore e breadcrumb
   - Footer
   - Modal demo
   - Responsive consolidato

   Dipendenze esterne: nessuna
   ========================================================== */


/* ----------------------------------------------------------
   01. VARIABILI E RESET
   ---------------------------------------------------------- */

:root {
    --navy: #101d40;
    --navy-soft: #39445d;
    --gold: #c78b15;
    --border: #e7e9ee;
    --white: #ffffff;
    --muted: #697184;

    --page-padding: clamp(20px, 3.2vw, 58px);
    --card-gap: 12px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--navy);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}


/* ----------------------------------------------------------
   02. HEADER
   ---------------------------------------------------------- */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 94px;
    padding: 12px var(--page-padding);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}


/* Logo */

.brand {
    display: flex;
    align-items: center;
    min-width: 160px;
}

.brand img {
    display: block;
    width: 155px;
    height: auto;
    max-height: 70px;
    object-fit: contain;
}

.brand-fallback {
    display: none;
    text-align: center;
    line-height: 1;
}

.brand-fallback .top,
.brand-fallback .bottom {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
}

.brand-fallback .script {
    display: block;
    margin: 1px 0;

    color: var(--gold);
    font-family: cursive;
    font-style: italic;
    font-size: 31px;
}


/* ----------------------------------------------------------
   03. NAVIGAZIONE DESKTOP
   ---------------------------------------------------------- */

.nav-desktop {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2.4vw, 39px);
    margin-left: auto;
}

.nav-desktop a,
.nav-desktop button {
    padding: 8px 0;
    border: 0;
    background: transparent;

    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    white-space: nowrap;

    transition: color 0.25s ease;
}

.nav-desktop a:hover,
.nav-desktop button:hover {
    color: var(--gold);
}


/* ----------------------------------------------------------
   04. AZIONI HEADER
   ---------------------------------------------------------- */

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.language {
    padding: 8px 4px;
    border: 0;
    background: transparent;

    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
}

.request-btn {
    padding: 13px 19px;
    border: 1px solid var(--gold);
    background: var(--white);

    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.request-btn:hover {
    background: var(--gold);
    color: var(--white);
}


/* Pulsanti icona */

.icon-btn {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px;
    border: 0;
    background: transparent;
    color: var(--navy);

    flex-shrink: 0;
}

.icon-btn svg {
    display: block;
    width: 24px;
    height: 24px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wish-count {
    position: absolute;
    top: -3px;
    right: -4px;

    display: none;
    place-items: center;

    min-width: 16px;
    height: 16px;
    border-radius: 50%;

    background: var(--navy);
    color: var(--white);
    font-size: 10px;
}

.mobile-toggle,
.mobile-nav {
    display: none;
}


/* ----------------------------------------------------------
   05. RICERCA
   ---------------------------------------------------------- */

.search-panel {
    display: none;
    padding: 18px var(--page-padding);
    border-top: 1px solid var(--border);
}

.search-panel.open {
    display: block;
}

.search-panel input {
    display: block;
    width: 100%;
    max-width: 600px;
    padding: 14px 16px;

    border: 1px solid #ccd1db;
    border-radius: 0;

    color: var(--navy);
    background: var(--white);
}


/* ----------------------------------------------------------
   06. CONTENITORE E BREADCRUMB
   ---------------------------------------------------------- */

.container {
    width: 100%;
    min-width: 0;
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;

    padding-top: 29px;

    color: var(--muted);
    font-size: 12px;
}

.breadcrumbs .sep {
    color: var(--gold);
}

.breadcrumbs .current {
    color: #aa7714;
}


/* ----------------------------------------------------------
   07. FOOTER
   ---------------------------------------------------------- */

.footer {
    padding: 40px var(--page-padding);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-label {
    color: var(--navy);
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
}


/* ----------------------------------------------------------
   08. MODAL DEMO
   ---------------------------------------------------------- */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(10, 20, 41, 0.58);
}

.modal-backdrop.open {
    display: flex;
}

.modal {
    position: relative;

    width: min(100%, 480px);
    padding: 36px;

    background: var(--white);
}

.modal h2 {
    margin: 0 0 20px;
    font-size: 25px;
}

.modal p {
    color: var(--navy-soft);
    line-height: 1.7;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;

    border: 0;
    background: transparent;
    font-size: 25px;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */


/* ----------------------------------------------------------
   09. DESKTOP COMPATTO / TABLET
   ---------------------------------------------------------- */

@media (max-width: 1100px) {

    .nav-desktop {
        gap: 15px;
    }

    .header-actions {
        gap: 12px;
    }
}


/* ----------------------------------------------------------
   10. HEADER E MENU MOBILE
   ---------------------------------------------------------- */

@media (max-width: 900px) {

    .header-inner {
        min-height: 78px;
        justify-content: space-between;
        gap: 10px;
    }

    /* Nascondiamo la navigazione desktop */

    .nav-desktop,
    .header-actions .language,
    .header-actions .request-btn {
        display: none;
    }

    /* Il logo può ridursi senza forzare la larghezza */

    .brand {
        min-width: 0;
        flex: 0 1 auto;
    }

    .brand img {
        max-width: 100%;
    }

    /* Le icone rimangono sulla destra */

    .header-actions {
        flex: 0 0 auto;
        gap: 8px;
    }

    /* Hamburger sempre visibile sotto 900px */

    .mobile-toggle {
        display: inline-flex;
    }

    /* Menu inizialmente nascosto */

    .mobile-nav {
        display: none;
    }

    /* Menu aperto tramite JavaScript */

    .mobile-nav.open {
        display: flex;
        flex-direction: column;
        gap: 8px;

        padding: 15px var(--page-padding) 25px;
        border-top: 1px solid var(--border);
        background: var(--white);
    }

    .mobile-nav a,
    .mobile-nav button {
        display: block;
        width: 100%;
        padding: 12px 3px;

        border: 0;
        background: transparent;

        color: var(--navy);
        font-size: 13px;
        font-weight: 700;
        text-align: left;
        text-transform: uppercase;
    }

    .mobile-nav a:hover,
    .mobile-nav button:hover {
        color: var(--gold);
    }
}


/* ----------------------------------------------------------
   11. SMARTPHONE
   ---------------------------------------------------------- */

@media (max-width: 620px) {

    :root {
        --page-padding: 16px;
        --card-gap: 0px;
    }

    .header-inner {
        min-height: 72px;
        padding-top: 8px;
        padding-bottom: 8px;
        gap: 8px;
    }

    .brand {
        min-width: 0;
        flex: 0 1 auto;
    }

    .brand img {
        width: 115px;
        max-width: 100%;
    }

    .brand-fallback {
        max-width: 115px;
    }

    .header-actions {
        flex: 0 0 auto;
        gap: 5px;
    }

    .header-actions .icon-btn {
        width: 30px;
        height: 34px;
        padding: 3px;
    }

    .header-actions .icon-btn svg {
        width: 22px;
        height: 22px;
    }

    .breadcrumbs {
        gap: 9px;
        padding-top: 22px;

        font-size: 11px;
        line-height: 1.65;
    }

    .footer {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}


/* ----------------------------------------------------------
   12. SMARTPHONE MOLTO STRETTI
   ---------------------------------------------------------- */

@media (max-width: 360px) {

    .header-inner {
        gap: 5px;
    }

    .brand img {
        width: 98px;
    }

    .brand-fallback {
        max-width: 98px;
    }

    .brand-fallback .top,
    .brand-fallback .bottom {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .brand-fallback .script {
        font-size: 23px;
    }

    .header-actions {
        gap: 3px;
    }

    .header-actions .icon-btn {
        width: 27px;
        height: 30px;
        padding: 2px;
    }

    .header-actions .icon-btn svg {
        width: 20px;
        height: 20px;
    }
}


/* ----------------------------------------------------------
   13. ACCESSIBILITÀ - RIDUZIONE ANIMAZIONI
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ==========================================================
   FINE CSS CONDIVISO v1.5.3
   ========================================================== */
