/* ==========================================================
   GIOIA PECCATO — STYLE.CSS (Versione Premium 2025)
   Riscritto da zero, prestazioni massime
========================================================== */

/* ----------------------------------------------------------
   VARIABILI GLOBALI (Colori tema viola / lavanda)
---------------------------------------------------------- */
:root {
  --gp-bg-1: #2b0d3a;
  --gp-bg-2: #4a1c63;
  --gp-bg-3: #745094;
  --gp-bg-4: #bfa6eb;
  --gp-bg-5: #e9ddff;
  --gp-bg-6: #ffffff;
  
  --gp-text: #2b0d3a;
  --gp-violet: #3a1c57;
  --gp-violet-dark: #4a2872;

  --gp-lavender-light: #f7f4ff;
  --gp-lavender-mid: #f2edff;
  --gp-lavender-border: #d9c6ff;

  --shadow-soft: 0 4px 12px rgba(0,0,0,0.10);

  --font-main: "Georgia", serif;
  --font-display: "Playfair Display", serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--gp-text);
  background: linear-gradient(to bottom,
      var(--gp-bg-1) 0%,
      var(--gp-bg-2) 18%, 
      var(--gp-bg-3) 30%,
      var(--gp-bg-4) 60%,
      var(--gp-bg-5) 80%, 
      var(--gp-bg-6) 100%);
  min-height:fixed;
  min-height: 100vh;
}

/* =============== HEADER BASE =============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--gp-bg-1);
  border-bottom: none;
  padding: 12px 0;
}


.header-inner {
  margin: auto;
  padding-left: 12px;
  padding-right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* Logo */
.header-logo img {
  height: 55px;
  width: auto;
}

/* =============== NAV PANEL LATERALE =============== */
.nav {
  position: fixed;
  top: 0;
  right: -280px;   /* parte fuori */
  width: 250px;    /* larghezza fissa perfetta */
  height: 60vh;
  background: linear-gradient(to bottom,
      var(--gp-bg-1) 0%,
      var(--gp-bg-2) 60%, 
      var(--gp-bg-3) 100%);
  box-shadow: -4px 0 14px rgba(0,0,0,0.85);
  padding-top: 90px;
  padding-right: 0;
  transition: right .40s ease;
  z-index: 9998;
}

/* quando aperto */
.nav.open {
  right: 0;
}

/* link list */
.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 0 20px;
  margin: 0;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 18px;
  text-align: right;
  display: block;
  transition: color .2s ease;
}


.nav-links li a:hover {
  color: var(--gp-bg-3);
}

/* =============== HAMBURGER SEMPRE VISIBILE =============== */
.hamburger {
  display: flex !important;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 10000;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: .3s;
}

/* Animazione hamburger → X */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* =============== OVERLAY SFONDO =============== */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 9990;
}

.nav-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ----------------------------------------------------------
   HERO HOMEPAGE
---------------------------------------------------------- */
.hero {
  padding: 90px 20px;
  text-align: center;
  color: white;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  margin: 0;
}

.subtitle {
  margin-top: 10px;
  font-size: 20px;
  opacity: .92;
}

.hero-buttons {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Pulsanti Hero */
.btn-primary, .btn-secondary {
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: .25s;
}

.btn-primary {
  background: var(--gp-violet-dark);
  color: white;
}

.btn-primary:hover {
  background: #341b51;
}

.btn-secondary {
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
}

.btn-secondary:hover {
  background: white;
  color: var(--gp-violet-dark);
}

/* ----------------------------------------------------------
   COLLEZIONE DEI MANUALI (Grid auto-fit)
---------------------------------------------------------- */

.collezione-section {
  padding: 60px 20px;
  text-align: center;
}

.temi-pulsanti {
  margin: 25px auto 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Card Grid */
.collezione-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: auto;
}

/* Card */
.collezione-card {
  display: block;
  text-decoration: none;
  color: var(--gp-text);
  border-radius: 12px;
  overflow: hidden;
  background: var(--gp-lavender-light);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}

@media (hover: hover) {
  .collezione-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  }
}

.collezione-card img {
  width: 100%;
  display: block;
}

/* Box info */
.collezione-card .info-box {
  padding: 18px 16px;
  background: var(--gp-lavender-light);
  border-top: 1px solid var(--gp-lavender-border);
  text-align: center;
}

.collezione-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  padding: 10px;
  background: var(--gp-lavender-mid);
  border: 1px solid var(--gp-lavender-border);
  border-radius: 8px;
  text-align: center;
}

.collezione-card p {
  margin: 12px 0 0;
  font-size: 15px;
  opacity: .85;
  line-height: 1.45;
  text-align: center;
}

/* ----------------------------------------------------------
   PREZZI NELLE CARD
---------------------------------------------------------- */

.prezzo-box {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.prezzo-originale {
  text-decoration: line-through;
  color: #888;
  font-size: 15px;
}

.prezzo-sconto {
  background: var(--gp-violet);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ----------------------------------------------------------
   VERSIONE GOLD • Oro Premium
---------------------------------------------------------- */

.prezzo-gold {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f9d97e 0%, #eac45f 40%, #c89b32 100%);
  color: #3b2b00;
  padding: 4px 14px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 0 10px rgba(255, 221, 110, 0.45);
  animation: goldPulse 2.4s infinite ease-in-out;
}

@keyframes goldPulse {
  0% {
    box-shadow: 0 0 6px rgba(58,28,87,0.4);
  }
  50% {
    box-shadow: 0 0 16px rgba(58,28,87,0.8);
  }
  100% {
    box-shadow: 0 0 6px rgba(58,28,87,0.4);
  }
}

/* Shine oro */
.prezzo-gold::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -130%;
  width: 80%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.7) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-25deg);
  animation: goldShine 3.2s infinite;
}

@keyframes goldShine {
  0% { left: -130%; }
  100% { left: 130%; }
}

/* Link prezzi */
a.prezzo-box {
  text-decoration: none !important;
}

/* Titolo card cliccabile */
.collezione-card h3 a {
  text-decoration: none !important;
  color: inherit;
}

.collezione-card h3 a:hover {
  opacity: 0.7;
}

/* Pulsante card centrato e con distanziamento */
.collezione-card .guide-btn {
  display: inline-block;
  margin: 14px auto 0 auto; /* ARIA sopra + centrato */
  text-align: center;
}

/* ----------------------------------------------------------
   GUIDE
---------------------------------------------------------- */
.guide-section {
  padding: 60px 20px;
  text-align: center;
}

.guide-grid {
  margin-top: 40px;
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ----------------------------------------------------------
   GUIDE — VERSIONE PREMIUM
---------------------------------------------------------- */

.guide-title {
  font-size: 32px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  color: white;
}

.guide-sub {
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 17px;
  opacity: 0.85;
  line-height: 1.5;
  color: white;
}

.guide-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.guide-card h3 {
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--gp-violet-dark);
}

.guide-desc {
  font-size: 15px;
  line-height: 1.5;
  opacity: .90;
}

.guide-points {
  margin: 18px 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.55;
}

.guide-points li {
  margin-bottom: 6px;
}

.guide-btn {
  margin-top: auto;
  display: inline-block;
  text-align: center;
  background: var(--gp-violet-dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: .25s ease;
}

.guide-btn:hover {
  background: #341b51;
}


/* ----------------------------------------------------------
   TEMI – VERSIONE PREMIUM
---------------------------------------------------------- */

.temi-section {
  padding: 60px 20px;
  text-align: center;
}

.temi-title {
  font-size: 32px;
  margin-bottom: 10px;
  font-family: var(--font-display);
}

.temi-sub {
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 17px;
  opacity: 0.85;
  line-height: 1.5;
}

.temi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.tema-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transition: .25s ease;
  display: block;
}

.tema-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.tema-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--gp-violet-dark);
}

.tema-card p {
  font-size: 15px;
  line-height: 1.55;
  opacity: .85;
}

/* Icône sensoriali per i Temi */
.tema-icona {
  font-size: 34px;
  display: block;
  margin-bottom: 14px;
  opacity: 0.9;
  transition: .25s ease;
}

/* Effetto che si muove leggermente al passaggio */
.tema-card:hover .tema-icona {
  transform: scale(1.12);
  opacity: 1;
}


/* ----------------------------------------------------------
   AUTORE / CONTATTI
---------------------------------------------------------- */
.autore-section,
.contatti-section {
  padding: 24px 20px;
  text-align: center;
}

.autore-text {
  max-width: 700px;
  margin: auto;
  font-size: 19px;
  line-height: 1.6;
}

/* =============== FOOTER =============== */
.site-footer {
  background: #1e142f;
  color: #ffffff;
  padding: 5px 20px 20px 20px;
  margin-top: 5px;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column; 
  align-items: center; 
  gap: 5px; 
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
  gap: 10px 20px;
}

.footer-menu a {
  color: #d8cffa;
  text-decoration: none;
  font-size: 15px;
  transition: 0.2s;
}

.footer-menu a:hover {
  color: #ffffff;
}

@media (max-width: 820px) {
  .footer-inner {
    text-align: center;
  }
}



/* ----------------------------------------------------------
   TEMA BUTTONS (UNICA VERSIONE — niente duplicati)
---------------------------------------------------------- */

.tema-btn {
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  transition: .25s ease;
  display: inline-block;
}

/* Colori */
.tema-fondamenti { background: #f06464; border: 3px solid #f06464; }
.tema-tecniche   { background: #4d0f0f; border: 3px solid #4d0f0f; }
.tema-potere     { background: #000d22; border: 3px solid #000d22; }
.tema-fantasie   { background: #5a2f83; border: 3px solid #5a2f83; }
.tema-orizzonti  { background: #24786f; border: 3px solid #24786f; }

/* Hover dei pulsanti Tema – testo assume il colore originale */
.tema-btn:hover {
  background: #ffffff;
}

/* Ogni tema riprende il proprio colore al passaggio */
.tema-fondamenti:hover { color: #f06464; }
.tema-tecniche:hover   { color: #4d0f0f; }
.tema-potere:hover     { color: #000d22; }
.tema-fantasie:hover   { color: #5a2f83; }
.tema-orizzonti:hover  { color: #24786f; }

