﻿/* =========================================================
   PERLAPLAY – CSS GENERALE + OVERRIDE NATALIZIO (SCOPED)
   NOTE:
   1) Fixato bug: mancava ';' su --base-c2
   2) Override Natale messo IN FONDO e con !important SOLO dove serve
   3) Stile natalizio applicato SOLO dentro .promo-natale-2025
   ========================================================= */

/* colori Perla */
.landing_skin,
.template__promo {
  --base-c0: #b2c8df !important;
  --base-c1: #121c2f !important;
  --base-c2: #121c2f !important; /* FIX: mancava ; */
  --base-c3: #f0f0f0 !important;
  --base-c4: #f1f3f7 !important;
  --base-c5: #22334b !important;
  --base-c6: #ececec !important;
  --base-c7: #dae9f9 !important;
  --base-c8: #fafafa !important;

  --c-giallo: #f1cf00;
  --contrasto-c1: #ffffff;
  --contrasto-c2: #6b7395;
  --contrasto-c3: #546d91;
  --c-rosso: #d32f2f;
  --c-verde: #139e4a;

  --colore-speciale: #40c8f4 !important;
  --speciale-c1: #e8058e !important;
  --evidenza-c1: #e8058e !important;
  --speciale-c2: #e8058e !important;

  --gradiente-c1: linear-gradient(0deg, #bf3f3f, #bf3f3f), #e8058e;
  --gradiente-c2: linear-gradient(170deg, #113a6d 0%, #062347 90%);

  --cevi: #fff !important;

  --font-landing: 'Poppins', sans-serif;
  --padding-righe: 48px;
  --padding-laterale: 24px;
  --margine-elementi: calc(var(--padding-righe) / 2);
  --raggio: 12px;
  --larghezza-pagina: 1440px;
}

/* tipografia landing */
.landing_skin span,
.landing_skin a,
.landing_skin p,
.landing_skin h1,
.landing_skin h2,
.landing_skin h3,
.landing_skin h4,
.landing_skin h5,
.landing_skin h6 {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.25;
  font-family: var(--font-landing);
}

.landing_skin p { font-size: 12px; }
.landing_skin h1 { font-size: 48px !important; }
.landing_skin h2 { font-size: 42px; }
.landing_skin h3 { font-size: 36px; }
.landing_skin h4 { font-size: 30px; }

.landing_skin .swiper-pagination {
  margin-top: calc(var(--margine-elementi) * 2);
  position: relative;
  margin-bottom: 0;
  padding: 0;
}

.landing_skin img {
  max-width: 100%;
  height: auto;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--evidenza-c1) !important;
  filter: drop-shadow(0px 3px 4px rgb(0 0 0 / 90%));
  opacity: 0.9;
}

span.swiper-pagination-bullet.swiper-pagination-bullet-active { background: var(--evidenza-c1); }
span.swiper-pagination-bullet { background: var(--contrasto-c1); }

.contenitoreLanding {
  max-width: var(--larghezza-pagina);
  margin: 0 auto;
}

@media all and (max-width: 1600px) {
  .landing_skin { --larghezza-pagina: 1024px; }
}

@media all and (max-width: 1000px) {
  .contenitoreLanding {
    padding-left: calc(var(--padding-laterale) / 2);
    padding-right: calc(var(--padding-laterale) / 2);
  }
}

:root {
  --font-landing: "Montserrat", sans-serif;
  --padding-righe: 48px;
  --padding-laterale: 24px;
  --margine-elementi: calc(var(--padding-righe) / 2);
  --raggio: 12px;
  --larghezza-pagina: 1440px;
  --colore-speciale: var(--speciale-c1) !important;
}

/* elementi bootstrap compatibilita */
.template__promo .col-md-12 {
  position: relative;
  width: 100%;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
}

.template__promo .container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  max-width: 1140px;
}

.template__promo .container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

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

.template__promo .row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.template__promo .img-fluid {
  max-width: 100%;
  height: auto;
  width: 100%;
}

.template__promo {
  margin: 0;
  font-family: "segoe ui", sans-serif;
  font-size: 14px;
  line-height: 1.25;
}

.template__promo p {
  font-size: 14px;
  line-height: 1.25;
}

@media all and (max-width: 992px) {
  .template__promo .container { max-width: 720px; }

  div#cg-promo-submenu {
    overflow: auto;
    justify-content: flex-start;
    font-size: 14px !important;
    padding-left: 12px;
    padding-right: 12px;
  }

  div#cg-promo-submenu a {
    font-size: inherit;
    white-space: nowrap;
  }
}

@media all and (max-width: 576px) {
  .template__promo .container { max-width: 100%; }
}

/* elementi generici */
:root {
  --sfondo: var(--base-c2);
  --titolo-accordion: var(--base-c0);
  --sfondo__promo: var(--base-c3);
  --colore-speciale: var(--evidenza-c1);
}

.template__promo {
  background: var(--base-c1);
  color: var(--contrasto-c1);
  padding-top: 24px;
  padding-bottom: 24px;
}

/* elementi testo */
.template__promo img.img-fluid.immagine-promo {
  border-radius: 24px;
  margin-bottom: 24px;
}

.template__promo h1.titolo__promo {
  color: var(--colore-speciale);
  width: 100%;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 24px;
  margin-bottom: 4px;
  line-height: 1.25;
}

.template__promo h4.sottotilo__promo {
  font-size: 16px;
  text-transform: uppercase;
  font-style: italic;
  line-height: 1.25;
  margin: 0 0 4px 0;
}

.template__promo .blocco__titolo__promo {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--colore-speciale);
  margin-bottom: 8px;
}

/* promo accordion */
.template__promo .promo__acordion {
  cursor: pointer;
  padding: 5px 15px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 16px;
  transition: 0.4s;
  font-weight: 700;
}

.template__promo .promo__active,
.template__promo .promo__acordion:hover {
  opacity: 0.9;
}

.template__promo .promo__accordion__panel {
  padding: 16px 24px;
  display: none;
  overflow: hidden;
  transition: all 500ms ease-in-out;
  background: var(--base-c1);
}

.template__promo .titolo__promo__acordion {
  background: var(--base-c0);
  color: var(--colore-speciale)!important;
  font-style: italic;
  position: relative;
}

.template__promo .blocco__accordion {
  width: 100%;
  margin-bottom: 16px;
}

/* tabelle */
.template__promo .tabella__responsive {
  max-width: 100%;
  width: 100%;
  overflow-x: auto;
  margin: 16px auto;
}

.template__promo .tabella__responsive table {
  width: 100% !important;
  margin: 0 auto;
}

.tabella__responsive thead tr th {
  background: var(--colore-speciale);
  padding: 4px 15px;
  text-align: center;
  text-transform: uppercase;
}

.tabella__responsive tbody tr td {
  background: transparent;
  padding: 4px 15px;
  text-align: center;
}

.tabella__responsive tbody tr:nth-of-type(even) td {
  background: var(--base-c5);
}

/* bottoni */
.template__promo .gruppo__bottoni {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-gap: 16px;
}

.template__promo a.bottone__promo {
  padding: 8px 24px;
  background: var(--colore-speciale);
  color: var(--cevi);
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: unset;
}

.template__promo a.bottone__promo:hover {
  background: #e8058e;
  text-decoration: unset;
  opacity: 0.9;
}

.template__promo a.bottone__promo.bottone__colore2 {
  background: var(--base-c5);
}

.row.riga__condizioni { margin-top: 24px; }

/* FIX PAGINA PROMO */
div#cg-promo-submenu .bottone-filtro { display: flex !important; order: 1; }

div#cg-promo-submenu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  gap: 1.5rem;
  text-decoration: unset !important;
  background: var(--base-c2);
  margin-bottom: 1rem;
}

div#cg-promo-submenu a {
  text-decoration: unset;
  text-transform: uppercase;
  color: var(--contrasto-c1);
  padding: 8px 0;
  font-size: 1.25rem;
}

.output_html {
  max-width: 100%;
  display: flex;
  padding: 4%;
  background: var(--contrasto-c2);
  position: relative;
  overflow: hidden;
}

.output_html * { z-index: 2; }

.template__promo .container {
  background: var(--base-c2);
  border-radius: var(--raggio);
  padding-top: calc(var(--padding-laterale) / 2);
  padding-bottom: calc(var(--padding-laterale) / 2);
  margin-top: 24px !important;
}

.template__promo .blocco__accordion {
  border-radius: calc(var(--raggio) / 2);
  overflow: hidden;
}

.riga__bottoni { margin-top: 24px !important; }

.promo__accordion__panel p {
  line-height: 1.25;
  margin-bottom: 4px;
}

/* =========================================================
   NATAL THEME – OVERRIDE (SCOPED) – DEVE STARE IN FONDO
   ========================================================= */

/* Sfondo generale promo */
.promo-natale-2025 .template__promo {
  background: radial-gradient(circle at top, #1b1b1b 0%, #0e0e0e 60%) !important;
  position: relative;
  overflow: hidden;
}

/* Overlay neve */
.promo-natale-2025 .template__promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/external_cms/PERLAPLAY/img/pattern/snow_overlay.png");
  background-repeat: repeat;
  background-size: 420px auto;
  opacity: 0.14;
  pointer-events: none;
  z-index: 1;
}

/* Contenuto sopra overlay */
.promo-natale-2025 .template__promo * {
  position: relative;
  z-index: 2;
}

/* Banner glow */
.promo-natale-2025 .immagine-promo {
  box-shadow: 0 0 30px rgba(255,255,255,0.14) !important;
  border-radius: 24px;
}

/* Titolo + sottotitolo */
.promo-natale-2025 .titolo__promo {
  color: #c62828 !important;
  text-shadow: 0 0 12px rgba(198,40,40,0.45) !important;
}

.promo-natale-2025 .sottotilo__promo {
  color: #f5f5f5 !important;
}

/* CTA natalizia */
.promo-natale-2025 a.bottone__promo {
  background: linear-gradient(135deg, #c62828, #b71c1c) !important;
  border: 1px solid #ffd700 !important;
  box-shadow: 0 4px 15px rgba(255,215,0,0.35) !important;
  color: #fff !important;
}

.promo-natale-2025 a.bottone__promo:hover {
  background: linear-gradient(135deg, #ffd700, #fbc02d) !important;
  color: #000 !important;
  opacity: 1 !important;
}

/* Accordion */
.promo-natale-2025 .promo__acordion {
  border: 1px solid rgba(255,215,0,0.45) !important;
  background: rgba(0,0,0,0.55) !important;
}

/* Header accordion (titolo) */
.promo-natale-2025 .titolo__promo__acordion {
  background: rgba(178,200,223,0.9) !important; /* riprende base-c0 */
  color: #141d2e !important;
}

/* Tabelle: header in oro */
.promo-natale-2025 .tabella__responsive thead tr th,
.promo-natale-2025 table thead th {
  color: #ffd700 !important;
}

/* Righe alternate più “warm” */
.promo-natale-2025 .tabella__responsive tbody tr:nth-of-type(even) td {
  background: rgba(255,215,0,0.08) !important;
}
