/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #FFFDD0;
    background-image: url("/images/images1.jpeg");
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
    align-items: center;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    margin-left: auto;
    order: 2;
}

.navbar-menu ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar-menu ul li {
    margin: 0 20px;
}

.navbar-menu ul li a {
    font-weight: 600;
    transition: color 0.3s;
}

.navbar-menu ul li a:hover {
    color: #d4a373;
}

/* Media query per schermi piccoli */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-menu ul {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.9);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        clip-path: circle(0px at 90% -10%);
        transition: clip-path 0.5s ease-out;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar-menu ul.active {
        clip-path: circle(1000px at 90% -10%);
    }

    .navbar-menu ul li {
        margin: 10px 0;
    }
}


/* Hero */
.hero {
    height: 100vh;
    background: url('/images/photofunko1.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

.hero-content h1 {
    font-family: 'Parisienne', cursive;
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background: #d4a373;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn:hover {
    background: #b88f5a;
}

/* Sections */
.section {
    padding: 100px 0;
    text-align: center;
}

.section h2 {
    font-family: 'Parisienne', cursive;
    font-size: 3rem;
    margin-bottom: 30px;
    color: #d4a373;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

/* Dettagli */
.details-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.detail-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 300px;
}

.detail-item i {
    font-size: 2rem;
    color: #d4a373;
    margin-bottom: 15px;
}

/* Galleria */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* RSVP */
form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form input, form select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

form button {
    align-self: flex-start;
}

/* Footer */
footer {
    background: #f9f9f9;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* Fade-in Effect */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.promo-code-section {
  max-width: 500px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.promo-input-group {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.promoCode {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 18px;
  text-align: center;
}

.promoCodeArea {
  font-family: 'Arial', sans-serif;
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 18px;
  text-align: center;
  height: 150px;
}

.cd-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  font-family: Arial, sans-serif;
  margin: 20px 0;
}

.cd-unit {
  text-align: center;
}

.cd-number {
  display: inline-block;
  font-size: 3rem;
  background: #fff;
  color: #000;
  padding: 15px 25px;
  border-radius: 10px;
  min-width: 80px;
  transition: transform 0.3s ease;
}

.cd-label {
  font-size: 0.9rem;
  display: block;
  margin-top: 5px;
  color: #000;
}

.cd-flip {
  transform: scale(1.2) rotateX(20deg);
}

.confirmPhoto {
  color: green;
  font-weight: bold;
}

.clienti-slideshow {
    padding: 60px 0;
    overflow: hidden;
}

.swiper-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.swiper-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    width: 200px;
    margin: 0 10px;
}

.cliente-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.cliente-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}
