* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Hurricane', sans-serif;
}

body {
    font-family: 'Hurricane', sans-serif;
    overflow-x: hidden;
    color: #333;
}

/* Sezioni parallax */
.parallax-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateZ(0);
    will-change: transform;
    z-index: -1;
}

/* Sezioni contenuto */
.content-section {
    background-color: white;
    padding: 80px 20px;
    text-align: center;
}

.content-section h2 {
    font-size: 36px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #afc5b6;
}

.content-section p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Overlay su immagini */
.overlay {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 40px;
    color: white;
    max-width: 100%;
    text-align: center;
    backdrop-filter: blur(3px);
    width: 100%;
}

.overlay h2 {
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.overlay p {
    font-size: 30px;
    line-height: 1.6;
}

/* Home e countdown */
#home-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 50px;
}

.names {
    font-size: 64px;
    font-family: 'Hurricane', sans-serif;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.countdown-container {
    margin-top: 30px;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.countdown-item {
    text-align: center;
    min-width: 80px;
}

.countdown-item span {
    font-size: 40px;
    font-weight: bold;
    display: block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 5px;
}

.countdown-item p {
    font-size: 30px;
    margin: 0;
}

.wedding-date {
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Hurricane', sans-serif;
}

/* Bottoni */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #afc5b6;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    margin: 10px 5px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-transform: uppercase;
    font-family: 'Hurricane', sans-serif !important;
}

.btn:hover {
    background-color: #afc5b6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.button-group {
    margin-top: 20px;
}

/* Form RSVP */
.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #afc5b6;
    outline: none;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    margin-top: 10px;
    width: 100%;
    padding: 15px;
}

/* Footer */
.footer-section {
    height: 50vh;
    position: relative;
}

.footer-content {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 10px;
    color: white;
    text-align: center;
    width: 80%;
    max-width: 800px;
    backdrop-filter: blur(5px);
}

.logo-container {
    position: absolute;
    width: 100%;
    right: 0;
    height: 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #afc5b6;
}

.footer-logo {
    max-width: 100px;
    height: auto;
}

.signature {
    font-family: 'Hurricane', sans-serif;
    font-size: 28px;
    margin-top: 20px;
}

/* Bottone torna in alto */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #afc5b6;
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    font-size: 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.back-to-top-btn:hover {
    background-color: #abcfb7;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top-btn.show {
    display: block;
    animation: fadeIn 0.3s;
}


.menu-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
}


.menu-toggle {
    width: 50px;
    height: 50px;
    background-color: rgba(175, 197, 182, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1010;
    position: relative;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.menu-toggle:hover {
    background-color: rgba(155, 177, 162, 0.9); 
    transform: scale(1.05);
    animation: none;
}

.menu-toggle:focus {
    outline: none;
}

.menu-toggle.active {
    animation: none;
    background-color: rgba(175, 197, 182, 1);
}


.menu-icon-open,
.menu-icon-close {
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    position: absolute; 
}

.menu-icon-open {
    opacity: 1;
    visibility: visible;
}

.menu-icon-close {
    opacity: 0;
    visibility: hidden;
}

.menu-toggle.active .menu-icon-open {
    opacity: 0;
    visibility: hidden;
}

.menu-toggle.active .menu-icon-close {
    opacity: 1;
    visibility: visible;
}


/* @keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(175, 197, 182, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(175, 197, 182, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(175, 197, 182, 0);
    }
}
 */

.navigation-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    z-index: 1005;
    padding-top: 80px;
    overflow-y: auto;
    border-left: 4px solid #afc5b6; 
}

.navigation-menu.active {
    right: 0;
}

.navigation-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navigation-menu li {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid rgba(175, 197, 182, 0.2); 
}

.navigation-menu a {
    display: block;
    padding: 15px 30px;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.navigation-menu a i {
    margin-right: 10px;
    color: #afc5b6; 
    width: 20px;
    text-align: center;
}

.navigation-menu a:hover {
    background-color: rgba(175, 197, 182, 0.1); 
    padding-left: 35px;
    color: #afc5b6;
}


.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


.navigation-menu::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #afc5b6;
    box-shadow: 0 0 10px rgba(175, 197, 182, 0.5);
}

.navigation-menu::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #afc5b6;
    box-shadow: 0 0 10px rgba(175, 197, 182, 0.5);
}


@media screen and (max-width: 768px) {
    .menu-container {
        top: 20px;
        right: 20px;
    }
    
    .menu-toggle {
        width: 45px;
        height: 45px;
    }
    
    .menu-icon-open,
    .menu-icon-close {
        font-size: 18px;
    }
    
    .navigation-menu {
        width: 260px;
        right: -260px;
        padding-top: 70px;
    }
    
    .navigation-menu a {
        padding: 12px 25px;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .menu-container {
        top: 15px;
        right: 15px;
    }
    
    .menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    .menu-icon-open,
    .menu-icon-close {
        font-size: 16px;
    }
    
    .navigation-menu {
        width: 230px;
        right: -230px;
    }
    
    .navigation-menu a {
        padding: 10px 20px;
        font-size: 15px;
    }
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media screen and (max-width: 768px) {
    .back-to-top-btn {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }
}


@media screen and (max-width: 768px) {
    .names {
        font-size: 48px;
    }
    
    .overlay h2 {
        font-size: 32px;
    }
    
    .countdown-item {
        min-width: 60px;
    }
    
    .countdown-item span {
        font-size: 30px;
    }
    
    .footer-content {
        width: 90%;
        padding: 30px;
    }
}

@media screen and (max-width: 480px) {
    .names {
        font-size: 40px;
    }
    
    #countdown {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 50px;
    }
    
    .countdown-item span {
        font-size: 24px;
    }
    
    .overlay {
        padding: 20px !important;
    }
    
    .content-section h2 {
        font-size: 28px;
    }
    
    .content-section p {
        font-size: 25px;
    }
    
    .rsvp-form {
        padding: 20px;
    }
}
