/* Reset e variabili CSS */
:root {
    --primary-color: #a0617a;
    --secondary-color: #f5f0f1;
    --accent-color: #355e3b;
    --text-dark: #2c2c2c;
    --text-light: #6b6b6b;
    --white: #ffffff;
    --rose-light: #d4a6b8;
    --rose-medium: #a0617a;
    --rose-dark: #7a4a5e;
    --burgundy: #722f37;
    --forest-green: #355e3b;
    --cream-bg: #faf9f7;
    --beige-light: #f7f4f0;
    --beige-warm: #f2ede6;
    --glass-bg: rgba(160, 97, 122, 0.1);
    --glass-border: rgba(160, 97, 122, 0.2);
    --shadow-light: 0 8px 32px rgba(160, 97, 122, 0.15);
    --shadow-heavy: 0 20px 60px rgba(160, 97, 122, 0.25);
    --gradient-primary: linear-gradient(135deg, #d4a6b8 0%, #a0617a 50%, #722f37 100%);
    --gradient-soft: linear-gradient(135deg, #faf9f7 0%, #f7f4f0 50%, #f2ede6 100%);
    --gradient-glass: linear-gradient(135deg, rgba(160, 97, 122, 0.1) 0%, rgba(160, 97, 122, 0.05) 100%);
    --blur-effect: blur(10px);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

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

/* Custom Cursor - Solo desktop */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--blur-effect);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-soft);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-soft);
    opacity: 1;
}

/* Floral Elements - Solo flower-2 per mobile */
.floral-element {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
    opacity: 0.9;
    pointer-events: none;
}

/* Desktop - tutti i fiori */
.floral-top-left {
    top: 0%;
    left: -100px;
    width: 600px;
    height: 500px;
    background-image: url('media/flower/flower-2.png');
    animation: floatGentle 8s ease-in-out infinite;
}

.floral-top-right {
    top: 0%;
    right: -100px;
    width: 600px;
    height: 500px;
    background-image: url('media/flower/flower-1.png');
    animation: floatGentle 10s ease-in-out infinite -2s;
}

.floral-bottom-right2 {
    bottom: 0%;
    right: 7%;
    width: 350px;
    height: 300px;
    background-image: url('media/flower/flower-4.png');
    animation: floatGentle 12s ease-in-out infinite -4s;
    z-index: 3;
}

.floral-bottom-right {
    bottom: -5%;
    right: -5%;
    width: 400px;
    height: 300px;
    background-image: url('media/flower/flower-10.png');
    animation: floatGentle 9s ease-in-out infinite -1s;
    z-index: 2;
}

.floral-scatter-3 {
    bottom: 0%;
    left: 5%;
    width: 125px;
    height: 125px;
    background-image: url('media/flower/flower-6.png');
    animation: floatGentle 14s ease-in-out infinite -3s;
}

.floral-scatter-4 {
    bottom: 10%;
    right: 50%;
    width: 135px;
    height: 135px;
    background-image: url('media/flower/flower-15.png');
    animation: floatGentle 16s ease-in-out infinite -5s;
}

.floral-leaf-1 {
    bottom: 35%;
    left: 35%;
    width: 90px;
    height: 120px;
    background-image: url('media/flower/flower-8.png');
    animation: floatGentle 20s ease-in-out infinite -7s;
    opacity: 0.7;
}

.floral-leaf-2 {
    top: 55%;
    right: 25%;
    width: 100px;
    height: 130px;
    background-image: url('media/flower/flower-12.png');
    animation: floatGentle 17s ease-in-out infinite -9s;
    opacity: 0.6;
}

.floral-leaf-3 {
    bottom: 55%;
    left: 35%;
    width: 95px;
    height: 125px;
    background-image: url('media/flower/flower-13.png');
    animation: floatGentle 19s ease-in-out infinite -4s;
    opacity: 0.7;
}

.floral-accent-1 {
    bottom: 25%;
    left: 5%;
    width: 110px;
    height: 110px;
    background-image: url('media/flower/flower-14.png');
    animation: floatGentle 13s ease-in-out infinite -2s;
    opacity: 0.8;
}

/* Elemento floreale mobile - solo flower-2 centrato */
.floral-mobile-center {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    max-width: 400px;
    max-height: 400px;
    background-image: url('media/flower/flower-2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
    animation: floatGentle 8s ease-in-out infinite;
}

/* Animazione fluttuante dolce */
@keyframes floatGentle {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }
    25% { 
        transform: translateY(-8px) rotate(1deg);
        opacity: 1;
    }
    50% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }
    75% { 
        transform: translateY(-5px) rotate(-1deg);
        opacity: 1;
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-name {
    display: inline-block;
    color: var(--forest-green);
    animation: glow 2s ease-in-out infinite alternate;
}

.hero-ampersand {
    font-size: 0.8em;
    color: var(--accent-color);
    margin: 0 0.5em;
}

.hero-date {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--accent-color);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--primary-color);
    margin-top: 10px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Section Styles */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Countdown Section */
.countdown-section {
    padding: 60px 0;
    background: var(--burgundy);
}

.countdown-section .section-title {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.countdown-section .section-title::after {
    background: linear-gradient(135deg, var(--white) 0%, var(--rose-light) 100%);
}

.countdown-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.countdown-item:hover {
    transform: translateY(-5px);
    background: var(--white);
    box-shadow: var(--shadow-heavy);
}

.countdown-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* About Section */
.about-section {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    align-items: center;
}

.about-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.about-image {
    flex-shrink: 0;
}

.about-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.about-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Story Section */
.story-section {
    padding: 100px 0;
    background: var(--beige-warm);
}

.video-tv {
    max-width: 800px;
    margin: 0 auto;
}

.tv-frame {
    background: linear-gradient(145deg, #2c2c2c, #404040);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow-heavy);
    position: relative;
}

.tv-screen {
    position: relative;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.tv-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--rose-dark);
}

.tv-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 20px;
}

.control-btn {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--rose-dark);
    transform: scale(1.1);
}

.language-selector select {
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    padding: 10px 15px;
    color: var(--text-dark);
    cursor: pointer;
}

/* Gallery Section - Mobile Carousel */
.gallery-section {
    padding: 100px 0;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    grid-auto-rows: 200px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:nth-child(3n) {
    grid-row: span 2;
}

.gallery-item:nth-child(5n) {
    grid-column: span 2;
}

/* Mobile Gallery Carousel */
.mobile-gallery-carousel {
    display: none;
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
	padding: 0.5rem 0;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;  /* Impedisce la compressione */
    min-height: 10px; /* Impedisce la compressione */
    border-radius: 50%;
    background: var(--text-light);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;   /* Impedisce il ridimensionamento */
    display: block;
}

.gallery-dot.active {
    background: var(--primary-color);
    opacity: 1;
    transform: scale(1.2);
   	width: 10px;      /* Mantiene dimensioni fisse anche quando attivo */
    height: 10px;     /* Mantiene dimensioni fisse anche quando attivo */
}

/* Witnesses Section - Mobile Carousel */
.witnesses-section {
    padding: 100px 0;
    background: var(--beige-light);
}

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

.witness-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.witness-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.witness-image {
    margin-bottom: 1.5rem;
}

.witness-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.witness-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.witness-card p {
    color: var(--text-light);
}

/* Mobile Witnesses Carousel */
.mobile-witnesses-carousel {
    display: none;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.witnesses-slide {
    display: none;
    width: 100%;
    padding: 0 1rem;
}

.witnesses-slide.active {
    display: block;
}

.witnesses-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.witnesses-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-light);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.witnesses-dot.active {
    background: var(--primary-color);
    opacity: 1;
    transform: scale(1.2);
}

/* Bridesmaids Section - Mobile Carousel */
.bridesmaids-section {
    padding: 100px 0;
}

.bridesmaids-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.bridesmaid-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.bridesmaid-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.bridesmaid-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.bridesmaid-info {
    padding: 2rem;
}

.bridesmaid-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.bridesmaid-info p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Mobile Bridesmaids Carousel */
.mobile-bridesmaids-carousel {
    display: none;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.bridesmaids-slide {
    display: none;
    width: 100%;
    padding: 0 1rem;
}

.bridesmaids-slide.active {
    display: block;
}

.bridesmaids-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.bridesmaids-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-light);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bridesmaids-dot.active {
    background: var(--primary-color);
    opacity: 1;
    transform: scale(1.2);
}

/* Ceremony & Reception Sections - Mobile Swipe */
.ceremony-section,
.reception-section {
    padding: 100px 0;
}

.ceremony-section {
    background: var(--beige-warm);
}

.ceremony-content,
.reception-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}


.info-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.info-card h3 i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.info-card p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.cta-button {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
    background: linear-gradient(135deg, #d4a6b8 0%, #722f37 100%);
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.map-container iframe {
    width: 100%;
    height: 440px;
    border: none;
}

/* Mobile Ceremony/Reception Swipe */
.mobile-ceremony-container,
.mobile-reception-container {
    display: none;
    position: relative;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
}

.ceremony-slides,
.reception-slides {
    display: flex;
    width: 200%;
    transition: transform 0.3s ease;
}

.ceremony-slide,
.reception-slide {
    width: 50%;
    flex-shrink: 0;
}

.swipe-indicator {
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem;
    background: var(--rose-light);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.swipe-indicator i {
    animation: swipeArrow 1.5s ease-in-out infinite;
}

@keyframes swipeArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Timeline Section */
.timeline-section {
    padding: 100px 0;
    background: var(--beige-light);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-time {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    flex: 1;
    margin: 0 2rem;
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-light);
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--secondary-color);
}

.faq-question h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.faq-question i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--secondary-color);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 2rem 2rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Quiz Section */
.quiz-section {
    padding: 100px 0;
    background: var(--beige-warm);
}

.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-light);
}

.quiz-intro {
    text-align: center;
}

.quiz-intro p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.quiz-start-btn,
.quiz-restart-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-start-btn:hover,
.quiz-restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.quiz-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin-right: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.quiz-question {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.quiz-options {
    display: grid;
    gap: 1rem;
}

.quiz-option {
    background: var(--secondary-color);
    border: 2px solid transparent;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.quiz-option:hover {
    border-color: var(--primary-color);
    background: var(--white);
}

.quiz-option.correct {
    background: #d4edda;
    border-color: #28a745;
}

.quiz-option.incorrect {
    background: #f8d7da;
    border-color: #dc3545;
}

.quiz-results {
    text-align: center;
}

.results-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.results-score {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 2rem 0;
}

.leaderboard {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--secondary-color);
}

.leaderboard h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.leaderboard-list {
    display: grid;
    gap: 0.5rem;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: var(--secondary-color);
    border-radius: 10px;
}

/* Mobile Quiz Fixes */
@media (max-width: 768px) {
    .leaderboard {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .leaderboard-list {
        max-height: 300px;
        overflow-y: auto;
    }
    
    .leaderboard-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Forza la visualizzazione */
    .leaderboard-list p {
        text-align: center !important;
        color: #999 !important;
        font-size: 0.9rem !important;
    }
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--beige-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    width: 50px;
    text-align: center;
}

.contact-item h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: var(--white);
    padding: 0 5px;
    color: var(--primary-color);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #ccc;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--rose-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #ccc;
}

/* Animations */
@keyframes glow {
    0% { text-shadow: 0 0 5px rgba(53, 94, 59, 0.5); }
    100% { text-shadow: 0 0 20px rgba(53, 94, 59, 0.8), 0 0 30px rgba(53, 94, 59, 0.6); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* AOS Animation Classes */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease;
}

[data-aos="zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 6rem);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-card {
        flex-direction: column;
        text-align: center;
    }
    
    .ceremony-content,
    .reception-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }
    
    .timeline-item:nth-child(even) {
        flex-direction: row !important;
    }
    
    .timeline-content {
        margin: 0 0 0 2rem;
    }
    
    /* Mostra i carousel su tablet */
    .gallery-container {
        display: none;
    }
    
    .mobile-gallery-carousel {
        display: block;
    }
    
    .witnesses-grid {
        display: none;
    }
    
    .mobile-witnesses-carousel {
        display: block;
    }
    
    .bridesmaids-grid {
        display: none;
    }
    
    .mobile-bridesmaids-carousel {
        display: block;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .cursor,
    .cursor-follower {
        display: none;
    }
    
    /* Hero - Solo flower-2 su mobile */
    .floral-top-left,
    .floral-top-right,
    .floral-bottom-right2,
    .floral-bottom-right,
    .floral-scatter-3,
    .floral-scatter-4,
    .floral-leaf-1,
    .floral-leaf-2,
    .floral-leaf-3,
    .floral-accent-1 {
        display: none;
    }
    
    .floral-mobile-center {
        display: block;
    }
    
    .floral-mobile-center {
        animation: floatGentle 8s ease-in-out infinite;
    }
    
    @keyframes floatGentle {
        0%, 100% { 
            transform: translate(-50%, -50%) translateY(0px) rotate(0deg);
            opacity: 0.3;
        }
        25% { 
            transform: translate(-50%, -50%) translateY(-8px) rotate(1deg);
            opacity: 0.4;
        }
        50% { 
            transform: translate(-50%, -50%) translateY(0px) rotate(0deg);
            opacity: 0.35;
        }
        75% { 
            transform: translate(-50%, -50%) translateY(-5px) rotate(-1deg);
            opacity: 0.4;
        }
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-heavy);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        font-size: 1.5rem;
        margin: 1rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 4rem);
    }
    
    .hero-date {
        font-size: clamp(1rem, 4vw, 2rem);
    }
    
    /* Countdown più compatto */
    .countdown-section {
        padding: 40px 0;
    }
    
    .countdown-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 350px;
    }
    
    .countdown-item {
        padding: 1rem;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-card {
        padding: 1.5rem;
    }
    
    .about-image img {
        width: 100px;
        height: 100px;
    }
    
    .tv-frame {
        padding: 20px;
    }
    
    .tv-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    /* Mobile Gallery */
    .gallery-container {
        display: none;
    }
    
    .mobile-gallery-carousel {
        display: block;
    }
    
    /* Mobile Witnesses */
    .witnesses-grid {
        display: none;
    }
    
    .mobile-witnesses-carousel {
        display: block;
    }
    
    .witness-card {
        padding: 1.5rem;
    }
    
    .witness-image img {
        width: 100px;
        height: 100px;
    }
    
    /* Mobile Bridesmaids */
    .bridesmaids-grid {
        display: none;
    }
    
    .mobile-bridesmaids-carousel {
        display: block;
    }
    
    /* Mobile Ceremony/Reception */
    .ceremony-content,
    .reception-content {
        display: none;
    }
    
    .mobile-ceremony-container,
    .mobile-reception-container {
        display: block;
    }
    
    .info-card {
        padding: 2rem;
    }
    
    .info-card h3 {
        font-size: 1.5rem;
    }
    
    .info-card h3 i {
        font-size: 2rem;
    }
    
    .timeline {
        padding-left: 0;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-content {
        margin-left: 1rem;
        padding: 1.5rem;
    }
    
    .quiz-container {
        padding: 2rem;
        margin: 0 10px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 6vw, 3rem);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .countdown-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 250px;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .quiz-container {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .swipe-indicator {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
}

/* 4K Screens */
@media (min-width: 2560px) {
    .container {
        max-width: 1600px;
        padding: 0 40px;
    }
    
    .hero-title {
        font-size: clamp(6rem, 8vw, 12rem);
    }
    
    .hero-date {
        font-size: clamp(2rem, 4vw, 4rem);
    }
    
    .section-title {
        font-size: clamp(3rem, 5vw, 5rem);
    }
    
    .countdown-number {
        font-size: 4rem;
    }
    
    .about-image img {
        width: 200px;
        height: 200px;
    }
    
    .witness-image img {
        width: 150px;
        height: 150px;
    }
    
    .tv-frame {
        padding: 60px;
    }
    
    .control-btn {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .timeline-content {
        padding: 3rem;
    }
    
    .quiz-container {
        padding: 4rem;
        max-width: 800px;
    }
    
    .contact-form {
        padding: 4rem;
    }
    
    .info-card {
        padding: 4rem;
    }
}

/* Rimozione dark mode completamente */
/* (La dark mode è stata rimossa dal CSS) */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .hero-name {
        animation: none;
    }
    
    [data-aos] {
        transition: none !important;
    }
    
    .floral-mobile-center {
        animation: none !important;
    }
}

/* Print styles */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navbar,
    .hero-scroll,
    .cursor,
    .cursor-follower,
    .quiz-section {
        display: none !important;
    }
    
    .hero {
        height: auto;
        page-break-after: always;
    }
    
    .section-title {
        page-break-after: avoid;
    }
    
    .timeline-item,
    .faq-item,
    .witness-card,
    .bridesmaid-card {
        page-break-inside: avoid;
    }
}

