/* ==========================================================================
   Importazione Font (Oswald per Titoli, Montserrat per Body)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Oswald:wght@400;600;700&display=swap');
:root {
  font-size: 16px;
  --main: #e30613;
  --main-hover: #b70b15;
  --second: #494442;
  --font-body: "Montserrat", sans-serif;
  --font-headings: "Oswald", sans-serif;
}
body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Applichiamo Oswald a tutti i titoli */
h1, h2, h3, h4, h5, h6, .display-4, .display-5, .display-6 {
  font-family: var(--font-headings);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   HEADER FISSO E ANIMATO (is-fixed)
   ========================================================================== */
#site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

/* Transizione morbida per i padding della navbar */
#site-header .navbar {
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

/* Animazione del logo */
#site-header .navbar-brand svg {
    transition: transform 0.3s ease;
    transform-origin: left center;
}

/* COSA SUCCEDE QUANDO IL JS AGGIUNGE LA CLASSE .is-fixed */
#site-header.is-fixed .navbar {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#site-header.is-fixed .navbar-brand svg {
    transform: scale(0.85); /* Rimpicciolisce il logo del 15% */
}

/* ==========================================================================
   Hero Covers (Effetto Ventaglio)
   ========================================================================== */
.vero-hero-covers-container {
  position: relative;
  margin: 0 auto;
  min-height: 300px;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vero-cover {
  width: auto;
  border-radius: var(--bs-border-radius-lg);
  transition: transform 0.3s ease, z-index 0s;
}

/* --- MOBILE FIRST (Schermi Piccoli) --- */
.vero-cover-front {
  position: relative;
  z-index: 3;
  max-height: 260px; /* Rimpicciolita per mobile */
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
  border: 2px solid #fff;
}

.vero-cover-left {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  max-height: 220px; /* Più piccola della centrale */
  transform: translate(-50%, -50%) translateX(-28%) rotate(-12deg);
  opacity: 0.9;
  box-shadow: var(--bs-box-shadow);
}

.vero-cover-right {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  max-height: 200px; /* La più piccola */
  transform: translate(-50%, -50%) translateX(28%) rotate(15deg);
  opacity: 0.8;
  box-shadow: var(--bs-box-shadow);
}

.vero-cover-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* --- DESKTOP E TABLET --- */
@media (min-width: 992px) {
  .vero-hero-covers-container {
    min-height: 450px;
    max-width: 500px;
  }
  .vero-cover-front {
    max-height: 450px;
    border-width: 4px;
  }
  .vero-cover-left {
    max-height: 380px;
    transform: translate(-50%, -50%) translateX(-38%) rotate(-10deg);
  }
  .vero-cover-right {
    max-height: 350px;
    transform: translate(-50%, -50%) translateX(38%) rotate(12deg);
  }
  .vero-cover-badge {
    font-size: 1rem;
    margin-top: -5px;
  }
}
/* ==========================================================================
   Sezione "L'Universo VERO"
   ========================================================================== */
.vero-universe-intro {
  max-width: 800px;
}
.vero-universe-subtitle {
  color: #e30613;
  font-size: 0.85rem;
  letter-spacing: 2px;
}
.vero-universe-title {
  color: var(--second);
}
.vero-brand-dot {
  color: #e30613;
}
.vero-universe-card {
  background-color: #ffffff;
  border: none;
  border-radius: var(--bs-border-radius-xl);
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, .06) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vero-universe-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .12) !important;
}
.vero-card-title-lg {
  font-size: 1.25rem;
}
.vero-card-title-sm {
  font-size: 0.9rem;
}
.vero-card-desc-sm {
  font-size: 0.75rem;
}
.vero-masthead-sm {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.5rem;
    gap: 6px;
}

/* Scritta VERO in corsivo rosso come da brand */
.vero-masthead-brand {
    font-family: var(--font-headings);
    font-size: 2.2rem;
    font-weight: 700;
    font-style: italic;
    color: var(--main);
    letter-spacing: -1px;
    line-height: 1;
}

/* Badge del Sub-Brand (TV, Cucina, ecc.) */
.vero-masthead-sub {
    font-family: var(--font-headings);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    color: #ffffff;
    line-height: 1;
    transform: translateY(-4px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Colori Tematici per ogni rivista */
.sub-tv { background-color: #f1c40f; color: #000000; }
.sub-cucina { background-color: #d35400; }
.sub-salute { background-color: #27ae60; }
.sub-astri { background-color: #8e44ad; }
/* ==========================================================================
   Sezione "Vantaggi" (Design Numeri)
   ========================================================================== */
.vero-benefits-section {
    background-color: var(--main);
    color: #ffffff;
    overflow: hidden;
}

.vero-benefit-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

.vero-benefit-number {
    font-family: var(--font-headings);
    font-size: 6.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    line-height: 0.7;
    margin-bottom: -15px;
    user-select: none;
}
/* ==========================================================================
   ANIMAZIONI ALLO SCROLL
   ========================================================================== */
.vero-animate-up {
    opacity: 0;
    transform: translateY(40px); /* Sposta l'elemento in basso di 40px */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* Animazione morbida di 0.8 secondi */
}

/* Questa classe viene aggiunta da JavaScript quando l'utente arriva sulla sezione */
.vero-animate-up.is-visible {
    opacity: 1;
    transform: translateY(0); /* Riporta l'elemento alla posizione originale */
}
/* ==========================================================================
   Separazione Sezioni (Ombra tra Universo e Abbonamenti)
   ========================================================================== */
.vero-section-overlap {
  position: relative;
  z-index: 10;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}
.vero-pricing-section {
  background-color: #f8f9fa;
  position: relative;
  z-index: 1;
}
/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.vero-faq-accordion .accordion-item {
  border: 1px solid #eaeaea;
  border-radius: var(--bs-border-radius-lg) !important;
  margin-bottom: 1rem;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.vero-faq-accordion .accordion-button {
  font-weight: 700;
  color: var(--second);
  background-color: #fff;
  padding: 1.25rem 1.5rem;
  box-shadow: none !important;
}
.vero-faq-accordion .accordion-button:not(.collapsed) {
  color: #e30613;
  background-color: #fcfcfc;
}
.vero-faq-accordion .accordion-body {
  background-color: #fcfcfc;
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER PREMIUM
   ========================================================================== */
.vero-footer {
    background-color: #111111; /* Nero molto profondo, quasi assoluto */
    color: #ffffff;
    font-family: var(--font-body);
    border-top: 5px solid var(--main); /* Il baffo "Rosso Vero" in cima */
}

/* Stile dei link testuali */
.vero-footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    margin: 0 12px;
}

.vero-footer-links a:hover {
    color: var(--main); /* Diventano rossi al passaggio del mouse */
}

/* Linea di separazione scura */
.vero-border-dark {
    border-color: #222222 !important;
}

/* Icone Social */
.vero-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: #222222;
    color: #ffffff;
    border-radius: 50%;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.vero-social-icon:hover {
    background-color: var(--main);
    color: #ffffff;
    transform: translateY(-3px); /* Effetto sollevamento */
}

/* Utilities */
.vero-footer .text-muted {
    color: #777777 !important;
}

.hover-main:hover {
    color: var(--main) !important;
}

/* ==========================================================================
   Plugin Override: Stati Attivi e Colori
   ========================================================================== */
.wpsub-pricing-maintitle, .wpsub-price {
  color: var(--main);
}
.wpsub-card-active {
  border-color: var(--main);
}
.wpsub-active-badge {
  background-color: var(--main);
  color: #fff;
}
/* ==========================================================================
   Plugin Override: Bottoni
   ========================================================================== */
.btn.btn-primary {
  background-color: var(--main);
  border-color: var(--main);
}
.btn.btn-primary:hover {
  background-color: var(--main-hover);
}
.btn.btn-primary-white {
  background-color: #fff;
  color: var(--main);
}
.btn.btn-primary-white:hover {
  background-color: var(--main-hover);
  color: #fff;
}
.btn-outline-primary {
  border-color: #fff;
}
.btn-outline-primary:hover {
  background-color: #fff;
  color: var(--main) !important;
  border-color: #fff;
}
.btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active {
  background-color: transparent;
  border-color: var(--main);
  color: var(--main);
}
#wpsub-login-form input[type="submit"] {
  background-color: var(--main);
}
#wpsub-login-form input[type="submit"]:hover, #wpsub-register-form button[type="submit"]:hover {
  background-color: var(--main-hover);
}
.wpsub-toggle-pwd, .wpsub-auth-footer a {
  color: var(--main);
}
.wpsub-toggle-pwd:hover, .wpsub-auth-footer a:hover {
  color: var(--main-hover);
}
/* ==========================================================================
   HEADER RESPONSIVE FIX
   ========================================================================== */
@media (max-width: 768px) {
    /* Forziamo la barra a non andare mai a capo */
    #site-header .container {
        flex-wrap: nowrap !important;
    }
    
    /* Rimpiccioliamo il logo per far spazio ai due bottoni */
    #site-header .navbar-brand svg {
        max-width: 110px; 
        height: auto;
    }
    
    /* Rimpiccioliamo font e padding dei bottoni su mobile */
    .vero-header-btn {
        font-size: 0.75rem !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}