/* =============================================
   TRENTESIMO DI ERICA - Main Stylesheet
   Palette: viola dominante | oro accento
   ============================================= */
:root {
  --purple: #58347c;
  --purple-dark: #3e2358;
  --purple-deep: #2a1540;
  --purple-mid: #6b44a0;
  --purple-light: #8c66bc;
  --purple-pale: #f0eaf7;
  --gold: #e7b73e;
  --gold-light: #f5d27a;
  --white: #fff;
  --bg-soft: #f4eefa;
}

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

body {
  font-family: 'Georgia', serif;
  background: var(--bg-soft);
  color: #1e1028;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAVBAR */
.navbar {
  background: linear-gradient(90deg, var(--purple-deep) 0%, var(--purple) 100%);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 16px rgba(42, 21, 64, 0.4);
}

.navbar-brand svg {
  height: 50px;
  width: auto;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 600;
  letter-spacing: .5px;
  transition: all .2s;
  padding: .4rem .9rem;
  border-radius: 6px;
}

.nav-link:hover {
  color: var(--gold) !important;
  background: rgba(255, 255, 255, .10);
}

.nav-link.active {
  color: var(--purple-deep) !important;
  background: var(--gold);
  font-weight: 700;
}

.navbar-toggler {
  border-color: rgba(231, 183, 62, .6);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23e7b73e' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
}

.lang-switcher a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  transition: all .2s;
  border: 1px solid rgba(255, 255, 255, .2);
  height: 37px;
  display: flex;
  align-items: center;
  align-content: center;
  flex-direction: row;
  column-gap: 5px;
}

.lang-switcher a.active,
.lang-switcher a:hover {
  background: var(--gold);
  color: var(--purple-deep);
  border-color: var(--gold);
}

.lang-switcher span {
  color: rgba(255, 255, 255, .3);
}

/* HERO */
.hero-section {
  /*background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 50%, var(--purple-mid) 100%);*/
  background-color: var(--purple) !important;
  background: url('/assets/background2.webp') center repeat;
  background-blend-mode: luminosity;
  min-height: 480px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-size: auto 100%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--purple-deep), var(--gold), var(--purple-deep));
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(231, 183, 62, .15);
  color: var(--gold-light);
  font-size: .76rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 50px;
  border: 1px solid rgba(231, 183, 62, .30);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 3px 20px rgba(0, 0, 0, .35);
  line-height: 1.1;
}

.hero-title span {
  color: var(--gold);
}

.hero-subtitle {
  color: #fff;
  font-size: clamp(.95rem, 2.2vw, 1.25rem);
  letter-spacing: 1px;
  font-style: italic;
  margin-top: .5rem;
}

.hero-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--purple-deep);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 10px 28px;
  border-radius: 50px;
  letter-spacing: 1px;
  margin-top: 1.5rem;
  box-shadow: 0 4px 18px rgba(231, 183, 62, .35);
}

/* COUNTDOWN */
.countdown-section {
  background: var(--purple);
  border-bottom: 3px solid var(--purple-dark);
  padding: 1.8rem 0;
}

.countdown-wrap {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(231, 183, 62, .30);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  text-align: center;
}

.cd-label {
  color: var(--gold-light);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: 4px;
}

.cd-number {
  color: var(--white);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.cd-note {
  color: rgba(255, 255, 255, .6);
  font-size: .82rem;
  font-style: italic;
  margin-top: 4px;
}

/* HOME CARDS */
.home-cards-section {
  background: linear-gradient(180deg, var(--purple) 0%, var(--purple-dark) 100%);
  padding: 4rem 0;
}

.section-title-white {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: .5rem;
  display: inline-block;
}

.section-title-white::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.choice-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 20px;
  transition: transform .28s, box-shadow .28s, background .28s;
  overflow: hidden;
  text-decoration: none;
  display: block;
  cursor: pointer;
  position: relative;
}

.choice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s;
}

.choice-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  background: rgba(255, 255, 255, .12);
}

.choice-card:hover::before {
  transform: scaleX(1);
}

.choice-card .card-icon {
  font-size: 3.6rem;
  margin-bottom: 1rem;
  color:#fff;
}

.choice-card .card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .5rem;
}

.choice-card .card-desc {
  color: rgba(255, 255, 255, .62);
  font-size: .92rem;
}

.choice-card .card-arrow {
  width: 46px;
  height: 46px;
  background: var(--gold);
  color: var(--purple-deep);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform .2s;
  margin-top: 1.2rem;
}

.choice-card:hover .card-arrow {
  transform: translateX(6px);
}

/* PAGE BANNER */
.page-banner {
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 55%, var(--purple-mid) 100%);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 40%, rgba(231, 183, 62, .10) 0%, transparent 60%);
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--purple-deep), var(--gold), var(--purple-deep));
}

.page-banner h1 {
  color: var(--white);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  position: relative;
}

.page-banner .banner-emoji {
  font-size: 3.2rem;
  display: block;
  margin-bottom: .6rem;
  color: #fff;
}

.page-banner .banner-sub {
  color: var(--gold-light);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 1px;
  position: relative;
}

/* SECTION TITLE */
.section-title {
  color: var(--purple);
  font-weight: 700;
  position: relative;
  padding-bottom: .5rem;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 55%;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* SECTION TITLE */
.section-title2 {
  color: var(--purple);
  font-weight: 700;
  position: relative;
  padding-bottom: .5rem;
  display: inline-block;
}

/* INFO BOX */
.info-box {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(88, 52, 124, .09);
  padding: 1.4rem 1.6rem;
  border-left: 5px solid var(--gold);
  margin-bottom: 1.2rem;
  transition: box-shadow .2s;
}

.info-box:hover {
  box-shadow: 0 8px 28px rgba(88, 52, 124, .16);
}

.info-box.purple-border {
  border-left-color: var(--purple);
}

.info-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--purple-light);
  font-weight: 800;
  margin-bottom: .35rem;
}

.info-value {
  font-size: 1.05rem;
  color: var(--purple-dark);
  font-weight: 600;
}

/* MAP */
.map-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(42, 21, 64, .18);
  border: 3px solid var(--purple-light);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: none;
}

/* DRESSCODE */
.dresscode-card {
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 100%);
  border-radius: 20px;
  padding: 2.5rem;
  color: var(--white);
  border: 1px solid rgba(231, 183, 62, .25);
  box-shadow: 0 8px 32px rgba(42, 21, 64, .3);
}

.dresscode-card h3 {
  color: var(--gold);
  font-weight: 800;
  margin-bottom: .75rem;
  font-size: 1.4rem;
}

.dresscode-card p {
  color: rgba(255, 255, 255, .85);
}

.dresscode-swatch {
  display: inline-flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .8);
  font-weight: 600;
}

.swatch-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .35);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}

/* BUTTONS */
.btn-drive {
  background: var(--gold);
  color: var(--purple-deep);
  border: none;
  font-weight: 800;
  padding: .85rem 2.2rem;
  border-radius: 50px;
  font-size: 1rem;
  transition: all .22s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(231, 183, 62, .30);
}

.btn-drive:hover {
  background: #f9e1a3;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(42, 21, 64, .35);
}

.btn-drive-invese {
  background: var(--purple-deep);
  color: var(--gold);
  box-shadow: 0 8px 24px rgba(42, 21, 64, .35);
  border: none;
  font-weight: 800;
  padding: .85rem 2.2rem;
  border-radius: 50px;
  font-size: 1rem;
  transition: all .22s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-drive-invese:hover {
  background: #a37ecb;
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(231, 183, 62, .30);
}

/* GIFT CARDS */
.gift-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(88, 52, 124, .10);
  padding: 2.2rem 1.8rem;
  text-align: center;
  transition: transform .22s, box-shadow .22s;
  border-top: 4px solid var(--purple);
}

.gift-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(88, 52, 124, .18);
}

.gift-card .gift-icon img {
  height: 190px;
  margin-bottom: 10px;
}

.gift-card h4 {
  color: var(--purple);
  font-weight: 800;
  margin-bottom: .6rem;
}

.gift-card p {
  color: #666;
  font-size: .93rem;
}

/* UTILS */
.divider-gold {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 2.5rem 0;
}

.text-gold {
  color: var(--gold) !important;
}

.text-purple {
  color: var(--purple) !important;
}

/* FOOTER */
.site-footer {
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 100%);
  border-top: 4px solid var(--gold);
  padding: 2.5rem 0;
  margin-top: auto;
}

.footer-phone {
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  transition: opacity .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-phone:hover {
  opacity: .8;
  color: var(--gold);
}

.site-footer p {
  color: rgba(255, 255, 255, .80);
}

.footer-label {
  color: var(--gold-light);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

@media(max-width:768px) {
  .map-wrapper iframe {
    height: 250px;
  }

  .hero-section {
    min-height: 330px;
  }

  .page-banner {
    padding: 2rem 0 1.6rem;
  }

  .home-cards-section {
    padding: 2.5rem 0;
  }
}

.logo-footer {
  height: 100px; 
  width: auto;
}

.bandiera{
  height: 10px;
  display: inline-block;
}

.lead {
  font-size: 1.1rem;
  font-weight: normal;
}

.back_title {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 30px;
  padding: 20px;
}
















/* CSS */
#bf-container {
  position: relative;
  overflow: hidden;
  /* adatta a ciò che hai già: */
  min-height: 480px;
  width: 100%;
  background-color: var(--purple);
}

.bf {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  transition: none;
}

.bf img {
  display: block;
  width: 100%;
  height: auto;
  /* nasconde lo sfondo bianco del JPG su sfondi chiari: */
  mix-blend-mode: multiply;
  /* su sfondi scuri usa invece: mix-blend-mode: screen; */
  filter: drop-shadow(0 0 6px rgba(220,170,30,.5));
}

.sfondino_lillino{
  background:var(--bg-soft);
}

/* =============================================
   CHI SONO PAGE - Slideshow & Content Styles
   ============================================= */

/* Chi Sono Text Styles */
.chi-sono-text p {
  margin-bottom: 1.2rem;
}

.chi-sono-text p:last-child {
  margin-bottom: 0;
}

/* Hobby Cards */
.hobby-card {
  background: white;
  border-left: 4px solid var(--purple-light);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.hobby-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Slideshow Container */
.slideshow-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.slides-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.fade {
  animation: fade 0.5s ease-in-out;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.slide:first-child {
  opacity: 1;
}

/* Slideshow Navigation Buttons */
.slideshow-container .prev,
.slideshow-container .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  color: var(--purple);
  font-size: 28px;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 8px;
  user-select: none;
  z-index: 10;
  transition: background 0.3s;
}

.slideshow-container .prev:hover,
.slideshow-container .next:hover {
  background: rgba(255, 255, 255, 1);
}

.slideshow-container .prev {
  left: 15px;
}

.slideshow-container .next {
  right: 15px;
}

/* Slideshow Indicators/Dots */
.dots-container {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s;
  border: 2px solid transparent;
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.85);
}

.dot.active {
  background-color: rgba(255, 255, 255, 1) !important;
  border-color: var(--purple);
  box-shadow: 0 0 0 1px var(--purple);
}

.icona_sexy {
  width: 16px;
}

.lista_caliente {
display: flex;
    list-style-type: none;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 10px;
    justify-content: center;
}

.oro{
  color: var(--gold);
}

.purple{
  color: var(--purple);
}

.purple-light{
  color: var(--purple-light);
}

.card-erica > .card-header {
  background: var(--purple);
  color: var(--gold);
  font-weight: 800;
}

.card-erica {
  border-color: var(--purple);
}


#audio-controls .btn {
  border-color: var(--purple);
  color: var(--purple);
}
#audio-controls .btn:hover {
  background: var(--purple-light);
  color: var(--white);
}

/* Override Bootstrap per lo slider audio */
#audio-progress {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(to right, var(--gold) 0%, var(--purple-light) 0%);
}

#audio-progress::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
}

#audio-progress::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: transparent;
}

/* Thumb dorato */
#audio-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  margin-top: -4px;
}

#audio-progress::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
}

.btn-skip {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
  border-radius: 20px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease, 
              box-shadow 0.25s ease, transform 0.15s ease;
}

.btn-skip:hover,
.btn-skip:focus {
  background: var(--gold);
  color: var(--purple);
  box-shadow: 0 0 10px var(--gold), 0 0 20px rgba(231, 183, 62, 0.4);
  transform: scale(1.08);
  border-color: var(--gold);
}

.btn-skip:active {
  transform: scale(0.97);
  box-shadow: 0 0 5px var(--gold);
}


.select-speed {
  border: 2px solid var(--gold);
  color: var(--gold);
  background-color: transparent;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease,
              box-shadow 0.25s ease, transform 0.15s ease;
  padding: 0.2rem 2rem 0.2rem 0.8rem; /* ← più spazio a destra per la freccia */
}


.select-speed:hover,
.select-speed:focus {
  background-color: var(--gold);
  color: var(--purple);
  box-shadow: 0 0 10px var(--gold), 0 0 20px rgba(231, 183, 62, 0.4);
  transform: scale(1.08);
  border-color: var(--gold);
  outline: none;
}

.select-speed option {
  background-color: var(--purple);
  color: var(--gold);
}


.btn-heart {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease,
              box-shadow 0.25s ease, transform 0.15s ease;
}

.btn-heart:hover {
  background: var(--gold);
  color: var(--purple);
  box-shadow: 0 0 10px var(--gold), 0 0 20px rgba(231, 183, 62, 0.4);
  transform: scale(1.15);
}

.btn-heart:active {
  transform: scale(0.92);
}

.flying-heart {
  position: fixed;
  font-size: 1.4rem;
  color: var(--gold);
  pointer-events: none;
  z-index: 9999;
  animation: flyHeart 1.4s ease-out forwards;
  text-shadow: 0 0 8px rgba(231, 183, 62, 0.7);
}

@keyframes flyHeart {
  0%   { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translateY(-220px) scale(1.5) rotate(var(--rot)); }
}


/* ══════════════════════════════════════
   TABLET FIX (768px – 1199px)
══════════════════════════════════════ */
/* ══════════════════════════════════════
   TABLET FIX DEFINITIVO (768px – 1199px)
══════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1199px) {

  /* --- SLIDESHOW --- */
  .slideshow-container {
    max-width: 320px;
    margin: 0 auto;
  }

  .slides-wrapper {
    height: 420px !important; /* Blocca il JS per l'altezza enorme */
    overflow: hidden;
  }

  .slides-wrapper img.slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  /* --- LAYOUT COLONNE "CHI SONO" --- */
  .col-md-5.col-lg-4.text-center { 
    flex: 0 0 auto; 
    width: 40%; /* Mantiene lo slideshow affiancato al testo */
  }
  .col-md-7.col-lg-8 { 
    flex: 0 0 auto; 
    width: 60%; 
  }

  /* --- ICONE (SVG E BOOTSTRAP) --- */
  .icona_sexy {
    width: 18px !important;
    height: 18px !important;
  }

  .card-erica ul i.bi { 
    font-size: 1rem; 
    line-height: 1; 
  }

  .timeline-item h5 img.icona_sexy {
    width: 22px !important;
    height: 22px !important;
  }

  /* --- GIFT CARDS (Evita immagini giganti) --- */
  .gift-card .gift-icon img {
    height: 120px !important;
  }

  /* --- TESTI COMPATTI --- */
  .page-banner .banner-emoji {
    font-size: 2.2rem;
  }

  .card-erica {
    font-size: 0.92rem;
  }

  .lista_caliente {
    font-size: 0.85rem;
  }
}
