@font-face {
    font-family: 'Aleo';
    src: url('../fonts/Aleo/static/Aleo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aleo';
    src: url('../fonts/Aleo/static/Aleo-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aleo';
    src: url('../fonts/Aleo/static/Aleo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aleo';
    src: url('../fonts/Aleo/static/Aleo-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Parisienne';
    src: url('../fonts/Parisienne/Parisienne-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lovelace';
    src: url('../fonts/Lovelace/Zetafonts - Lovelace Text Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lovelace';
    src: url('../fonts/Lovelace/Zetafonts - Lovelace Text Bold Italic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

html {
    font-size: 10px;
    line-height: 1.5;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    font-size: 1.6rem;
    line-height: 1.5;
    background-color: var(--light-avorio);
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

h1 {
    font-family: 'Aleo', serif;
    font-weight: 700;
    font-size: 5rem;
    line-height: 1.1;
    color: var(--css-verde-eucalipto-dark);
}

.h-wedding-title,
.player-cta {
    opacity: 0;
}

body.is-loaded .h-wedding-title {
    animation: title-enter-from-top 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

body.is-loaded .player-cta:not(.is-revealed) {
    animation: cta-enter-from-bottom 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

@keyframes title-enter-from-top {
    0% {
        opacity: 0;
        transform: translateY(-28px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cta-enter-from-bottom {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

.container {
    width: 100%;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    margin-top: auto;
    margin-bottom: auto;
    margin-right: auto;
    margin-left: auto;
}

.wedding-wrapper {
    max-width: 100%;
    position: relative;
    margin: 1rem auto;
    text-align: center;
    background-color: #ffffff;
    padding: 1.5rem 0 1.75rem;
    border: 2px solid var(--css-verde-eucalipto-dark);
}

.el-img-wedding {
    width: min(100%, 260px);
    aspect-ratio: 3 / 4;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.el-img-wedding img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 3s ease;
}

.img-wedding--bw {
    opacity: 1;
    /* transition: opacity 3s ease; */
}

.img-wedding--color {
    opacity: 0;
    /* transition: opacity 3s ease; */
}

.el-img-wedding.is-color-visible .img-wedding--bw {
    opacity: 0;
}

.el-img-wedding.is-color-visible .img-wedding--color {
    opacity: 1;
}

.player-stage {
    width: 100%;
    max-width: 100%;
    margin: 1.4rem auto 0;
    padding: 0 5%;
    height: 4rem;
    /* display: grid; */
    align-items: start;
}

.player-stage .player-cta,
.player-stage .wave-player-wrapper {
    grid-area: 1 / 1;
}

.wave-player-wrapper {
    width: 100%;
    padding: 0;
}

.text-reveal-stage {
    width: 100%;
    /* margin: 1rem auto 0; */
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    overflow: hidden;
    transition: max-height 10s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.75s ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), margin-top 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.text-reveal-stage.is-open {
    max-height: 1200px;
    opacity: 1;
    transform: translateY(0);
}

.text-reveal-panel {
    width: 100%;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    opacity: 0;
    will-change: transform, opacity;
}

.text-reveal-panel h2,
.text-reveal-panel h3,
.text-reveal-panel h4,
.text-reveal-panel p {
    width: 100%;
}

.text-reveal-panel--left.is-revealed {
    animation: text-fade-bounce-left 4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.text-reveal-panel--right.is-revealed {
    animation: text-fade-bounce-right 1.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes text-fade-bounce-left {
    0% {
        opacity: 0;
        transform: translateX(-500px) translateY(12px); 
        /* scale(2); */
    }
    50% {
        opacity: 1;
        /* transform: translateX(0) translateY(0) scale(1.5); */
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0); 
        /* scale(1); */
    }
    /* 0% {
        opacity: 0;
        transform: translateX(-72px) translateY(12px) scale(0.98);
    }

    58% {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1.05);
    }

    74% {
        transform: translateX(0) translateY(-2px) scale(1);
    }

    90% {
        transform: translateX(0) translateY(1px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
    } */
}

@keyframes text-fade-bounce-right {
    0% {
        opacity: 0;
        transform: translateX(500px) translateY(12px); 
        /* scale(1.10); */
    }
    45% {
        opacity: 1;
        /* transform: translateX(0) translateY(0) scale(1.05); */
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0); 
        /* scale(1); */
    }
    /* 0% {
        opacity: 0;
        transform: translateX(72px) translateY(12px) scale(1.08);
    }

    58% {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1.05);
    }

    74% {
        transform: translateX(0) translateY(-2px) scale(1.03);
    }

    90% {
        transform: translateX(0) translateY(1px) scale(1.01);
    }

    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
    } */
}

.stay-tuned-stage {
    position: absolute;
    top: 65px;
    right: 5px;
    padding: 0 0.5rem;
    display: flex;
    justify-content: flex-end;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.stay-tuned-stage.is-open {
    max-height: 220px;
    opacity: 1;
    transform: translateY(0);
    
}

.stay-tuned-panel {
    width: 100%;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    opacity: 0;
    will-change: transform, opacity;
}

.stay-tuned-panel.is-revealed {
    animation: stay-tuned-fade-float-right 3.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes stay-tuned-fade-float-right {
    0% {
        opacity: 0;
        transform: translateX(92px) translateY(12px);
    }

    54% {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }

    100% {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

.stay-tuned-panel.is-floating {
    animation: stay-tuned-bounce 2s infinite;
}

@keyframes stay-tuned-bounce {

    0%,
    100% {
        opacity: 1;
        transform: translateY(0);
    }

    25% {
        opacity: 1;
        transform: translateY(-8px);
    }

    50% {
        opacity: 1;
        transform: translateY(0);
    }

    75% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

.reveal-later.is-revealed {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.wave-player {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    padding: 0.9rem;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--color-player-bg-top) 0%, var(--color-player-bg-bottom) 100%);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.9rem;
    box-shadow: 0 8px 16px var(--color-player-shadow);
    opacity: 1;
    transform: translateY(0);
    overflow: hidden;
    will-change: opacity, transform, max-height;
    transition: opacity 2s cubic-bezier(0.22, 1, 0.36, 1), transform 2s cubic-bezier(0.22, 1, 0.36, 1), max-height 2s cubic-bezier(0.22, 1, 0.36, 1), margin-top 2s cubic-bezier(0.22, 1, 0.36, 1), padding 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.wave-player.is-hidden {
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(-18px) scale(0.985);
    pointer-events: none;
}

.player-cta {
    margin: 0 auto;
    display: block;
    width: 130px;
    aspect-ratio: 1974 / 719;
    border: 0;
    padding: 0;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: 0 8px 16px var(--color-player-shadow);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.player-cta::before,
.player-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    transition: opacity 0.35s ease;
}

.player-cta::before {
    background: url('../images/player.svg') center / contain no-repeat;
    opacity: 1;
}

.player-cta::after {
    background: url('../images/player-hover.svg') center / contain no-repeat;
    opacity: 0;
}

.player-cta:hover::after,
.player-cta:focus-visible::after,
.player-cta.is-revealed::after {
    opacity: 1;
}

.player-cta.is-revealed::before {
    opacity: 0;
}

.player-cta:focus-visible {
    outline: none;
}

.wave-player-button {
    border: 0;
    border-radius: 999px;
    background-color: var(--css-cipria-dark);
    color: var(--color-player-button-text);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.75rem 1.2rem;
    cursor: pointer;
}

.wave-player-button:hover,
.wave-player-button:focus-visible {
    background-color: var(--css-cipria-dark);
    filter: brightness(0.95);
    outline: none;
}

.sound-wave {
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    overflow: hidden;
}

.sound-wave .bar {
    width: 4px;
    height: 12px;
    border-radius: 99px;
    background: var(--color-wave-bar);
    transform-origin: center;
    animation: wave-bounce 1s ease-in-out infinite;
    animation-play-state: paused;
    opacity: 0.45;
}

.sound-wave.is-playing .bar {
    animation-play-state: running;
    opacity: 1;
}

@keyframes wave-bounce {

    0%,
    100% {
        height: 10px;
    }

    50% {
        height: 62px;
    }
}

.h-wedding-data {
    font-family: 'Parisienne', cursive;
    font-size: 4.6rem;
    font-weight: 400;
}

.h-wedding-text {
    font-family: 'Lovelace', serif;
}

.h-wedding-sposi,
.p-stay-tuned {
    font-family: 'Montserrat', sans-serif;
}

.h-wedding-text {
    font-size: 3rem;
    font-weight: 700;
    color: var(--css-cipria-dark);
    text-transform: uppercase;
}
.h-wedding-sposi {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--css-verde-eucalipto-dark);
    text-transform: uppercase;
}
.p-stay-tuned {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--css-white);
    text-align: right;
    background-color: var(--css-cipria-dark);
    position: relative;
    z-index: 100;
    padding: 5px;
    text-transform: uppercase;
    line-height: 2.2rem;
    border-radius: 8px;
    margin-top: 15px;
}
@media (min-width: 480px) {
    body {
        font-size: 1.8rem;
    }

    h1 {
        font-size: 5rem;
    }

    .wedding-wrapper {
        margin: 1.5rem auto;
        padding: 1.8rem 0 2rem;
        border-width: 10px;
    }

    .el-img-wedding {
        width: min(100%, 300px);
    }

    .text-reveal-stage,
    .stay-tuned-stage {
        width: min(100%);
        padding: 0 0.75rem;
    }
    .player-stage {
        height: 6rem;
    }

    .player-cta {
        width: 145px;
    }

    .wave-player {
        padding: 1rem;
    }

    .wave-player-button {
        font-size: 1.4rem;
    }

    .sound-wave {
        height: 48px;
    }
}

@media (min-width: 768px) {
    .player-stage {
        height: 12rem;
    }

    .container {
        max-width: 720px;
    }

    body {
        font-size: 2.1rem;
    }

    h1 {
        font-size: 7rem;
        line-height: 1.08;
    }

    .wedding-wrapper {
        max-width: 720px;
        margin: 2.5rem auto;
        padding: 5% 0 6%;
        border-width: 14px;
    }

    .el-img-wedding {
        width: min(100%, 380px);
    }

    .text-reveal-stage {
        width: min(100%);
        margin-top: 1.4rem;
        padding: 0 1rem;
        gap: 0.75rem;
    }

    .text-reveal-panel {
        min-height: clamp(4.4rem, 5.5vw, 7.8rem);
    }

    .stay-tuned-stage {
        width: min(100%, 520px);
        margin-top: 1.25rem;
        padding: 0 1rem;
        width: 150px;
        right: 40px;
        top: 90px;
    }

    .stay-tuned-panel {
        min-height: clamp(3.8rem, 4.8vw, 6rem);
    }

    .player-cta {
        width: 165px;
    }

    .wave-player {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        max-width: 520px;
        padding: 1rem 1.2rem;
    }

    .wave-player-button {
        width: auto;
        font-size: 1.5rem;
        padding: 0.85rem 1.4rem;
    }

    .sound-wave {
        width: auto;
        flex: 1;
        height: 52px;
        gap: 4px;
    }

    .sound-wave .bar {
        width: 5px;
    }
}

@media (min-width: 992px) {
        .player-stage {
            height: 13rem;
        }

    .container {
        max-width: 960px;
    }

    body {
        font-size: 2.5rem;
    }

    h1 {
        font-size: 8rem;
    }

    .wedding-wrapper {
        max-width: 900px;
        margin: 4rem auto;
        border-width: 18px;
    }

    .el-img-wedding {
        width: min(100%, 420px);
    }

    .text-reveal-stage,
    .stay-tuned-stage {
        width: min(100%);
        padding: 0;
    }
    .stay-tuned-stage {
        padding: 0;
        width: 120px;
        right: 120px;
        top: 110px;
    }

    .player-cta {
        width: 185px;
    }

    .wave-player {
        max-width: 640px;
        padding: 1.1rem 1.4rem;
    }
}

@media (min-width: 1200px) {
        .player-stage {
            height: 14rem;
        }

    .container {
        max-width: 1140px;
    }

    body {
        font-size: 2.8rem;
    }

    h1 {
        font-size: 9rem;
        line-height: 1.04;
    }

    .wedding-wrapper {
        max-width: 960px;
        margin: 5% auto;
        padding: 10% 0;
        border-width: 20px;
    }

    .el-img-wedding {
        width: min(100%, 450px);
    }

    .text-reveal-stage,
    .stay-tuned-stage {
        width: min(100%);
        margin-top: 2rem;
        padding: 0;
    }

    .stay-tuned-stage {
        margin-top: 1.75rem;
        width: 120px;
        right: 110px;
        top: 190px;
    }

    .player-cta {
        width: 200px;
    }

    .wave-player {
        max-width: 650px;
        padding: 1.2rem 1.6rem;
    }

    .wave-player-button {
        font-size: 1.7rem;
        padding: 1rem 1.8rem;
    }

    .sound-wave {
        height: 66px;
        gap: 6px;
    }

    .sound-wave .bar {
        width: 6px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}