/* ========================================
   OPERE.HTML - Stili specifici
   ======================================== */

/* Variabili colore specifiche per opere */
:root {
  --primary: #7d2e6a;
  --primary-dark: #301439;
  --secondary: #eef9f9;
}

/* Navbar sempre bianca */
.navbar {
  background: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ========================================
   HERO OPERE
   ======================================== */
.hero-opere {
  padding-top: 150px;
  padding-bottom: 3rem;
  background: url('../assets/images/banner/banner_top_opere.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  color: wheat;
  /* color: #414468ff; */
  text-align: center;
}

.hero-opere h1 {
  font-family: "Dancing Script", cursive;
  font-size: clamp(3rem, 6vw, 5rem);
  font-style: normal;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-opere h2 {
  font-family: "Delius", cursive;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  padding-left: 40%
}

.hero-opere p {
  font-size: 1.2rem;
  opacity: 0.9;
}


/* Schermi piccoli */
@media (max-width: 480px) {
  .hero-opere {
    background-size: cover;
    background-position: 100% 5000%;
  }

  .hero-opere h1 {
    padding-left: center;
  }
}

/* Schermi medio-piccoli */
@media (min-width: 480px) and (max-width: 768px) {
  .hero-opere {
    background-size: cover;
    background-position: right top;
  }

  .hero-opere h1 {
    padding-left: 50%;
  }
}

/* Schermi medio-grandi */
@media (min-width: 769px) and (max-width: 1200px) {
  .hero-opere {
    background-size: cover;
    background-position: right 0%;
  }

  .hero-opere h1 {
    padding-left: 40%;
  }
}

/* Schermi grandi */
@media (min-width: 1201px) {
  .hero-opere {
    background-size: cover;
    background-position: center 18%;
  }

  .hero-opere h1 {
    padding-left: 40%;
  }
}

/* ========================================
   CATEGORIES SECTION
   ======================================== */
.categories-section {
  padding-top: 1rem;
  padding-bottom: 5rem;
  padding-right: 2rem;
  padding-left: 2rem;
  background: var(--white);
}

.categories-container {
  max-width: 1200px;
  margin: 0 auto;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.category-card {
  position: relative;
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  height: 300px;
  animation: slideInUp 0.6s ease forwards;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.category-card-inner {
  position: relative;
  padding: 2rem;
  text-align: center;
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.category-card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #eef9f94d, #7d2e6a4d);
  transition: background 0.3s ease;
}

.category-card:hover .category-card-inner::before {
  background: linear-gradient(135deg, #eef9f9cc, #7d2e6acc);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.category-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.category-card:hover .category-card-overlay {
  opacity: 1;
}

/* Animazioni ritardate per le card */
.category-card:nth-child(1) {
  animation-delay: 0.1s;
}

.category-card:nth-child(2) {
  animation-delay: 0.2s;
}

.category-card:nth-child(3) {
  animation-delay: 0.3s;
}

.category-card:nth-child(4) {
  animation-delay: 0.4s;
}

.category-card:nth-child(5) {
  animation-delay: 0.5s;
}

.category-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* ========================================
   SLIDER SECTION
   ======================================== */
.slider-section {
  padding: 5rem 2rem;
  background: var(--light);
}

.slider-container {
  max-width: 1400px;
  margin: 0 auto;
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.slider {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 600px;
  object-fit: contain;
  background: #000;
  display: block;
}

.slider-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.slider-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  transition: all 0.3s;
}

.slider-btn:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-dots {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.slider-dot.active {
  background: white;
  width: 30px;
  border-radius: 6px;
}

/* ========================================
   SOCIAL SECTION (background specifico)
   ======================================== */
.social-section {
  background: url('../assets/images/banner/banner_bottom_opere.png');
  background-position: 0% 30%;
}

/* ========================================
   MEDIA QUERIES
   ======================================== */
@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .slide img {
    height: 400px;
  }
}


@media (max-width: 768px) {
  .hero-opere {
    background-position: center top;
  }
}