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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fafafa;
}

html {
    scroll-behavior: smooth;
}

.header {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/storage/images/sfondo matrimonio_grande.jpg');
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 60px;
    background-color: #f8f8f8;
    background-size: cover;
}

.header-content {
    position: relative;
    z-index: 1;
    animation: fadeIn 2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.header-content p {
    font-size: 1.8rem;
    margin: 0.5rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.photo-section {
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    background: #fff;
}

.photo-container {
    width: 45%;
    max-width: 600px;
    position: relative;
    transition: transform 0.3s ease;
}

.photo-container:hover {
    transform: translateY(-10px);
}

.photo-container img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.photo-container:hover img {
    transform: scale(1.02);
}

.photo-container:nth-child(even) {
    margin-top: 3rem;
}

.text-content {
    padding: 2rem;
    text-align: center;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 1rem;
}

.text-content h2 {
    margin-bottom: 1rem;
    color: #5ed0f3;
    font-size: 2rem;
    font-weight: 600;
}

.text-content p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.heart-decoration {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #5ed0f3;
    transform: rotate(45deg);
    animation: heartbeat 1.5s ease-in-out infinite;
}

.heart-decoration::before,
.heart-decoration::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: #5ed0f3;
    border-radius: 50%;
}

.heart-decoration::before {
    left: -15px;
}

.heart-decoration::after {
    top: -15px;
}

@keyframes heartbeat {
    0% {
        transform: rotate(45deg) scale(1);
    }

    50% {
        transform: rotate(45deg) scale(1.1);
    }

    100% {
        transform: rotate(45deg) scale(1);
    }
}

.countdown-section {
    background: linear-gradient(135deg, #5ed0f3, #ff8e8e);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.1;
    animation: sparkle 20s linear infinite;
}

.countdown-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-radius: 15px;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.countdown-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .photo-container {
        width: 90%;
    }

    .header-content h1 {
        font-size: 2.5rem;
    }

    .header-content p {
        font-size: 1.2rem;
    }

    .countdown-container {
        gap: 1rem;
    }

    .countdown-item {
        min-width: 100px;
        padding: 1rem;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .countdown-title {
        font-size: 2rem;
    }
}

.welcome-section {
    padding: 4rem 2rem;
    text-align: center;
    background: #fff;
    position: relative;
}

.welcome-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.4rem;
    line-height: 1.8;
    color: #333;
    position: relative;
    z-index: 1;
}

.welcome-text::before,
.welcome-text::after {
    position: absolute;
    font-size: 2rem;
    color: #5ed0f3;
    opacity: 0.6;
}

.welcome-text::before {
    left: -2rem;
    top: -1rem;
    transform: rotate(-15deg);
}

.welcome-text::after {
    right: -2rem;
    bottom: -1rem;
    transform: rotate(15deg);
}

@media (max-width: 768px) {
    .welcome-text {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
}

.map-section {
    padding: 4rem 2rem;
    background: #fff;
    text-align: center;
}

.map-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
    position: relative;
}

.map-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #5ed0f3;
    margin: 1rem auto;
    border-radius: 3px;
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

@media (max-width: 768px) {
    .map-container iframe {
        height: 300px;
    }

    .map-title {
        font-size: 2rem;
    }
}

.wedding-info-section {
    padding: 4rem 2rem;
    background: #fff;
    text-align: center;
}

.wedding-info-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
    position: relative;
}

.wedding-info-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #5ed0f3;
    margin: 1rem auto;
    border-radius: 3px;
}

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

.wedding-info-text {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

.wedding-info-list {
    text-align: left;
    list-style: none;
    padding: 0;
}

.wedding-info-list li {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #666;
    position: relative;
    padding-left: 2rem;
}

.wedding-info-list li::before {
    position: absolute;
    left: 0;
    color: #5ed0f3;
    font-size: 1.2rem;
}

.contact-info {
    margin-top: 2rem;
    font-size: 1.3rem;
    color: #333;
}

.contact-info p {
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    .wedding-info-text {
        font-size: 1.2rem;
    }

    .wedding-info-list li {
        font-size: 1.1rem;
    }

    .contact-info {
        font-size: 1.1rem;
    }

    .wedding-info-title {
        font-size: 2rem;
    }
}

/** side menu **/

.sidenav {
    height: 100%;
    /* 100% Full-height */
    width: 0;
    /* 0 width - change this with JavaScript */
    position: fixed;
    /* Stay in place */
    z-index: 1001;
    /* Stay on top */
    top: 0;
    /* Stay at the top */
    left: 0;
    background-color: rgba(1,1,1,0.90);
    /* Black*/
    overflow-x: hidden;
    /* Disable horizontal scroll */
    padding-top: 60px;
    /* Place content 60px from the top */
    transition: 0.5s;
    /* 0.5 second transition effect to slide in the sidenav */
}

.sidenav hr {
    width: 80%;
    margin: 0 auto;
}
/* The navigation menu links */
.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
    color: #f1f1f1;
}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

/** end side menu **/

.header.no-cover{
    height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/storage/images/villa-margherita.jpg');
    background-size: cover;
    background-position: center;
    /*background-color: #82dbf7;*/
}

/* Add a subtle animation for the menu items */
@keyframes menuItemPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.nav-links li:hover a {
    animation: menuItemPulse 1s ease infinite;
}

.hamburger {
    position: fixed;
    margin-top: 20px;
    margin-left: 20px;
    z-index: 2;
}

.menu-button {
    cursor: pointer;
    display: inline;
    background: rgb(94, 208, 243);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    outline: none;
    transition: all 0.3s ease;
    font-size: 2rem;
    padding: 10px;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    color: white;

}

.menu-button:hover {
    transform: scale(1.05) translateZ(0);
    background: rgb(252, 143, 144);
    /*rgb(252, 143, 144);*/
}

/* Pulsante galleria – versione grande */
.btn-gallery {
    display: inline-block;
    padding: 1.25rem 1.25rem;
    /* ↑ più alto, → più largo */
    background-color: #5ed0f3;
    color: #fff;
    font-size: 1.125rem;
    /* ~18 px */
    font-weight: 600;
    text-decoration: none;

    border: none;
    border-radius: 50px;
    /* mantieni effetto pillola */
    /* centra verticalmente */
    font-size: 4.5rem;
    /* ombra e transizioni */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.15s ease;
}

/* Hover / Focus */
.btn-gallery:hover,
.btn-gallery:focus {
    background-color: #4cbde0;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.20);
}

/* Active (click) */
.btn-gallery:active {
    transform: translateY(2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.20);
}

.gallery-button-container {
    text-align: center;
    margin: 2rem auto;
}

#copy-iban-link{
    color:black;
}

@media only screen and (max-width: 600px) {
    .header {
        height: inherit;
        background-size: contain;
        padding-top: 82px;;
    }
    .header h1{
        font-size: 1.7rem;
    }

    .header p{
        line-height: 1.4rem;
    }
    .hamburger {
        margin-top: 15px;
        margin-left: 5px;
    }

    .menu-button {
        font-size: 1.5rem;
    }
    .gallery-button-container {
        width: 90%;
    }
    .btn-gallery {
        font-size: 1.5rem;
    }
}
