/* ===========================================================
   Terrazza Marconi - veste natalizia delle landing "Regalo di Natale"
   e "Il regalo che arriva dopo Natale" (dicembre 2026).
   Si applica solo alle pagine con <body class="tm-natale"> e va caricato
   DOPO tm-pacchetto.css e tm-landing.css. Verde abete, rosso e oro,
   luci sfocate, neve leggera, nastro e fiocco da pacco regalo.
   =========================================================== */
body.tm-natale {
    --xm-pine: #0E2F28;
    --xm-pine-2: #154438;
    --xm-pine-deep: #091F1A;
    --xm-red: #A3202B;
    --xm-red-2: #7E1620;
    --xm-gold: #D9BC8C;
    --xm-gold-2: #B8935A;
    --xm-cream: #FFFAF4;
    /* le variabili della landing: il blu lascia il posto a verde e rosso */
    --ld-navy: #0E2F28;
    --ld-navy-2: #A3202B;
    --ld-gold: #D9BC8C;
}

/* ---------- pulsanti ---------- */
.tm-natale .tm-btn-primary,
.tm-natale .tm-ld-form .tm-btn-primary {
    background: var(--xm-red);
    color: #fff;
    box-shadow: 0 10px 24px rgba(126, 22, 32, .32);
}
.tm-natale .tm-btn-primary:hover,
.tm-natale .tm-ld-form .tm-btn-primary:hover {
    background: var(--xm-red-2);
    color: #fff;
}

/* ---------- hero: pannello verde abete con luci e neve ---------- */
.tm-natale .tm-pkg-hero {
    background: var(--xm-pine-deep);
}
.tm-natale .tm-pkg-hero-panel {
    color: #fff;
    background:
        radial-gradient(circle at 86% 16%, rgba(217, 188, 140, .30) 0, rgba(217, 188, 140, 0) 90px),
        radial-gradient(circle at 70% 30%, rgba(217, 188, 140, .16) 0, rgba(217, 188, 140, 0) 60px),
        radial-gradient(circle at 94% 46%, rgba(163, 32, 43, .30) 0, rgba(163, 32, 43, 0) 110px),
        radial-gradient(circle at 62% 88%, rgba(217, 188, 140, .18) 0, rgba(217, 188, 140, 0) 120px),
        radial-gradient(circle at 96% 92%, rgba(217, 188, 140, .22) 0, rgba(217, 188, 140, 0) 70px),
        radial-gradient(circle at 30% 8%, rgba(255, 255, 255, .08) 0, rgba(255, 255, 255, 0) 80px),
        linear-gradient(155deg, var(--xm-pine-2) 0%, var(--xm-pine) 48%, var(--xm-pine-deep) 100%);
    overflow: visible;
}
.tm-natale .tm-pkg-hero-panel > *:not(.tm-xmas-snow):not(.tm-xmas-ribbon):not(.tm-pkg-watermark):not(.tm-pkg-stamp) {
    position: relative;
    z-index: 2;
}
.tm-natale .tm-pkg-hero-panel .tm-pkg-watermark {
    filter: brightness(0) invert(1);
    opacity: .06;
}
.tm-natale .tm-pkg-eyebrow {
    color: var(--xm-gold);
}
.tm-natale .tm-pkg-eyebrow i {
    font-size: 15px;
}
.tm-natale .tm-pkg-title {
    color: #fff;
}
.tm-natale .tm-pkg-claim {
    color: rgba(255, 255, 255, .84);
}
.tm-natale .tm-pkg-meta,
.tm-natale .tm-pkg-meta-item + .tm-pkg-meta-item {
    border-color: rgba(255, 255, 255, .18);
}
.tm-natale .tm-pkg-meta-item small {
    color: var(--xm-gold);
}
.tm-natale .tm-pkg-meta-item strong {
    color: #fff;
}
.tm-natale .tm-pkg-hero .tm-btn-ghost {
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
}
.tm-natale .tm-pkg-hero .tm-btn-ghost:hover {
    border-color: var(--xm-gold);
    color: var(--xm-gold);
}
.tm-natale .tm-pkg-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(9, 31, 26, .38) 0%, rgba(9, 31, 26, 0) 40%);
    pointer-events: none;
}

/* nastro lungo la cucitura tra foto e pannello, con il fiocco in alto */
.tm-xmas-ribbon {
    position: absolute;
    left: -15px;
    top: 0;
    bottom: 0;
    width: 30px;
    z-index: 4;
    background: linear-gradient(90deg, var(--xm-red-2) 0%, var(--xm-red) 30%, #BF3340 50%, var(--xm-red) 70%, var(--xm-red-2) 100%);
    box-shadow: 0 0 22px rgba(0, 0, 0, .35);
    pointer-events: none;
}
.tm-xmas-ribbon::before,
.tm-xmas-ribbon::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--xm-gold);
    opacity: .85;
}
.tm-xmas-ribbon::before { left: 4px; }
.tm-xmas-ribbon::after { right: 4px; }
.tm-xmas-bow {
    position: absolute;
    left: 50%;
    top: 30%;
    width: 150px;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35));
}
/* il timbro diventa il sigillo del pacco */
.tm-natale .tm-pkg-stamp {
    background: var(--xm-red);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .4), 0 0 0 4px var(--xm-gold);
}
.tm-natale .tm-pkg-stamp-price strong {
    color: #fff;
}

/* dicitura sulle immagini elaborate con l'intelligenza artificiale */
.tm-ai-note {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 3;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(9, 31, 26, .66);
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: .06em;
    pointer-events: none;
}
.tm-natale .tm-pkg-gallery figure {
    position: relative;
}
.tm-natale .tm-pkg-gallery .tm-ai-note {
    left: 12px;
    bottom: 10px;
}
@media (max-width: 991px) {
    /* sopra il fiocco, che su smartphone sta in basso a sinistra della foto */
    .tm-pkg-hero-media .tm-ai-note {
        bottom: 48px;
    }
}

/* ---------- neve ---------- */
.tm-xmas-snow {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}
.tm-xmas-snow i {
    position: absolute;
    top: -14px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    opacity: .7;
    animation: tm-xmas-fall 13s linear infinite;
}
.tm-xmas-snow i:nth-child(3n) { width: 4px; height: 4px; opacity: .55; }
.tm-xmas-snow i:nth-child(4n) { width: 10px; height: 10px; opacity: .32; filter: blur(1.5px); }
.tm-xmas-snow i:nth-child(1) { left: 4%; animation-duration: 15s; animation-delay: -2s; }
.tm-xmas-snow i:nth-child(2) { left: 11%; animation-duration: 11s; animation-delay: -7s; }
.tm-xmas-snow i:nth-child(3) { left: 18%; animation-duration: 17s; animation-delay: -4s; }
.tm-xmas-snow i:nth-child(4) { left: 25%; animation-duration: 13s; animation-delay: -11s; }
.tm-xmas-snow i:nth-child(5) { left: 32%; animation-duration: 19s; animation-delay: -1s; }
.tm-xmas-snow i:nth-child(6) { left: 39%; animation-duration: 12s; animation-delay: -9s; }
.tm-xmas-snow i:nth-child(7) { left: 46%; animation-duration: 16s; animation-delay: -5s; }
.tm-xmas-snow i:nth-child(8) { left: 53%; animation-duration: 14s; animation-delay: -12s; }
.tm-xmas-snow i:nth-child(9) { left: 60%; animation-duration: 18s; animation-delay: -3s; }
.tm-xmas-snow i:nth-child(10) { left: 67%; animation-duration: 11s; animation-delay: -8s; }
.tm-xmas-snow i:nth-child(11) { left: 74%; animation-duration: 15s; animation-delay: -6s; }
.tm-xmas-snow i:nth-child(12) { left: 81%; animation-duration: 13s; animation-delay: -10s; }
.tm-xmas-snow i:nth-child(13) { left: 88%; animation-duration: 17s; animation-delay: -2.5s; }
.tm-xmas-snow i:nth-child(14) { left: 95%; animation-duration: 12s; animation-delay: -6.5s; }
.tm-xmas-snow i:nth-child(15) { left: 8%; animation-duration: 20s; animation-delay: -14s; }
.tm-xmas-snow i:nth-child(16) { left: 57%; animation-duration: 21s; animation-delay: -16s; }
.tm-xmas-snow i:nth-child(17) { left: 71%; animation-duration: 16s; animation-delay: -13s; }
.tm-xmas-snow i:nth-child(18) { left: 35%; animation-duration: 22s; animation-delay: -18s; }
@keyframes tm-xmas-fall {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(22px, 55vh, 0); }
    100% { transform: translate3d(-8px, 110vh, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .tm-xmas-snow i {
        animation: none;
        top: auto;
    }
    .tm-xmas-snow i:nth-child(odd) { top: 22%; }
    .tm-xmas-snow i:nth-child(even) { top: 68%; }
    .tm-xmas-snow i:nth-child(3n) { top: 44%; }
}

/* ---------- filo di luci ---------- */
.tm-xmas-lights {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 46px;
    z-index: 2;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='46' viewBox='0 0 240 46'%3E%3Cpath d='M0 6 Q60 34 120 6 T240 6' fill='none' stroke='%231d4f43' stroke-width='1.6'/%3E%3Cg%3E%3Ccircle cx='30' cy='24' r='11' fill='%23A3202B' opacity='.16'/%3E%3Cellipse cx='30' cy='24' rx='4.2' ry='6.4' fill='%23A3202B'/%3E%3Ccircle cx='60' cy='28' r='11' fill='%23D9BC8C' opacity='.3'/%3E%3Cellipse cx='60' cy='28' rx='4.2' ry='6.4' fill='%23CCAA5C'/%3E%3Ccircle cx='90' cy='24' r='11' fill='%23154438' opacity='.16'/%3E%3Cellipse cx='90' cy='24' rx='4.2' ry='6.4' fill='%231F5A4A'/%3E%3Ccircle cx='150' cy='24' r='11' fill='%23D9BC8C' opacity='.3'/%3E%3Cellipse cx='150' cy='24' rx='4.2' ry='6.4' fill='%23CCAA5C'/%3E%3Ccircle cx='180' cy='28' r='11' fill='%23A3202B' opacity='.16'/%3E%3Cellipse cx='180' cy='28' rx='4.2' ry='6.4' fill='%23A3202B'/%3E%3Ccircle cx='210' cy='24' r='11' fill='%23D9BC8C' opacity='.3'/%3E%3Cellipse cx='210' cy='24' rx='4.2' ry='6.4' fill='%23CCAA5C'/%3E%3C/g%3E%3Cg fill='%231d4f43'%3E%3Crect x='28' y='15' width='4' height='4'/%3E%3Crect x='58' y='19' width='4' height='4'/%3E%3Crect x='88' y='15' width='4' height='4'/%3E%3Crect x='148' y='15' width='4' height='4'/%3E%3Crect x='178' y='19' width='4' height='4'/%3E%3Crect x='208' y='15' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E") repeat-x center top;
}
/* su fondo scuro: filo dorato e lampadine chiare */
.tm-xmas-lights--scuro {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='46' viewBox='0 0 240 46'%3E%3Cpath d='M0 6 Q60 34 120 6 T240 6' fill='none' stroke='%23B8935A' stroke-width='1.4' opacity='.8'/%3E%3Cg%3E%3Ccircle cx='30' cy='24' r='13' fill='%23FFE9B8' opacity='.22'/%3E%3Cellipse cx='30' cy='24' rx='4.2' ry='6.4' fill='%23FFE9B8'/%3E%3Ccircle cx='60' cy='28' r='13' fill='%23E2545F' opacity='.3'/%3E%3Cellipse cx='60' cy='28' rx='4.2' ry='6.4' fill='%23D8414D'/%3E%3Ccircle cx='90' cy='24' r='13' fill='%23FFE9B8' opacity='.22'/%3E%3Cellipse cx='90' cy='24' rx='4.2' ry='6.4' fill='%23FFE9B8'/%3E%3Ccircle cx='150' cy='24' r='13' fill='%23D9BC8C' opacity='.3'/%3E%3Cellipse cx='150' cy='24' rx='4.2' ry='6.4' fill='%23D9BC8C'/%3E%3Ccircle cx='180' cy='28' r='13' fill='%23FFE9B8' opacity='.22'/%3E%3Cellipse cx='180' cy='28' rx='4.2' ry='6.4' fill='%23FFE9B8'/%3E%3Ccircle cx='210' cy='24' r='13' fill='%23E2545F' opacity='.3'/%3E%3Cellipse cx='210' cy='24' rx='4.2' ry='6.4' fill='%23D8414D'/%3E%3C/g%3E%3Cg fill='%23B8935A'%3E%3Crect x='28' y='15' width='4' height='4'/%3E%3Crect x='58' y='19' width='4' height='4'/%3E%3Crect x='88' y='15' width='4' height='4'/%3E%3Crect x='148' y='15' width='4' height='4'/%3E%3Crect x='178' y='19' width='4' height='4'/%3E%3Crect x='208' y='15' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- corpo della pagina ---------- */
.tm-natale .tm-pkg-body {
    position: relative;
    background: var(--xm-cream);
    padding-top: 130px;
}
.tm-natale .tm-pkg-h2 {
    display: flex;
    align-items: center;
    gap: 14px;
}
.tm-natale .tm-pkg-h2::before {
    content: "\2726";
    color: var(--xm-red);
    font-size: .6em;
    line-height: 1;
}
.tm-natale .tm-pkg-step-num {
    -webkit-text-stroke-color: var(--xm-red);
}
.tm-natale .tm-nat-sconto {
    overflow: hidden;
    background: #fff;
    border-color: #ead9c0;
    box-shadow: 0 14px 34px rgba(14, 47, 40, .08);
}
/* nastro d'angolo, come su un pacco */
.tm-natale .tm-nat-sconto::after {
    content: "";
    position: absolute;
    top: 18px;
    right: -46px;
    width: 150px;
    height: 22px;
    background: linear-gradient(180deg, #BF3340, var(--xm-red));
    border-top: 2px solid var(--xm-gold);
    border-bottom: 2px solid var(--xm-gold);
    transform: rotate(45deg);
}
.tm-natale .tm-nat-sconto--forte {
    background:
        radial-gradient(circle at 88% 82%, rgba(217, 188, 140, .22) 0, rgba(217, 188, 140, 0) 90px),
        linear-gradient(155deg, var(--xm-pine-2), var(--xm-pine-deep));
    border-color: var(--xm-pine);
}
.tm-natale .tm-nat-sconto small {
    color: var(--xm-red);
    padding-right: 54px;
}
.tm-natale .tm-nat-sconto--forte small,
.tm-natale .tm-nat-sconto--forte strong {
    color: var(--xm-gold);
}
.tm-natale .tm-nat-sconto:not(.tm-nat-sconto--forte) strong {
    color: var(--xm-pine);
}
.tm-natale .tm-nat-date small {
    color: var(--xm-red);
}
.tm-natale .tm-pkg-note {
    background: #fff;
    border: 1px solid #ead9c0;
    border-left: 4px solid var(--xm-red);
}
.tm-natale .tm-pkg-note h6 {
    color: var(--xm-pine);
}

/* scheda laterale: un biglietto regalo con il fiocco */
.tm-natale .tm-pkg-card {
    border-top: 5px solid var(--xm-red);
    overflow: visible;
}
.tm-natale .tm-pkg-card .tm-xmas-bow {
    top: -3px;
    width: 104px;
}
.tm-natale .tm-pkg-card-tag {
    margin-top: 18px;
    color: var(--xm-red);
}
.tm-natale .tm-pkg-card-price strong {
    color: var(--xm-red);
}
.tm-natale .tm-pkg-card-tel a {
    color: var(--xm-red);
}

/* ---------- sezione del modulo ---------- */
.tm-natale .tm-ld-formsec {
    background:
        radial-gradient(circle at 8% 22%, rgba(217, 188, 140, .22) 0, rgba(217, 188, 140, 0) 120px),
        radial-gradient(circle at 44% 86%, rgba(163, 32, 43, .30) 0, rgba(163, 32, 43, 0) 150px),
        radial-gradient(circle at 30% 50%, rgba(217, 188, 140, .10) 0, rgba(217, 188, 140, 0) 90px),
        linear-gradient(155deg, var(--xm-pine-2) 0%, var(--xm-pine) 50%, var(--xm-pine-deep) 100%);
    padding-top: 124px;
}
.tm-natale .tm-ld-formsec--natale::before {
    display: none;
}
.tm-natale .tm-ld-formsec .container {
    z-index: 3;
}
.tm-natale .tm-ld-form-card {
    border-top: 5px solid var(--xm-red);
}
.tm-natale .tm-ld-form input:focus,
.tm-natale .tm-ld-form textarea:focus,
.tm-natale .tm-ld-form .nice-select.open,
.tm-natale .tm-ld-form .nice-select:focus {
    border-color: var(--xm-pine-2);
    box-shadow: 0 0 0 3px rgba(21, 68, 56, .14);
}
.tm-natale .tm-ld-stato {
    border-color: var(--xm-red);
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    /* foto sopra e pannello sotto: il nastro corre in orizzontale sulla cucitura */
    .tm-xmas-ribbon {
        left: 0;
        right: 0;
        top: -11px;
        bottom: auto;
        width: auto;
        height: 22px;
        background: linear-gradient(180deg, var(--xm-red-2) 0%, var(--xm-red) 30%, #BF3340 50%, var(--xm-red) 70%, var(--xm-red-2) 100%);
    }
    .tm-xmas-ribbon::before,
    .tm-xmas-ribbon::after {
        left: 0;
        right: 0;
        top: auto;
        bottom: auto;
        width: auto;
        height: 2px;
    }
    .tm-xmas-ribbon::before { top: 3px; }
    .tm-xmas-ribbon::after { bottom: 3px; }
    .tm-xmas-ribbon .tm-xmas-bow {
        left: 76px;
        top: 50%;
        width: 96px;
    }
    .tm-natale .tm-pkg-body {
        padding-top: 100px;
    }
    .tm-natale .tm-pkg-card {
        position: relative;
        margin-top: 30px;
    }
}
@media print {
    .tm-xmas-snow, .tm-xmas-lights, .tm-xmas-ribbon { display: none; }
}
