/* 
CSS GENERALE
*/
:root {
    --bg-color: #f6f0e3;
    --text-color: #111;
    --accent-color: #f4a300;
    --border-color: #ccc;
    --hover-color: #f4a300;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html, body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
  }

  header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
  }

  header.shrink {
    padding: 0.4rem 2rem;
  }

  header.shrink .menu-label {
    display: none;
  }

  .logo {
    height: 45px;
    transition: height 0.3s ease;
  }

  header.shrink .logo {
    height: 35px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
  }

  .menu-toggle span {
    margin-left: 0.5rem;
    font-weight: 600;
  }

  .hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    display: block;
  }

  .hamburger::before,
  .hamburger::after,
  .hamburger div {
    content: '';
    position: absolute;
    height: 2px;
    background-color: #000;
    width: 100%;
    transition: all 0.3s ease;
  }

  .hamburger::before {
    top: 0;
  }

  .hamburger div {
    top: 8px;
  }

  .hamburger::after {
    bottom: 0;
  }

  nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-color);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-left: 1px solid var(--border-color);
    z-index: 999;
  }

  nav.open {
    transform: translateX(0);
  }

  nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
  }

  nav a:hover,
  nav a:focus {
    transform: translateX(5px);
    color: var(--hover-color);
  }

  .submenu {
    display: none;
    flex-direction: column;
    padding-left: 1rem;
    gap: 0.5rem;
  }

  .submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
  }

  .submenu-toggle:hover {
    color: var(--hover-color);
  }

  .submenu-toggle::after {
    content: '▸';
    font-size: 1rem;
    margin-left: 0.5rem;
  }

  .submenu-toggle.open::after {
    content: '▾';
  }

  .swiper-container {
    width: 100%;
    height: 600px;
    margin-top: 71px;
    position: relative;
    overflow: hidden;
  }

  .swiper-slide {
    display: flex;
    flex-direction: column;
  }

  .slide-text {
    background-color: #000;
    color: #fff;
    flex: 0.85;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem 3rem 2rem;
    position: relative;
  }

  .slide-text-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .slide-text .intro {
    font-size: 1.2rem;
    line-height: 2.2rem;
    font-weight: 500;
  }

  .slide-text .title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 3.2rem;
    margin-bottom: 2rem;
  }

  .slide-text .discover-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 3rem;
  }

  .slide-image {
    width: 100%;
    display: flex;
    align-items: stretch;
    flex: 0 0 50%;
    max-width: 50%;
    min-height: 300px;
    background-color: #eee;
  }

  .slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .swiper-pagination {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .swiper-pagination-bullet {
    background-color: #000;
    opacity: 0.6;
  }

  .swiper-pagination-bullet-active {
    opacity: 1;
  }

  .section {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
  }

  .productions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
  }

  .production-box {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 1rem;
  }

  .newsletter {
    margin-top: 2rem;
    display: flex;
    max-width: 500px;
  }

  .newsletter input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-right: none;
    font-size: 1rem;
  }

  .newsletter button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0 1.2rem;
    font-size: 1rem;
    cursor: pointer;
  }

  footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: #555;
    font-family: 'Inter', sans-serif;
  }

/* 
CSS SU DI NOI
*/
.about-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeInUp 1s ease forwards;
    border-top: 2px solid var(--border-color);
    padding-top: 3rem;
  }

  .about-text p + p {
    margin-top: 1rem;
  }

  .about-text .discover-more {
    margin-top: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    display: inline-block;
    text-decoration: none;
  }

  .about-text .discover-more:hover {
    transform: translateX(5px);
  }

  .about-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .spacer {
    height: 1.5rem;
  }

  @media (min-width: 768px) {
    .about-wrapper {
      flex-direction: row;
      align-items: stretch;
    }

    .about-text, .about-video {
      flex: 1;
    }

    .swiper-slide {
        flex-direction: row;
        align-items: stretch;
    }
  
    .slide-text,
    .slide-image {
        flex: 1 1 50%;
        max-width: 50%;
    }
  
    .slide-image img {
        height: 100%;
        object-fit: cover;
        display: block;
    }

  }

  @keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

/* 
CSS IN TOURNEE
*/
.on-tour h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }

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

  .production-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .production-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
  }

  .card-content {
    padding: 1.2rem;
    background-color: #fdf8ed;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
  }

  .card-content h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    margin: 0;
    position: relative;
  }

  .card-content h3::before {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    margin: 0 auto 0.5rem;
  }

  .card-content .author {
    font-size: 0.85rem;
    color: #777;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
  }

  .card-content .discover-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #777;
    text-decoration: none;
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .card-content .discover-link .arrow {
    font-size: 1rem;
    line-height: 1;
    color: var(--accent-color);
  }

/* 
CSS NEWSLETTER
*/
.newsletter-section {
    padding: 7rem 2rem;
    background: linear-gradient(rgba(246, 240, 227, 0.92), rgba(246, 240, 227, 0.92)), url('img-gestione/newsletter-bg.jpg') center/cover no-repeat;
    text-align: center;
    border-top: 1px solid var(--border-color);
    position: relative;
    color: #111;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  }

  .newsletter-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #000;
  }

  .newsletter-text {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #333;
  }

  .newsletter-form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    align-items: center;
  }

  .input-group {
    position: relative;
    flex: 1 1 250px;
  }

  .mail-icon {
    position: absolute;
    top: 50%;
    left: 0.8rem;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--accent-color);
  }

  .newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.9rem 1.2rem 0.9rem 2.5rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    outline: none;
    background-color: rgba(255, 255, 255, 0.65);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }

  .newsletter-form input[type="email"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(244, 163, 0, 0.15);
  }

  .newsletter-form button {
    padding: 0.8rem 1.6rem;
    font-size: 0.85rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }

  .newsletter-form button:hover {
    background-color: #d98e00;
    transform: translateY(-2px);
  }

  .newsletter-success {
    display: none;
    margin-top: 2rem;
    font-weight: bold;
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 1rem;
    border-radius: 10px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
  }

/* 
CSS NEWS
*/
.news-section {
    padding: 5rem 2rem;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
  }

  .news-title {
    text-align: center;
    font-size: 2.1rem;
    margin-bottom: 3rem;
    font-weight: 700;
  }

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

  .news-item {
    background-color: #222;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }

  .news-image-wrapper {
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  }

  .news-image-wrapper img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
  }

  .news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
  }

  .news-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
  }

  .news-content p {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.5;
  }

  .read-more {
    margin-top: auto;
    align-self: flex-start;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .read-more:hover {
    color: #fff;
  }

  .news-footer {
    margin-top: 3rem;
    text-align: center;
  }

  .view-all-news {
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid var(--accent-color);
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .view-all-news:hover {
    background-color: var(--accent-color);
    color: #fff;
  }

/* 
CSS CALENDARIO
*/
.calendar-section {
    padding: 4rem 2rem;
    background-color: #fdf5e6;
    border-top: 1px solid var(--border-color);
  }

  .calendar-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .calendar-text {
    flex: 1;
    max-width: 600px;
  }

  .calendar-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .calendar-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
  }

  .calendar-widget {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: #fff8e7;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  .calendar-nav-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .calendar-arrow {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  #calendar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .calendar-weekdays,
  .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.3rem;
    text-align: center;
  }

  .calendar-weekdays div {
    font-weight: bold;
    color: #666;
  }

  .calendar-day {
    padding: 0.8rem;
    border-radius: 8px;
    background-color: #fff;
    color: #111;
    transition: background-color 0.3s;
    position: relative;
    cursor: pointer;
    min-height: 48px;
  }

  .calendar-day:hover {
    background-color: var(--accent-color);
    color: white;
  }

  .calendar-day.event::after {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
  }

  .event-details {
    margin-top: 2rem;
    background-color: #fff3da;
    border-left: 4px solid var(--accent-color);
    padding: 1rem;
    border-radius: 8px;
  }

  .event-details.hidden {
    display: none;
  }

  .event-details ul {
    list-style: none;
    padding-left: 0;
  }

  .event-details li {
    margin-bottom: 0.5rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid #eee;
  }

/* 
CSS FOOTER
*/
.footer {
    background-color: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
  }

  .footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 0.75rem;
    color: #ccc;
  }
  .footer-bottom a {
    color: #ccc;
    text-decoration: underline;
  }

  .footer-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  .footer-logos img {
    max-height: 40px; /* dimensione piccola */
    height: auto;
    width: auto;
  }

  @media (max-width: 768px) {
    .calendar-container {
      flex-direction: column;
      align-items: stretch;
    }
  
    .calendar-text,
    .calendar-widget {
      width: 100%;
      max-width: 100%;
    }
  
    .calendar-widget {
      padding: 1rem;
      box-sizing: border-box;
    }
  
    #calendar {
      overflow-x: auto;
    }
  }

  @media (max-width: 768px) {
    .footer-top {
      flex-direction: column;
      align-items: center;
      gap: 2rem;
      text-align: center;
    }
  
    .footer-info {
      flex-direction: column;
      align-items: center;
      padding: 0;
    }
  
    .footer-section {
      align-items: center;
    }
  
    .footer-logo,
    .footer-logo-regione {
      margin: 0 auto;
    }
  
    .footer-section img {
      align-self: center;
    }

    @media (max-width: 480px) {
      .footer-logos img {
        max-height: 30px;
      }
    }
    
  }