/*
Theme Name: Quellerba
Theme URI: https://tabaccheriaquellerba.xsyte.it
Author: Xsyte
Author URI: https://xsyte.it
Description: Tema su misura per Tabaccheria Quellerba — Annone Veneto (VE). Font ospitato in locale, nessuna libreria esterna, nessun cookie di terze parti. Tema chiaro e scuro.
Version: 2.0
Requires at least: 6.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: quellerba
*/

/* ==========================================================================
   Font — ospitato qui, nessuna chiamata a Google
   ========================================================================== */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('font/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('font/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
        U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
        U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Colori — un'unica scala, chiara e scura
   ========================================================================== */

:root {
    /* Superfici */
    --sfondo: #ffffff;
    --sfondo-2: #f5f8fc;
    --carta: #ffffff;
    --carta-alt: #fafcfe;

    /* Testo */
    --inchiostro: #0e1a29;
    --inchiostro-2: #566578;
    --inchiostro-3: #8494a6;

    /* Linee */
    --bordo: #e2e9f2;
    --bordo-forte: #cfdae7;

    /* Marchio */
    --brand: #14395e;
    --brand-2: #1d5285;
    --brand-testo: #14395e;
    --su-brand: #ffffff;

    /* Accento */
    --accento: #d9902a;
    --accento-2: #f0b352;
    --accento-tenue: #fdf4e5;
    --accento-testo: #8a5a10;

    /* Stati */
    --verde: #1a8f52;
    --verde-tenue: #eaf7f0;
    --rosso: #b6392f;
    --rosso-tenue: #fbeeed;

    /* Profondità */
    --ombra-1: 0 1px 2px rgb(14 26 41 / 0.05), 0 2px 8px -2px rgb(14 26 41 / 0.08);
    --ombra-2: 0 2px 4px rgb(14 26 41 / 0.06), 0 12px 28px -8px rgb(14 26 41 / 0.16);
    --ombra-3: 0 4px 8px rgb(14 26 41 / 0.08), 0 24px 48px -12px rgb(14 26 41 / 0.24);
    --glow: 0 0 0 rgb(217 144 42 / 0);
    --glow-on: 0 6px 26px -6px rgb(217 144 42 / 0.55);

    --raggio: 16px;
    --raggio-s: 10px;
    --max: 1160px;
    --molla: cubic-bezier(0.34, 1.4, 0.64, 1);
}

:root[data-tema="scuro"] {
    --sfondo: #080e16;
    --sfondo-2: #0d1520;
    --carta: #111c29;
    --carta-alt: #15212f;

    --inchiostro: #e9eff7;
    --inchiostro-2: #9dadc0;
    --inchiostro-3: #6d7f94;

    --bordo: #1f2d3d;
    --bordo-forte: #2b3d51;

    --brand: #0f2237;
    --brand-2: #16324e;
    --brand-testo: #8fbdec;
    --su-brand: #ffffff;

    --accento: #eba844;
    --accento-2: #f7c877;
    --accento-tenue: #241a09;
    --accento-testo: #f0b352;

    --verde: #35c47d;
    --verde-tenue: #0d2119;
    --rosso: #e5786c;
    --rosso-tenue: #241211;

    --ombra-1: 0 1px 2px rgb(0 0 0 / 0.3), 0 2px 8px -2px rgb(0 0 0 / 0.4);
    --ombra-2: 0 2px 4px rgb(0 0 0 / 0.35), 0 12px 28px -8px rgb(0 0 0 / 0.55);
    --ombra-3: 0 4px 8px rgb(0 0 0 / 0.4), 0 24px 48px -12px rgb(0 0 0 / 0.7);
    --glow-on: 0 6px 26px -6px rgb(235 168 68 / 0.45);
}

/* ==========================================================================
   Fondamenta
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--sfondo);
    color: var(--inchiostro);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
svg { width: 1em; height: 1em; }

h1, h2, h3 {
    line-height: 1.14;
    margin: 0 0 0.6em;
    letter-spacing: -0.025em;
    font-weight: 800;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.012em; }

p { margin: 0 0 1em; }

.contenitore {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: 20px;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

:focus-visible {
    outline: 2px solid var(--accento);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ==========================================================================
   Animazioni d'ingresso
   ========================================================================== */

.rivela {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s var(--molla);
}

.rivela.visibile {
    opacity: 1;
    transform: none;
}

.rivela--ritardo-1 { transition-delay: 0.08s; }
.rivela--ritardo-2 { transition-delay: 0.16s; }
.rivela--ritardo-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .rivela { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ==========================================================================
   Testata
   ========================================================================== */

.testata {
    position: sticky;
    top: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--sfondo) 88%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--bordo);
    transition: box-shadow 0.25s ease, background 0.3s ease;
}

.testata.staccata { box-shadow: var(--ombra-1); }

.testata__interno {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    /* Nessun elemento della barra può mandare a capo il proprio contenuto:
       è quello che faceva "saltare" l'allineamento. */
    flex-wrap: nowrap;
}

.testata__interno > * { flex-shrink: 0; }

.marchio {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--inchiostro);
    margin-inline-end: auto;
}

.marchio__nome {
    font-size: 1.14rem;
    font-weight: 800;
    letter-spacing: -0.028em;
    white-space: nowrap;
}

.marchio__tenue {
    font-weight: 500;
    color: var(--inchiostro-2);
}

@media (max-width: 400px) {
    .marchio__nome { font-size: 1rem; }
}

.menu {
    display: none;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu a {
    display: block;
    position: relative;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--inchiostro-2);
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 600;
    /* Mai andare a capo: una voce spezzata alza la riga e disallinea tutto. */
    white-space: nowrap;
    transition: color 0.18s, background 0.18s;
}

.menu a:hover {
    color: var(--inchiostro);
    background: var(--sfondo-2);
}

/* Il menu compare solo quando c'è spazio vero per tutte le voci
   accanto a orari, tema e telefono. */
@media (min-width: 1120px) {
    .menu { display: flex; }
}

/* Orari sempre visibili nella testata */
.testata__orari {
    display: none;
    align-items: center;
    gap: 9px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--bordo);
    background: var(--carta);
    font-size: 0.83rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    color: var(--inchiostro);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.testata__orari:hover {
    border-color: var(--bordo-forte);
    box-shadow: var(--ombra-1);
    transform: translateY(-1px);
}

.testata__orari .pallino { flex: 0 0 8px; }

/* Il dettaglio ("Riapre domani alle 06:15") è lungo: nella barra compare
   solo se c'è spazio abbondante. Sotto resta il solo stato Aperto/Chiuso,
   che è l'informazione che conta a colpo d'occhio. */
.testata__orari span.tenue {
    display: none;
    font-weight: 500;
    color: var(--inchiostro-2);
}

@media (min-width: 760px) {
    .testata__orari { display: inline-flex; }
}

@media (min-width: 1300px) {
    .testata__orari span.tenue { display: inline; }
}

.tema-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--bordo);
    background: var(--carta);
    color: var(--inchiostro-2);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, transform 0.25s var(--molla), background 0.2s;
}

.tema-btn svg { width: 19px; height: 19px; }
.tema-btn:hover {
    color: var(--accento);
    border-color: var(--accento);
    transform: rotate(-18deg);
}

.tema-btn .icona-luna { display: none; }
:root[data-tema="scuro"] .tema-btn .icona-luna { display: block; }
:root[data-tema="scuro"] .tema-btn .icona-sole { display: none; }

/* ==========================================================================
   Bottoni
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.22s var(--molla), box-shadow 0.28s ease, background 0.22s, border-color 0.22s, color 0.22s;
}

.btn svg {
    width: 1.15em;
    height: 1.15em;
    transition: transform 0.28s var(--molla);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--accento {
    background: linear-gradient(145deg, var(--accento-2), var(--accento));
    color: #24170a;
    box-shadow: 0 3px 12px -3px rgb(217 144 42 / 0.5);
}

.btn--accento:hover { box-shadow: var(--glow-on); }
.btn--accento:hover svg { transform: translateX(2px); }

.btn--chiaro {
    background: rgb(255 255 255 / 0.09);
    border-color: rgb(255 255 255 / 0.26);
    color: #fff;
    backdrop-filter: blur(4px);
}

.btn--chiaro:hover {
    background: rgb(255 255 255 / 0.17);
    border-color: rgb(255 255 255 / 0.45);
    box-shadow: 0 6px 22px -8px rgb(255 255 255 / 0.4);
}

.btn--bordo {
    background: var(--carta);
    border-color: var(--bordo-forte);
    color: var(--inchiostro);
    box-shadow: var(--ombra-1);
}

.btn--bordo:hover {
    border-color: var(--accento);
    color: var(--accento-testo);
    box-shadow: var(--glow-on);
}

.btn--piccolo { padding: 10px 17px; font-size: 0.88rem; }

.testata .btn--accento { display: none; }

@media (min-width: 560px) {
    .testata .btn--accento { display: inline-flex; }
}

/* ==========================================================================
   Pallino aperto/chiuso
   ========================================================================== */

.pallino {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 8px;
    background: var(--inchiostro-3);
}

.pallino--aperto {
    background: var(--verde);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--verde) 25%, transparent);
    animation: respira 2.6s ease-in-out infinite;
}

@keyframes respira {
    0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--verde) 25%, transparent); }
    50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--verde) 4%, transparent); }
}

.stato {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 17px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    background: rgb(255 255 255 / 0.09);
    border: 1px solid rgb(255 255 255 / 0.2);
    color: #fff;
    backdrop-filter: blur(4px);
}

.stato__dettaglio { font-weight: 400; opacity: 0.75; }

.stato--riquadro {
    width: 100%;
    justify-content: center;
    color: var(--inchiostro);
    background: var(--verde-tenue);
    border-color: color-mix(in srgb, var(--verde) 30%, transparent);
    backdrop-filter: none;
}

.stato--riquadro.stato--chiuso {
    background: var(--rosso-tenue);
    border-color: color-mix(in srgb, var(--rosso) 28%, transparent);
}

.stato--riquadro .stato__dettaglio { color: var(--inchiostro-2); opacity: 1; }

/* ==========================================================================
   Apertura
   ========================================================================== */

.eroe {
    position: relative;
    background:
        radial-gradient(760px 420px at 82% 6%, rgb(217 144 42 / 0.26) 0%, rgb(217 144 42 / 0) 60%),
        radial-gradient(680px 380px at 8% 96%, rgb(29 82 133 / 0.42) 0%, rgb(29 82 133 / 0) 62%),
        linear-gradient(158deg, #0d2740 0%, #16385a 52%, #0a1d31 100%);
    color: #fff;
    padding-block: clamp(62px, 12vw, 118px);
    overflow: hidden;
    isolation: isolate;
}

/* Alone che respira, lentissimo: dà vita senza distrarre */
.eroe::before {
    content: "";
    position: absolute;
    inset: -30% -10% auto auto;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(240 179 82 / 0.14) 0%, transparent 66%);
    animation: fluttua 16s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes fluttua {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-42px, 34px) scale(1.1); }
}

.eroe__interno {
    position: relative;
    max-width: 730px;
}

.eroe__occhiello {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 15px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.09);
    border: 1px solid rgb(255 255 255 / 0.18);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accento-2);
    margin-bottom: 22px;
}

.eroe h1 { margin-bottom: 0.34em; }

.eroe h1 em {
    font-style: normal;
    background: linear-gradient(100deg, var(--accento-2) 10%, #ffd894 60%, var(--accento-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eroe__testo {
    font-size: clamp(1.04rem, 2.2vw, 1.22rem);
    color: rgb(255 255 255 / 0.78);
    max-width: 55ch;
    margin-bottom: 32px;
}

.eroe__azioni {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

/* ==========================================================================
   Sezioni
   ========================================================================== */

.sezione { padding-block: clamp(58px, 9vw, 100px); }
.sezione--alt { background: var(--sfondo-2); }

.sezione__intestazione {
    max-width: 660px;
    margin-bottom: clamp(34px, 5vw, 54px);
}

.sezione__occhiello {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accento-testo);
    margin-bottom: 13px;
}

.sezione__testo {
    color: var(--inchiostro-2);
    font-size: 1.06rem;
    margin: 0;
}

/* ==========================================================================
   Servizi
   ========================================================================== */

.servizi {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 620px) { .servizi { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .servizi { grid-template-columns: repeat(3, 1fr); } }

.servizio {
    position: relative;
    background: var(--carta);
    border: 1px solid var(--bordo);
    border-radius: var(--raggio);
    padding: 26px 24px;
    box-shadow: var(--ombra-1);
    overflow: hidden;
    transition: transform 0.32s var(--molla), box-shadow 0.32s ease, border-color 0.32s;
}

/* Velo dorato che sale al passaggio del mouse */
.servizio::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 0;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accento) 7%, transparent));
    transition: height 0.4s ease;
    pointer-events: none;
}

.servizio:hover {
    transform: translateY(-5px);
    box-shadow: var(--ombra-2);
    border-color: color-mix(in srgb, var(--accento) 42%, var(--bordo));
}

.servizio:hover::before { height: 100%; }

.servizio__icona {
    position: relative;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    margin-bottom: 18px;
    background: var(--accento-tenue);
    color: var(--accento-testo);
    border: 1px solid color-mix(in srgb, var(--accento) 26%, transparent);
    transition: transform 0.42s var(--molla), background 0.3s, color 0.3s;
}

.servizio__icona svg { width: 24px; height: 24px; }

.servizio:hover .servizio__icona {
    transform: translateY(-3px) rotate(-7deg) scale(1.08);
    background: linear-gradient(145deg, var(--accento-2), var(--accento));
    color: #24170a;
}

.servizio h3 { position: relative; margin-bottom: 0.36em; }

.servizio p {
    position: relative;
    margin: 0;
    color: var(--inchiostro-2);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Spedizioni
   ========================================================================== */

.spedizioni {
    display: grid;
    gap: clamp(28px, 5vw, 54px);
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 900px) {
    .spedizioni { grid-template-columns: 1.05fr 0.95fr; }
}

.corrieri {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
}

.corrieri li {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--bordo);
    background: var(--carta);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--ombra-1);
    transition: transform 0.26s var(--molla), border-color 0.26s, box-shadow 0.26s;
}

.corrieri li:hover {
    transform: translateY(-3px);
    border-color: var(--accento);
    box-shadow: var(--glow-on);
}

/* Scena del pacco che scivola */
.scena {
    position: relative;
    height: 250px;
    border-radius: var(--raggio);
    background:
        radial-gradient(520px 240px at 50% 120%, color-mix(in srgb, var(--accento) 16%, transparent), transparent 70%),
        var(--carta-alt);
    border: 1px solid var(--bordo);
    overflow: hidden;
    box-shadow: var(--ombra-1);
}

.scena__nastro {
    position: absolute;
    left: 0; right: 0;
    bottom: 62px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--bordo-forte) 12%, var(--bordo-forte) 88%, transparent);
}

.scena__nastro::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--accento) 55%, transparent) 0 14px, transparent 14px 34px);
    opacity: 0.65;
    animation: nastro 1.5s linear infinite;
}

@keyframes nastro {
    to { transform: translateX(34px); }
}

.scena__pacco {
    position: absolute;
    bottom: 65px;
    left: -90px;
    width: 76px;
    height: 76px;
    color: var(--accento-testo);
    animation: scivola 6s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.scena__pacco svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.15;
    filter: drop-shadow(0 8px 14px rgb(14 26 41 / 0.18));
}

@keyframes scivola {
    0%   { left: -90px; transform: rotate(-6deg); opacity: 0; }
    12%  { opacity: 1; }
    50%  { transform: rotate(4deg); }
    88%  { opacity: 1; }
    100% { left: calc(100% + 20px); transform: rotate(-4deg); opacity: 0; }
}

.scena__etichetta {
    position: absolute;
    inset: auto 0 18px 0;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--inchiostro-3);
}

/* ==========================================================================
   Articoli (foto con zoom)
   ========================================================================== */

.articoli {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 800px) {
    .articoli { grid-template-columns: repeat(4, 1fr); }
}

.articolo {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--raggio);
    overflow: hidden;
    border: 1px solid var(--bordo);
    background: var(--carta-alt);
    box-shadow: var(--ombra-1);
    transition: transform 0.35s var(--molla), box-shadow 0.35s;
}

.articolo:hover {
    transform: translateY(-4px);
    box-shadow: var(--ombra-2);
}

.articolo__foto {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.articolo:hover .articolo__foto { transform: scale(1.07); }

/* Segnaposto finché non arrivano le foto vere del negozio */
.articolo__vuoto {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    background:
        repeating-linear-gradient(135deg, var(--sfondo-2) 0 12px, var(--carta-alt) 12px 24px);
    color: var(--inchiostro-3);
    text-align: center;
    padding: 18px;
}

.articolo__vuoto svg { width: 30px; height: 30px; opacity: 0.55; }

.articolo__vuoto span {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
}

.articolo__nome {
    position: absolute;
    inset: auto 0 0 0;
    padding: 30px 16px 14px;
    background: linear-gradient(180deg, transparent, rgb(6 14 24 / 0.82));
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

/* ==========================================================================
   Orari e mappa
   ========================================================================== */

.doppia {
    display: grid;
    gap: clamp(20px, 3.5vw, 34px);
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 900px) { .doppia { grid-template-columns: 1fr 1fr; } }

.riquadro {
    background: var(--carta);
    border: 1px solid var(--bordo);
    border-radius: var(--raggio);
    padding: clamp(22px, 3vw, 32px);
    box-shadow: var(--ombra-1);
}

.riquadro__titolo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.16rem;
    font-weight: 800;
    letter-spacing: -0.018em;
    margin-bottom: 22px;
}

.riquadro__titolo svg {
    width: 22px; height: 22px;
    flex: 0 0 22px;
    color: var(--accento);
}

.orari { list-style: none; margin: 0 0 20px; padding: 0; }

.orari li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 13px;
    border-radius: var(--raggio-s);
    font-size: 0.96rem;
    transition: background 0.2s;
}

.orari li + li { margin-top: 3px; }
.orari__giorni { font-weight: 600; }

.orari__ore {
    color: var(--inchiostro-2);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.orari li.oggi {
    background: var(--accento-tenue);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accento) 32%, transparent);
}

.orari li.oggi .orari__giorni::after {
    content: "oggi";
    display: inline-block;
    margin-inline-start: 9px;
    padding: 1px 9px;
    border-radius: 999px;
    background: var(--accento);
    color: #24170a;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    vertical-align: 1.5px;
}

.orari__chiuso { color: var(--rosso); font-weight: 600; }

.mappa {
    border: 0;
    width: 100%;
    height: 300px;
    border-radius: var(--raggio-s);
    display: block;
    background: var(--sfondo-2);
    filter: saturate(0.92);
}

:root[data-tema="scuro"] .mappa {
    filter: saturate(0.75) brightness(0.82) contrast(1.05);
}

.indirizzo { list-style: none; margin: 0 0 22px; padding: 0; }

.indirizzo li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-block: 12px;
}

.indirizzo li + li { border-top: 1px solid var(--bordo); }

.indirizzo svg {
    width: 20px; height: 20px;
    flex: 0 0 20px;
    margin-top: 3px;
    color: var(--accento);
}

.indirizzo strong {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--inchiostro-3);
    margin-bottom: 1px;
}

.indirizzo a {
    text-decoration: none;
    font-weight: 600;
    color: var(--brand-testo);
    word-break: break-word;
    transition: color 0.2s;
}

.indirizzo a:hover { color: var(--accento-testo); }

/* ==========================================================================
   Piè di pagina
   ========================================================================== */

.pieno {
    background: var(--brand);
    color: rgb(255 255 255 / 0.7);
    padding-block: 50px 30px;
    font-size: 0.93rem;
}

.pieno a { color: #fff; text-decoration: none; transition: color 0.2s; }
.pieno a:hover { color: var(--accento-2); }

.pieno .marchio { color: #fff; margin: 0 0 14px; display: inline-flex; }
.pieno .marchio__tenue { color: rgb(255 255 255 / 0.6); }

.pieno__griglia {
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr;
    padding-bottom: 28px;
    border-bottom: 1px solid rgb(255 255 255 / 0.13);
}

@media (min-width: 720px) {
    .pieno__griglia { grid-template-columns: 1.5fr 1fr 1fr; }
}

.pieno h4 {
    color: #fff;
    font-size: 0.76rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin: 0 0 13px;
}

.pieno ul { list-style: none; margin: 0; padding: 0; }
.pieno li + li { margin-top: 8px; }

.pieno__coda {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    justify-content: space-between;
    padding-top: 22px;
    font-size: 0.85rem;
    color: rgb(255 255 255 / 0.48);
}

.pieno__nota {
    margin-top: 16px;
    font-size: 0.79rem;
    line-height: 1.6;
    color: rgb(255 255 255 / 0.38);
    max-width: 64ch;
}

/* ==========================================================================
   Barra fissa su telefono
   ========================================================================== */

.barra-mobile {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 70;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--bordo);
    border-top: 1px solid var(--bordo);
    box-shadow: 0 -4px 22px -8px rgb(14 26 41 / 0.3);
}

.barra-mobile a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px 10px;
    background: var(--carta);
    color: var(--inchiostro);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.94rem;
}

.barra-mobile a svg { width: 19px; height: 19px; color: var(--accento); }
.barra-mobile a:active { background: var(--sfondo-2); }

@media (min-width: 560px) { .barra-mobile { display: none; } }
@media (max-width: 559px) { body { padding-bottom: 58px; } }
