/* CSS per la pagina di matrimonio */
/* Importazione e impostazione dei font */
@font-face {
    font-family: 'Lovile Bold';
    src: url('fonts/Lovile-Bold.ttf') format('truetype'); /* Sostituisci con il percorso corretto */
}

@font-face {
	font-family:'Canyonlands Script'; 
	src: url('fonts/canyonlands_script.woff') 
	format('woff'); font-weight: normal; font-style: normal;
}

@font-face {
	font-family:'YAEl5FGU3WA 0'; 
	src: url('fonts/Angelina.woff2') 
	format('woff2');
}

/* Impostazioni di base */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Bodoni Moda', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f3f0; /* #f0afa5; */
    overflow: hidden;
}

/* Contenitore principale */
.container {
    text-align: center;
    max-width: 800px;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
    z-index: 10;
}

/* Immagine di sfondo in alto a destra */
body::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 250px; /* Imposta la dimensione dell'immagine */
    height: 250px;
    background-image: url('media/top-right.png'); /* Sostituisci con il percorso dell'immagine */
    background-size: contain;
    background-repeat: no-repeat;
}

/* Immagine di sfondo in basso a sinistra */
body::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 350px; /* Imposta la dimensione dell'immagine */
    height: 250px;
    background-image: url('media/bottom-left.png'); /* Sostituisci con il percorso dell'immagine */
    background-size: contain;
    background-repeat: no-repeat;
}

/* Titolo del matrimonio */
h1 {
    font-size: 2.5rem;
    color: #9c1a36;
    margin: 0;
    padding-bottom: 1rem;
    font-family: 'Lovile Bold', serif;
    animation: slideInFromTop 2s ease-out forwards;
}

/* Nomi degli sposi */
.names {
    font-size: 4.5rem;
    color: #5a7c4d;
    margin: 0.5rem 0 2rem 0;
    font-family: "YAEl5FGU3WA 0", _fb_, auto;
    animation: fadeInNames 2s 0.5s ease-out forwards;
}

/* Countdown */
.countdown {
    font-size: 1.5rem;
    color: #333;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeInCountdown 2s 1s ease-out forwards;
    flex-wrap: wrap; /* Per adattarsi su schermi stretti */
}

.countdown-item {
    background-color: #9c1a36;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex: 1 1 100px; /* Adattabile alla larghezza del contenitore */
}

.countdown-item span {
    display: block;
    font-size: 1rem;
    margin-top: 0.5rem;
    color: #f0afa5;
}

/* Bottoni */
.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInButtons 2s 1.5s ease-out forwards;
}

.button {
    font-size: 1.2rem;
    padding: 0.8rem 2rem;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    flex: 1 1 45%;
    max-width: 300px;
    text-align: center;
    text-decoration: none;
}

.button-primary {
    background-color: #5a7c4d;
}

.button-secondary {
    background-color: #9c1a36;
}

.button:hover {
    transform: scale(1.1);
    background-color: #8a5a3b;
}

/* Effetti di animazione */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInNames {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInButtons {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInCountdown {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Media Query per schermi piccoli */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }
    .names {
        font-size: 2.5rem;
    }
    .countdown {
        font-size: 1.2rem;
        gap: 0.5rem;
    }
    .button {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }
}