:root {
    --burgundy: #8B1538;
    --deep-red: #A0282C;
    --gold: #D4AF37;
    --cream: #F5F1E8;
    --dark-gray: #2C2C2C;
    --warm-white: #FEFCF7;
}

body {
    font-family: 'Crimson Text', serif;
    background: linear-gradient(135deg, var(--warm-white) 0%, var(--cream) 100%);
    color: var(--dark-gray);
    line-height: 1.6;
}

.header-font {
    font-family: 'Playfair Display', serif;
}

.hero-bg {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--deep-red) 50%, var(--burgundy) 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.silhouette-bg {
    background: linear-gradient(180deg, var(--cream) 0%, #E8DCC0 100%);
    position: relative;
}

.capranica-image {
width: 300px;
height: 300px;
object-fit: cover;
background-color: var(--burgundy);
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
margin: 0 auto;
display: block;
}

.gold-accent {
    color: var(--gold);
}

.program-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 1rem;
}

.program-item:hover {
    border-left-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(5px);
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: #2d2d2d;
  background: linear-gradient(135deg, #f6e27a, #c9a100);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, 0.25),
    inset -2px -2px 6px rgba(0, 0, 0, 0.2),
    0 6px 20px rgba(212, 175, 55, 0.4);
  overflow: hidden;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    inset 1px 1px 3px rgba(255, 255, 255, 0.2),
    inset -1px -1px 4px rgba(0, 0, 0, 0.2),
    0 10px 30px rgba(212, 175, 55, 0.6);
  background: linear-gradient(135deg, #c9a100, #f6e27a);
}

.btn-primary i {
  margin-right: 0.75rem;
}

/* Shine effect */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
}

.btn-primary:hover::after {
  animation: shine 1s ease;
}

@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

.card-elegant {
    background: var(--warm-white);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card-elegant:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.ornament {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
    margin: 1rem auto;
}

.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Opzionale: rimuovi o modifica la classe fade-in esistente se non serve più */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Improved layout for centered button with decorative images */
.hero-cta-container {
position: relative;
display: flex;
justify-content: center;
align-items: center;
margin-top: 2rem;
min-height: 240px; /* <--- aumentato da 120px */
}



.hero-button-wrapper {
    z-index: 10;
    position: relative;
}

.hero-decorative-images {
position: absolute;
top: 50%;
transform: translateY(-50%);
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
max-width: 950px; /* più larga per maggiore distanza */
pointer-events: none;
z-index: 1;
padding: 0 1rem; /* aumenta distanza dal bordo */


}

.hero-image img {
max-height: 270px; /* aumentato */
width: auto;
object-fit: contain;
}

.hero-image.right img {
max-height: 220px; /* leggermente più piccola della sinistra */
transform: translateX(40px) translateY(10px);
}

.hero-image.left {
transform: translateX(-80px); /* sposta più a sinistra */
}


/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-decorative-images {
        display: none;
    }
    
    .hero-cta-container {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .hero-mobile-images {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    

}

@media (max-width: 488px) {
  .text-3xl {
    font-size: 1.575rem;  /* ~25.2px */
    line-height: 2.25rem;
  }
}

.program-list {
    max-height: none;
    overflow: visible;
}

@media print {
    body { background: white !important; }
    .hero-bg { background: var(--burgundy) !important; }
    .card-elegant { box-shadow: none !important; }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
}

@keyframes ripple-animation {
    to {
        transform: scale(2);
        opacity: 0;
    }
}
