/* 
  UNIFIED CSS for Cristina Spolaor
  Combines my2.css, common.css, and page-specific styles from Presenza and Costellazioni.
  Design choice: Premium, Luxe Sunset / Nature compromise.
  Primary Font: Cinzel (titles), Lato (body), Kalam (accents)
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lato:wght@300;400;700&family=Kalam:wght@300;400&family=Great+Vibes&display=swap');

:root {
  /* Core Colors */
  --accent: #d59393;
  /* Deep Bordeaux from Costellazioni */
  --accent-light: #fff0f7;
  --sage: #5e716a;
  /* Sage from Presenza */
  --gold: #c2b280;
  /* Gold from Presenza */
  --glass: rgba(255, 255, 255, 0.75);
  --glass-dark: rgba(255, 255, 255, 0.9);

  /* Backgrounds */
  --bg-cream: #fdfcfb;
  --bg-peach: #fff0ee;
  --bg-white: #ffffff;

  /* Pastels (from Costellazioni) */
  --pastel-1: #fff5f2;
  --pastel-2: #f2f7ff;
  --pastel-3: #f5f2ff;
  --pastel-4: #f2fff5;
  --pastel-5: #fffaf2;
  --pastel-6: #fbf2ff;

  /* Legacy Utility Variables (Mapping) */
  --main: var(--accent);
  --second: #532108;
  --text: #2c3e50;
  --title: var(--accent);
  --b1: var(--bg-cream);
  --b2: var(--bg-peach);
  --top: #851058;
  --bkcontact: #b98190;
  /* Unified Navbar color */
  --topt: #ffffff;
}

/* Global Reset */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background-color: var(--bg-cream);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
.ti {
  font-family: 'Cinzel', serif;
  color: var(--accent);
  letter-spacing: 1px;
}

p {
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  text-align: justify;
}

.kalam {
  font-family: 'Kalam', cursive;
}

.center {
  text-align: center;
}

/* Layout Containers */
.container-full {
  width: 100%;
}

.container-width {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.sez {
  padding: 80px 20px;
}

/* Hero Section (Universal) */
.hero-universal {
  height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 40px;
}

.hero-universal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

#navbar-container {
  z-index: 1000 !important;
}

.hero-content {
  position: relative;
  z-index: 2;
  /* animation: fadeUp 1.2s ease-out; */
  opacity: 1;
  /* Ensure visible without animation */
}

.hero-content h1 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  letter-spacing: 4px;
}

.hero-content p {
  font-size: 1.4rem;
  font-family: 'Kalam', cursive;
  color: #fff0ee;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Intro Section (Improved) */
.intro-box-unified {
  background: var(--glass);
  backdrop-filter: blur(15px);
  padding: 3rem 3rem;
  border-radius: 40px;
  box-shadow: 0 20px 50px rgba(133, 16, 88, 0.08);
  margin-top: -40px;
  /* Reduced overlap for cleaner look */
  position: relative;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.intro-image-round {
  flex: 0 0 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 5px solid white;
  transition: transform 0.3s ease;
}

.intro-image-round:hover {
  transform: scale(1.02);
}

.intro-media-box {
  flex: 0 0 400px;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 5px solid white;
  transition: transform 0.3s ease;
  background: black;
  /* Better for videos */
}

.intro-media-box:hover {
  transform: scale(1.02);
}

.intro-text-unified {
  flex: 1;
  min-width: 300px;
}

/* Reveal Animations */
/* 
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.6, 0.35, 1);
}
*/
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Cards & Grids */
.grid-standard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin: 4rem 0;
}

.card-premium {
  background: white;
  padding: 30px;
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-premium:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(133, 16, 88, 0.1);
}

.icon-wrapper-unified {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  font-size: 2.5rem;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.icon-bg-unified {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background-color: var(--pastel-2);
  opacity: 0.15;
  z-index: -1;
  transition: all 0.4s ease;
}

.card-premium:hover .icon-bg-unified {
  transform: scale(1.1) rotate(5deg);
  opacity: 0.25;
}

/* Buttons */
.btn-unified {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.4s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(133, 16, 88, 0.3);
  filter: brightness(1.1);
}

.btn-gold {
  background: var(--gold);
  color: white;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(194, 178, 128, 0.4);
}

/* Section Modifiers */
.section-peach {
  background-color: var(--bg-peach);
}

.section-cream {
  background-color: var(--bg-cream);
}

.section-white {
  background-color: var(--bg-white);
}

.section-accent {
  background-color: var(--accent);
  color: white;
}

.section-accent h2,
.section-accent h3 {
  color: white;
}

/* Alternating Split Sections */
.split-section {
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 100px 0;
}

.split-section.reverse {
  flex-direction: row-reverse;
}

.split-content {
  flex: 1;
}

.split-content h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  position: relative;
}

.split-content h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
}

.split-section.reverse .split-content h2::after {
  left: auto;
  right: 0;
}

.split-image {
  flex: 1;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
  position: relative;
}

.split-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.split-image:hover img {
  transform: scale(1.05);
}

/* Navbar Overrides/Enhancements */
#topBar {
  background: white !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  padding: 5px 0 !important;
  z-index: 1000;
}

#topBar .container-width {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.top {
  z-index: 1000 !important;
}

#topBar a {
  color: var(--text) !important;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  text-transform: uppercase;
}

.l4 {
  margin-top: 8px;
}

#topBar a:hover {
  color: var(--accent) !important;
  background: transparent !important;
}

#navigations a {
  color: var(--text) !important;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  text-transform: uppercase;
}

#navigations a:hover {
  color: var(--accent) !important;
  background: transparent !important;
}

#topBar .bar-item {
  padding: 8px 9px !important;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .nav-contact {
    display: none !important;
  }
}

@media (max-width: 950px) {
  .nav-brand {
    display: none !important;
  }
}

#topBar .button {
  padding: 8px 9px !important;
}

/* Utility (Legacy compatibility) */
.he5 {
  height: 50px;
}

.he2 {
  height: 20px;
}

.midt {
  text-align: center;
}

.imgg {
  width: 100%;
  border-radius: 15px;
}

/* Responsive */
@media (max-width: 992px) {

  .split-section,
  .split-section.reverse {
    flex-direction: column;
    gap: 40px;
    padding: 60px 0;
    text-align: center;
  }

  .split-content h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .split-image img {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
    /* Reduced slightly */
    letter-spacing: 2px;
  }

  .intro-box-unified {
    padding: 2.5rem 1rem;
    /* Reduced from 1.5rem to 1rem */
    margin-top: -40px;
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .intro-image-round {
    flex: 0 0 180px;
    height: 180px;
  }

  .intro-media-box {
    flex: 0 0 auto;
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    margin: 0 auto;
  }

  .intro-text-unified {
    min-width: unset;
    /* Allow it to shrink */
    width: 100%;
  }

  .calendar-wrapper {
    gap: 20px;
    /* Reduced gap between monthly and list */
  }

  .calendar-monthly,
  .calendar-list {
    padding: 20px 15px;
    /* Reduced padding */
    min-width: unset;
    /* Allow it to shrink */
    width: 100%;
  }

  .calendar-grid {
    gap: 8px;
    /* Reduced gap between days */
  }

  .calendar-day {
    font-size: 0.95rem;
    /* Slightly smaller days */
  }

  .calendar-day.has-event {
    font-size: 1.2rem !important;
    /* Scale down selected day font */
  }

  .calendar-header h3 {
    font-size: 1.3rem;
    /* Smaller month name */
  }
}

/* Calendar Component */
.calendar-wrapper {
  display: flex !important;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.calendar-monthly {
  flex: 1.5;
  min-width: 300px;
  background: white;
  padding: 30px;
  border-radius: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

.calendar-list {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 30px;
  border-radius: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.calendar-header h3 {
  margin: 0;
  font-size: 1.6rem;
}

.calendar-nav-btn {
  background: var(--pastel-1);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--accent);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.calendar-nav-btn:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.1);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 15px;
}

.calendar-day-name {
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--sage);
  text-transform: uppercase;
  padding-bottom: 20px;
  letter-spacing: 1px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: default;
  position: relative;
  transition: all 0.3s;
  color: #555;
  background: #fcfcfc;
}

.calendar-day.has-event {
  background-color: rgb(240, 202, 203);
  color: rgb(0, 0, 0) !important;
  font-weight: 700 !important;
  font-size: 1.4rem !important;
  box-shadow: 0 8px 20px rgba(213, 147, 147, 0.3);
  cursor: pointer;
}

.calendar-day.has-event:hover {
  transform: scale(1.15);
  filter: brightness(1.1);
}

.calendar-day.today {
  border: 2px solid var(--accent);
}

.calendar-day.empty {
  visibility: hidden;
}

/* Event List Styling */
.event-list-container {
  list-style: none;
  padding: 0;
  margin: 0;
}

.calendar-list h3 {
  margin-bottom: 25px;
  font-size: 1.6rem;
  text-align: center;
}

.event-item {
  padding: 20px 0;
  border-bottom: 1px dashed #eee;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s;
}

.event-item:hover {
  padding-left: 10px;
}

.event-item:last-child {
  border-bottom: none;
}

.event-dt-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-date-time {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.event-location {
  color: var(--sage);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-style: italic;
}

.event-location i {
  color: var(--gold);
  font-size: 1rem;
}

.second-card {
  background: var(--bg-cream);
  padding: 2.5rem;
  border-radius: 25px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
}



@media (max-width: 900px) {
  .calendar-wrapper {
    flex-direction: column;
    gap: 30px;
  }
}

/* Extra small screens optimization */
@media (max-width: 600px) {
  .card-premium {
    padding: 14px 4px;
  }

  .second-card {
    padding: 10px;
    border-radius: 15px;
  }

  .imgg {
    max-width: 350px !important;
    margin: 25px auto 0 !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
    letter-spacing: 1px;
    word-break: break-word;
    white-space: normal;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 1.1rem;
    text-align: center;
  }

  .intro-box-unified {
    padding: 2rem 1rem !important;
  }

  .intro-box-unified h2 {
    font-size: 1.5rem !important;
  }

  .container-width {
    padding: 0 12px !important;
  }

  .calendar-grid {
    gap: 5px !important;
  }

  .calendar-day {
    font-size: 0.8rem !important;
  }

  .calendar-day.has-event {
    font-size: 1rem !important;
  }

  .event-details-compact {
    gap: 6px !important;
  }

  .event-title-row h4 {
    font-size: 1rem !important;
  }

  .calendar-monthly,
  .calendar-list {
    padding: 15px 10px !important;
  }
}