/* ============================================================
   FOLLIE D'ORO — TEMA STAGIONALE NATALE
   Caricato DOPO style.css: sovrascrive solo palette e decorazioni.
   Per tornare al tema standard basta rimuovere il <link> nelle pagine.
   ============================================================ */

:root {
    --ink: #15241d;            /* verde abete quasi nero */
    --ink-soft: #4b5a53;
    --ink-faint: #7f8b85;
    --paper: #fbf8f2;          /* bianco neve caldo */
    --paper-alt: #f2ede2;
    --surface: #ffffff;
    --line: #e5ddcc;
    --line-soft: #efe9dc;
    --gold: #b98a3c;           /* oro */
    --gold-deep: #7d5718;      /* oro scuro, leggibile su bianco */
    --gold-light: #e7cd96;
    --gold-bg: #f6eedb;
    --ink-inverse: #fbf6ea;
    --rosso: #b3122a;          /* rosso natalizio */
    --abete: #1f5a43;          /* verde abete */

    --shadow-gold: 0 14px 30px rgba(185, 138, 60, 0.28);
}

body {
    background:
        radial-gradient(1100px 560px at 100% 0%, rgba(179, 18, 42, 0.05), transparent 60%),
        radial-gradient(900px 520px at 0% 40%, rgba(31, 90, 67, 0.05), transparent 60%),
        var(--paper);
}
::selection { background: var(--gold-light); color: var(--ink); }

/* --- Divisore dei titoli: una stella dorata tra un filetto rosso e uno verde --- */
h2::after {
    width: 150px;
    height: 22px;
    margin-top: 14px;
    border-radius: 0;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 1C21.6 13 27 18.4 39 20C27 21.6 21.6 27 20 39C18.4 27 13 21.6 1 20C13 18.4 18.4 13 20 1Z' fill='%23b98a3c'/%3E%3C/svg%3E") center / 20px 20px no-repeat,
        linear-gradient(90deg, transparent, var(--rosso)) left center / 56px 1.5px no-repeat,
        linear-gradient(90deg, var(--abete), transparent) right center / 56px 1.5px no-repeat;
}

/* --- Header: bianco neve con un filo rosso, oro e verde sul bordo --- */
header { background: rgba(251, 248, 242, 0.92); }
header.is-scrolled { background: rgba(251, 248, 242, 0.98); }
header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--rosso), var(--gold), var(--gold-light), var(--gold), var(--abete));
    opacity: .85;
    pointer-events: none;
}
@media (min-width: 1340px) {
    header nav { border-top-color: rgba(185, 138, 60, 0.25); }
}

/* --- Sezioni "notte di Natale": Promozioni, La Nostra Storia, Contatti ---
   Verde abete profondo, leggera nevicata di puntini e un bagliore dorato dal basso */
#promozioni, #chi-siamo, #contatti {
    position: relative;
    overflow: hidden;
    color: rgba(251, 246, 234, 0.84);
    background:
        radial-gradient(circle at 23% 31%, rgba(255,255,255,.2) 0 1.1px, transparent 1.7px) 0 0 / 131px 113px, radial-gradient(circle at 71% 77%, rgba(255,255,255,.14) 0 0.9px, transparent 1.5px) 37px 19px / 89px 101px, radial-gradient(circle at 47% 58%, rgba(255,255,255,.11) 0 1.4px, transparent 2px) 61px 43px / 211px 193px, radial-gradient(circle at 12% 84%, rgba(255,255,255,.09) 0 0.8px, transparent 1.4px) 17px 71px / 167px 149px,
        radial-gradient(760px 400px at 50% 115%, rgba(231, 205, 150, 0.22), transparent 70%),
        linear-gradient(180deg, #0d2119 0%, #133326 55%, #0f261c 100%);
}
#promozioni h2, #chi-siamo h2, #contatti h2 { color: var(--ink-inverse); }
#promozioni p, #chi-siamo p, #contatti p,
#promozioni .promo-golden-text, #promozioni .promo-titolo { color: rgba(251, 246, 234, 0.88); }
#promozioni strong { color: var(--gold-light); }
#promozioni a:not(.promo-cta-button), #chi-siamo a, #contatti a { color: var(--gold-light); }
#chi-siamo p:first-of-type::first-letter { color: var(--gold-light); }
#promozioni > .container, #chi-siamo > .container, #contatti > .container { position: relative; z-index: 2; }

/* Palline di Natale appese negli angoli */
#chi-siamo::before, #contatti::before, #chi-siamo::after {
    content: "";
    position: absolute;
    top: 0;
    width: clamp(120px, 15vw, 190px);
    aspect-ratio: 180 / 140;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 140'%3E%3Cline x1='30' y1='0' x2='30' y2='70' stroke='rgba(231,206,150,.55)' stroke-width='1.2'/%3E%3Crect x='24.9' y='70' width='10.2' height='7' rx='1.5' fill='%23c99a45'/%3E%3Ccircle cx='30' cy='92.0' r='16' fill='%23b3122a'/%3E%3Ccircle cx='24.4' cy='86.4' r='4.5' fill='%23ff8a96' opacity='.55'/%3E%3Cpath d='M14 92.0Q30 97.6 46 92.0' stroke='rgba(255,255,255,.25)' stroke-width='1.2' fill='none'/%3E%3Cline x1='78' y1='0' x2='78' y2='38' stroke='rgba(231,206,150,.55)' stroke-width='1.2'/%3E%3Crect x='74.2' y='38' width='7.7' height='7' rx='1.5' fill='%23c99a45'/%3E%3Ccircle cx='78' cy='56.0' r='12' fill='%23c99a45'/%3E%3Ccircle cx='73.8' cy='51.8' r='3.4' fill='%23fff0c8' opacity='.55'/%3E%3Cpath d='M66 56.0Q78 60.2 90 56.0' stroke='rgba(255,255,255,.25)' stroke-width='1.2' fill='none'/%3E%3Cline x1='118' y1='0' x2='118' y2='96' stroke='rgba(231,206,150,.55)' stroke-width='1.2'/%3E%3Crect x='113.5' y='96' width='9.0' height='7' rx='1.5' fill='%23c99a45'/%3E%3Ccircle cx='118' cy='116.0' r='14' fill='%231f5a43'/%3E%3Ccircle cx='113.1' cy='111.1' r='3.9' fill='%239fe0c2' opacity='.55'/%3E%3Cpath d='M104 116.0Q118 120.9 132 116.0' stroke='rgba(255,255,255,.25)' stroke-width='1.2' fill='none'/%3E%3Cline x1='158' y1='0' x2='158' y2='52' stroke='rgba(231,206,150,.55)' stroke-width='1.2'/%3E%3Crect x='154.8' y='52' width='6.4' height='7' rx='1.5' fill='%23c99a45'/%3E%3Ccircle cx='158' cy='68.0' r='10' fill='%23b3122a'/%3E%3Ccircle cx='154.5' cy='64.5' r='2.8' fill='%23ff8a96' opacity='.55'/%3E%3Cpath d='M148 68.0Q158 71.5 168 68.0' stroke='rgba(255,255,255,.25)' stroke-width='1.2' fill='none'/%3E%3C/svg%3E") no-repeat top left / contain;
    pointer-events: none;
    z-index: 1;
    transform-origin: top center;
    animation: dondola 7s ease-in-out infinite;
}
#chi-siamo::before, #contatti::before { left: 2%; }
#chi-siamo::after { right: 2%; width: clamp(100px, 12vw, 150px); animation-delay: -3s; scale: -1 1; }
@keyframes dondola {
    0%, 100% { rotate: -1.5deg; }
    50% { rotate: 1.5deg; }
}

/* Fiocchi di neve che scendono lentamente nella sezione Promozioni, dietro ai contenuti */
#promozioni::before, #promozioni::after, #promozioni > .container::before {
    content: "";
    position: absolute;
    top: -60px;
    width: 26px;
    aspect-ratio: 1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 50L50.0 8.0 M50.0 28.0L42.9 20.9 M50.0 28.0L57.1 20.9 M50.0 18.0L45.1 13.1 M50.0 18.0L54.9 13.1 M50 50L86.4 29.0 M69.1 39.0L71.6 29.3 M69.1 39.0L78.7 41.6 M77.7 34.0L79.5 27.2 M77.7 34.0L84.5 35.8 M50 50L86.4 71.0 M69.1 61.0L78.7 58.4 M69.1 61.0L71.6 70.7 M77.7 66.0L84.5 64.2 M77.7 66.0L79.5 72.8 M50 50L50.0 92.0 M50.0 72.0L57.1 79.1 M50.0 72.0L42.9 79.1 M50.0 82.0L54.9 86.9 M50.0 82.0L45.1 86.9 M50 50L13.6 71.0 M30.9 61.0L28.4 70.7 M30.9 61.0L21.3 58.4 M22.3 66.0L20.5 72.8 M22.3 66.0L15.5 64.2 M50 50L13.6 29.0 M30.9 39.0L21.3 41.6 M30.9 39.0L28.4 29.3 M22.3 34.0L15.5 35.8 M22.3 34.0L20.5 27.2' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' fill='none'/%3E%3Ccircle cx='50' cy='50' r='4' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center / contain;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
}
#promozioni::before { left: 8%;  animation: neve-cade 22s linear infinite; animation-delay: -5s; z-index: 1; }
#promozioni::after { left: 87%; width: 20px; animation: neve-cade 27s linear infinite; animation-delay: -15s; z-index: 1; }
#promozioni > .container::before { left: 74%; width: 16px; animation: neve-cade 24s linear infinite; animation-delay: -10s; z-index: -1; }
@keyframes neve-cade {
    0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    6%   { opacity: .75; }
    25%  { transform: translate(22px, 340px) rotate(60deg); }
    50%  { transform: translate(-14px, 680px) rotate(120deg); }
    75%  { transform: translate(18px, 1020px) rotate(180deg); }
    92%  { opacity: .75; }
    100% { transform: translate(-6px, 1380px) rotate(240deg); opacity: 0; }
}

/* Pulsante sulle sezioni scure: oro */
#promozioni .promo-cta-button {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #1d1405;
    box-shadow: 0 10px 30px rgba(185, 138, 60, 0.32);
}
#promozioni .promo-cta-button:hover {
    background: linear-gradient(135deg, #f1dcab, #c69949);
    color: #1d1405;
    box-shadow: 0 0 0 4px rgba(231, 205, 150, 0.2), 0 16px 40px rgba(185, 138, 60, 0.45);
}
#promozioni .promo-locandina-img {
    box-shadow: 0 0 0 1px rgba(231, 205, 150, 0.25), 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 80px rgba(231, 205, 150, 0.14);
}

/* --- Pulsanti principali --- */
.promo-cta-button { background: var(--ink); }
.promo-cta-button:hover { background: var(--rosso); }

/* --- Sezioni chiare: alternanza bianco neve / panna --- */
#news, #carta-oro, #resi-cambi, #negozi { background: var(--paper-alt); }
#klarna, #riparazioni, #quotazioni, #lavora-con-noi, #collezioni { background: var(--surface); }

/* Card: filetto rosso → oro → verde e bagliore dorato al passaggio */
.servizio-box::before { background: linear-gradient(90deg, var(--rosso), var(--gold), var(--abete)); }
.servizio-box:hover,
.bacheca-card:hover,
.simulatore-valore-box:hover {
    box-shadow: 0 18px 45px rgba(21, 36, 29, 0.13), 0 0 0 1px rgba(185, 138, 60, 0.25), 0 0 40px rgba(185, 138, 60, 0.1);
}
.news-box { border-left-color: var(--abete); }
.region-btn.active,
.simulatore-tab.active { background: var(--abete); border-color: var(--abete); }
.store-location.store-highlight { background: var(--gold-bg); border-color: var(--gold); }
.quotazione-live { background: linear-gradient(135deg, #f6eedb, #fffdf7); border-color: rgba(185, 138, 60, 0.3); }
.cartaoro-promo strong { color: var(--rosso); }

/* --- Menu a scomparsa: notte di Natale --- */
@media (max-width: 1339px) {
    header nav {
        background:
            radial-gradient(600px 400px at 50% 110%, rgba(231, 205, 150, 0.2), transparent 70%),
            rgba(13, 33, 25, 0.98);
    }
}

/* --- Footer --- */
footer { background: linear-gradient(180deg, #0f261c, #08150f); }
footer a { color: var(--gold-light); }

/* --- Cookie --- */
.cookie-switch input:checked + .cookie-slider { background: var(--abete); }
.cookie-btn-primary:hover { background: var(--rosso); }

/* Chi preferisce meno animazioni: niente neve in caduta né palline che dondolano */
@media (prefers-reduced-motion: reduce) {
    #promozioni::before, #promozioni::after, #promozioni > .container::before { animation: none; opacity: 0; }
    #chi-siamo::before, #contatti::before, #chi-siamo::after { animation: none; }
}
