@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Italiana&family=Parisienne&display=swap');


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    background: #faf9f5;
    color: #252824;

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    overflow-x: hidden;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
input,
textarea {
    font-family: inherit;
}


/* =========================================================
   COLORI
   ========================================================= */

:root {
    --cream: #faf9f5;
    --cream-light: #fdfcf8;

    --green: #718c79;
    --green-dark: #58705f;
    --green-soft: #9baa9e;

    --text: #252824;

    --line:
        rgba(113, 140, 121, 0.42);
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    width: 100%;
    height: 76px;

    padding: 0 3.5%;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    background:
        rgba(255,255,255,0.98);

    position: relative;

    z-index: 100;
}


.logo {
    display: flex;

    align-items: center;

    gap: 11px;

    font-family:
        "Italiana",
        serif;

    position: relative;

    z-index: 103;
}


.logo-letter {
    font-size: 34px;
}


.logo-line {
    width: 1px;
    height: 39px;

    background:
        var(--green-soft);
}


.logo-leaf {
    color: var(--green);

    font-size: 28px;

    transform:
        rotate(-25deg);

    margin-left: -4px;
}


/* =========================================================
   NAV DESKTOP
   ========================================================= */

.desktop-nav {
    display: flex;

    align-items: center;

    gap: 38px;
}


.desktop-nav a {
    position: relative;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 2.8px;

    text-transform:
        uppercase;

    color: #252824;
}


.desktop-nav a::after {
    content: "";

    position: absolute;

    left: 50%;

    bottom: -6px;

    width: 0;

    height: 1px;

    background:
        var(--green);

    transform:
        translateX(-50%);

    transition:
        width 0.25s ease;
}


.desktop-nav a:hover::after {
    width: 100%;
}


/* =========================================================
   AZIONI NAVBAR
   ========================================================= */

.navbar-actions {
    display: flex;

    align-items: center;

    gap: 17px;

    position: relative;

    z-index: 103;
}


.navbar-heart {
    color:
        var(--green-dark);

    font-size: 20px;
}


/* =========================================================
   HAMBURGER
   ========================================================= */

.menu-toggle {
    display: none;

    width: 30px;

    height: 30px;

    border: 0;

    padding: 5px;

    background:
        transparent;

    cursor: pointer;

    position: relative;
}


.menu-line {
    position: absolute;

    left: 5px;

    width: 20px;

    height: 1px;

    background:
        var(--green-dark);

    transition:
        transform 0.3s ease,
        opacity 0.25s ease,
        top 0.3s ease;
}


.menu-line:nth-child(1) {
    top: 8px;
}


.menu-line:nth-child(2) {
    top: 14px;
}


.menu-line:nth-child(3) {
    top: 20px;
}


/* =========================================================
   MENU MOBILE
   ========================================================= */

.mobile-menu {
    display: none;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    width: 100%;

    height:
        calc(100vh - 76px);

    min-height: 690px;

    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    background-image:
        linear-gradient(
            90deg,
            rgba(250,249,245,1) 0%,
            rgba(250,249,245,0.98) 14%,
            rgba(250,249,245,0.92) 24%,
            rgba(250,249,245,0.72) 33%,
            rgba(250,249,245,0.42) 41%,
            rgba(250,249,245,0.14) 49%,
            rgba(250,249,245,0) 56%
        ),
        url("../images/hero.png");

    background-size:
        cover;

    background-position:
        center center;

    background-repeat:
        no-repeat;
}


/* =========================================================
   FLOREALE HERO
   ========================================================= */

.hero-floral {
    position: absolute;

    z-index: 3;

    width: 330px;

    height: auto;

    top: -20px;

    left: -5px;

    pointer-events: none;

    transform:
        rotate(-7deg);

    opacity: 0.96;
}


/* =========================================================
   CONTENUTO HERO
   ========================================================= */

.hero-content {
    width: 34%;

    margin-left: 4%;

    position: relative;

    z-index: 5;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    transform:
        translateY(15px);
}


/* =========================================================
   NOMI
   ========================================================= */

.couple-names {
    display: flex;

    flex-direction: column;

    align-items: center;

    font-family:
        "Italiana",
        serif;

    font-size:
        clamp(62px,4.8vw,90px);

    font-weight: 400;

    line-height: 0.9;
}


.name-francesco {
    display: block;
}


.name-second-line {
    display: flex;

    align-items: center;

    justify-content: center;

    margin-top: 1px;
}


.ampersand {
    margin-right: 10px;

    color: var(--green);

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 1.05em;

    font-weight: 300;

    font-style: italic;

    line-height: 0.8;
}


.name-irene {
    display: block;
}


/* =========================================================
   DIVISORE HERO
   ========================================================= */

.hero-divider {
    margin:
        24px auto 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 13px;
}


.hero-divider span {
    width: 88px;

    height: 1px;

    background:
        var(--line);
}


.hero-divider b {
    color: var(--green);

    font-size: 10px;

    font-weight: normal;
}


/* =========================================================
   DATA
   ========================================================= */

.wedding-date {
    font-size: 16px;

    letter-spacing: 7px;

    line-height: 1;
}


.wedding-time {
    margin-top: 8px;

    font-size: 10px;

    letter-spacing: 5px;
}


/* =========================================================
   FRASE HERO
   ========================================================= */

.hero-tagline {
    margin-top: 24px;

    color:
        var(--green-dark);

    font-family:
        "Parisienne",
        cursive;

    font-size: 39px;

    line-height: 1.05;
}


/* =========================================================
   COUNTDOWN
   ========================================================= */

.countdown {
    margin-top: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;
}


.countdown-item {
    width: 58px;

    display: flex;

    flex-direction: column;

    align-items: center;
}


.countdown-item strong {
    font-size: 21px;

    font-weight: 400;

    letter-spacing: 2px;

    line-height: 1;
}


.countdown-item span {
    margin-top: 6px;

    font-size: 7px;

    letter-spacing: 2px;

    color: #545950;
}


.countdown-separator {
    width: 1px;

    height: 29px;

    background:
        rgba(113,140,121,0.30);
}


/* =========================================================
   MESSAGGIO GIORNO MATRIMONIO
   ========================================================= */

.wedding-day-message {
    display: none;

    margin-top: 25px;

    font-family:
        "Parisienne",
        cursive;

    font-size: 36px;

    color:
        var(--green-dark);

    line-height: 1.1;

    opacity: 0;

    transform:
        translateY(8px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}


.wedding-day-message.show {
    display: block;

    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   SCROLL
   ========================================================= */

.scroll-down {
    margin-top: 25px;

    display: flex;

    flex-direction: column;

    align-items: center;
}


.arrow {
    margin-bottom: 8px;

    font-family:
        Arial,
        sans-serif;

    font-size: 15px;

    line-height: 12px;
}


.scroll-text {
    font-size: 12px;

    letter-spacing: 5px;
}


/* =========================================================
   TRANSIZIONE HERO
   ========================================================= */

.hero-transition {
    position: absolute;

    z-index: 8;

    left: -2%;

    bottom: -28px;

    width: 104%;

    height: 66px;

    background:
        var(--cream-light);

    clip-path: polygon(
        0 34%,
        6% 42%,
        12% 32%,
        18% 39%,
        25% 31%,
        32% 41%,
        39% 33%,
        46% 42%,
        54% 31%,
        62% 40%,
        69% 33%,
        76% 41%,
        84% 31%,
        92% 39%,
        100% 32%,
        100% 100%,
        0 100%
    );
}


/* =========================================================
   BLOCCO INFERIORE
   ========================================================= */

.lower-invitation {
    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 28%,
            rgba(255,255,255,0.80) 0%,
            rgba(253,252,248,0.95) 38%,
            rgba(250,249,245,1) 100%
        );
}


/* =========================================================
   FLOREALI DESKTOP
   ========================================================= */

.lower-flower {
    position: absolute;

    height: auto;

    pointer-events: none;

    user-select: none;

    z-index: 2;
}


.lower-flower-left-top {
    width: 390px;

    left: -85px;

    top: 95px;

    opacity: 0.90;

    transform:
        rotate(6deg);
}


.lower-flower-right-top {
    width: 370px;

    right: -75px;

    top: 285px;

    opacity: 0.78;

    transform:
        scaleX(-1)
        rotate(5deg);
}


.lower-flower-left-middle {
    width: 410px;

    left: -90px;

    top: 650px;

    opacity: 0.72;

    transform:
        rotate(13deg);
}


.lower-flower-right-middle {
    width: 420px;

    right: -90px;

    top: 900px;

    opacity: 0.84;

    transform:
        scaleX(-1)
        rotate(-3deg);
}


.lower-flower-left-bottom {
    width: 470px;

    left: -105px;

    bottom: 120px;

    opacity: 0.86;

    transform:
        rotate(2deg);
}


.lower-flower-right-bottom {
    width: 470px;

    right: -100px;

    bottom: -30px;

    opacity: 0.90;

    transform:
        rotate(180deg);
}


/* =========================================================
   IL NOSTRO GIORNO
   ========================================================= */

.wedding-day {
    position: relative;

    z-index: 5;

    min-height: 510px;

    padding:
        67px 7% 80px;

    text-align: center;

    background:
        transparent;
}


.section-heading {
    position: relative;

    z-index: 5;

    text-align: center;
}


.section-heading h2 {
    font-size: 28px;

    font-weight: 500;

    letter-spacing: 9px;
}


.section-divider {
    margin:
        17px auto 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;
}


.section-divider span {
    width: 82px;

    height: 1px;

    background:
        var(--line);
}


.section-divider b {
    color: var(--green);

    font-size: 10px;

    font-weight: normal;
}


/* =========================================================
   PROGRAMMA
   ========================================================= */

.schedule {
    position: relative;

    z-index: 5;

    max-width: 1080px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(4,1fr);
}


.event {
    min-height: 165px;

    padding:
        0 27px;

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;
}


.event:not(:last-child)::after {
    content: "";

    position: absolute;

    right: 0;

    top: 32px;

    width: 1px;

    height: 92px;

    background:
        rgba(0,0,0,0.11);
}


.event-icon {
    width: 43px;

    height: 43px;

    margin-bottom: 2px;

    color:
        var(--green-dark);
}


.event-icon svg {
    width: 100%;

    height: 100%;

    fill: none;

    stroke:
        currentColor;

    stroke-width: 2.6;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;
}


.event strong {
    font-size: 22px;

    font-weight: 400;

    letter-spacing: 1px;
}


.event-title {
    margin-top: 3px;

    font-size: 11px;

    letter-spacing: 2px;
}


.event p {
    margin-top: 3px;

    font-size: 14px;

    line-height: 1.35;
}


.event-map-link {
    margin-top: 8px;

    color:
        var(--green-dark);

    font-size: 9px;

    font-weight: 500;

    letter-spacing: 2px;

    text-transform:
        uppercase;

    transition:
        color 0.2s ease;
}


.event-map-link:hover {
    color: #3f5848;
}


/* =========================================================
   PULSANTE DETTAGLI
   ========================================================= */

.details-button {
    position: relative;

    z-index: 5;

    margin-top: 24px;

    min-width: 325px;

    padding:
        13px 30px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap: 20px;

    border-radius:
        40px;

    background:
        var(--green-dark);

    color: #fff;

    font-size: 10px;

    letter-spacing:
        3px;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.details-button:hover {
    background:
        #476050;

    transform:
        translateY(-2px);
}


.details-button span {
    font-size: 20px;
}


/* =========================================================
   INFO
   ========================================================= */

.info-section {
    position: relative;

    z-index: 5;

    padding:
        85px 7% 95px;

    background:
        transparent;
}


.info-wrapper {
    position: relative;

    z-index: 5;

    max-width: 1120px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1.05fr 0.95fr;
}


.info-card {
    min-height: 510px;

    padding:
        25px 60px;

    display: flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    text-align:
        center;

    position:
        relative;
}


.info-card:first-child {
    border-right:
        1px solid
        rgba(113,140,121,0.28);
}


.info-card h2 {
    font-size: 23px;

    font-weight: 500;

    letter-spacing:
        7px;
}


.info-divider {
    margin:
        15px auto 22px;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    gap: 12px;
}


.info-divider span {
    width: 72px;

    height: 1px;

    background:
        var(--line);
}


.info-divider b {
    color:
        var(--green);

    font-size:
        10px;

    font-weight:
        normal;
}


/* =========================================================
   FOTO LOCATION
   ========================================================= */

.location-photo-wrap {
    width: 100%;

    max-width: 420px;

    margin:
        0 auto 22px;

    padding: 5px;

    border:
        1px solid
        rgba(88,112,95,0.28);

    border-radius:
        18px;

    background:
        rgba(255,255,255,0.50);

    box-shadow:
        0 12px 30px
        rgba(59,73,62,0.06);

    overflow:
        hidden;
}


.location-photo {
    width: 100%;

    height: 205px;

    display: block;

    object-fit:
        cover;

    object-position:
        center 58%;

    border-radius:
        13px;

    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}


.location-photo-wrap:hover
.location-photo {
    transform:
        scale(1.025);

    filter:
        brightness(1.03);
}


/* =========================================================
   LOCATION
   ========================================================= */

.info-icon {
    width: 37px;

    height: 37px;

    color:
        var(--green-dark);

    margin-bottom:
        8px;
}


.info-icon svg {
    width: 100%;

    height: 100%;

    fill:
        var(--green-dark);

    stroke:
        var(--green-dark);

    stroke-width: 2;
}


.info-icon svg circle {
    fill:
        var(--cream-light);
}


.info-card h3 {
    font-size: 22px;

    font-weight: 500;

    line-height: 1.2;
}


.info-card p {
    margin-top: 5px;

    font-size: 15px;

    line-height: 1.45;
}


.maps-button {
    margin-top: 21px;

    min-width: 225px;

    padding:
        11px 25px;

    border:
        1px solid
        var(--green-dark);

    border-radius:
        40px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap: 14px;

    font-size: 10px;

    letter-spacing:
        2.5px;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.maps-button:hover {
    color: #fff;

    background:
        var(--green-dark);

    transform:
        translateY(-2px);
}


/* =========================================================
   MEMORIES
   ========================================================= */

.memory-content {
    display: flex;

    align-items:
        center;

    justify-content:
        center;

    gap: 28px;
}


.camera-icon {
    width: 60px;

    height: 60px;

    color:
        var(--green-dark);

    flex-shrink: 0;
}


.camera-icon svg {
    width: 100%;

    height: 100%;

    fill: none;

    stroke:
        currentColor;

    stroke-width:
        2.6;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;
}


.memory-text {
    text-align: left;
}


.memory-text h3 {
    font-size: 21px;

    font-weight: 500;
}


.memory-text p {
    margin-top: 13px;

    font-size: 14px;

    line-height: 1.45;
}


/* =========================================================
   CAMPI UPLOAD
   ========================================================= */

.upload-extra-fields {
    width: 100%;

    max-width: 390px;

    margin-top: 28px;

    display: flex;

    flex-direction: column;

    gap: 18px;
}


.upload-field {
    width: 100%;

    position: relative;

    text-align: left;
}


.upload-field label {
    display: block;

    margin-bottom: 7px;

    color:
        var(--green-dark);

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 2.5px;
}


.upload-field input,
.upload-field textarea {
    width: 100%;

    border:
        1px solid
        rgba(88,112,95,0.28);

    border-radius:
        12px;

    outline: none;

    padding:
        12px 14px;

    background:
        rgba(255,255,255,0.55);

    color:
        var(--text);

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        15px;

    line-height:
        1.4;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.upload-field textarea {
    min-height: 95px;

    resize: vertical;
}


.upload-field input::placeholder,
.upload-field textarea::placeholder {
    color:
        rgba(37,40,36,0.48);
}


.upload-field input:focus,
.upload-field textarea:focus {
    border-color:
        var(--green);

    background:
        rgba(255,255,255,0.78);

    box-shadow:
        0 0 0 3px
        rgba(113,140,121,0.08);
}


.dedication-counter {
    margin-top: 5px;

    text-align: right;

    color:
        rgba(37,40,36,0.50);

    font-size: 10px;

    letter-spacing: 1px;
}


/* =========================================================
   PULSANTE UPLOAD
   ========================================================= */

.upload-button {
    margin-top: 25px;

    min-width: 320px;

    padding:
        12px 25px;

    border: none;

    border-radius:
        40px;

    background:
        var(--green-dark);

    color: white;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap: 15px;

    font-size: 10px;

    letter-spacing:
        2.5px;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        opacity 0.25s ease;
}


.upload-button:hover {
    background:
        #476050;

    transform:
        translateY(-2px);
}


.upload-button:disabled {
    opacity: 0.65;

    cursor: wait;

    transform: none;
}


.upload-symbol {
    font-size: 17px;
}


/* =========================================================
   STATO UPLOAD
   ========================================================= */

.upload-status {
    margin-top: 16px;

    min-height: 22px;

    font-size: 14px;

    font-weight: 500;

    line-height: 1.4;

    text-align: center;
}


.upload-status.success {
    color:
        var(--green-dark);
}


.upload-status.error {
    color:
        #8b4a4a;
}


/* =========================================================
   GALLERY
   ========================================================= */

.gallery-section {
    position: relative;

    z-index: 5;

    padding:
        95px 5% 110px;

    background:
        transparent;

    text-align:
        center;
}


.gallery-intro {
    margin-top: -20px;

    margin-bottom: 42px;

    font-size: 17px;

    font-style: italic;

    color:
        rgba(37,40,36,0.72);
}


.gallery-grid {
    width: 100%;

    max-width: 1280px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0,1fr));

    gap: 18px;

    align-items:
        start;
}


.gallery-card {
    position: relative;

    overflow: hidden;

    border:
        1px solid
        rgba(88,112,95,0.18);

    border-radius:
        17px;

    background:
        rgba(255,255,255,0.58);

    box-shadow:
        0 12px 30px
        rgba(59,73,62,0.055);

    text-align:
        left;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.gallery-card:hover {
    transform:
        translateY(-4px);

    box-shadow:
        0 17px 34px
        rgba(59,73,62,0.09);
}


.gallery-image-link {
    display: block;

    width: 100%;

    overflow: hidden;

    background:
        #efeee9;
}


.gallery-image {
    width: 100%;

    height: 250px;

    display: block;

    object-fit:
        cover;

    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}


.gallery-card:hover
.gallery-image {
    transform:
        scale(1.035);

    filter:
        brightness(1.025);
}


.gallery-card-content {
    min-height: 120px;

    padding:
        16px 17px 18px;
}


.gallery-guest-name {
    color:
        var(--green-dark);

    font-size: 17px;

    font-weight: 600;

    line-height: 1.15;
}


.gallery-dedication {
    margin-top: 8px;

    color:
        var(--text);

    font-size: 14px;

    font-style: italic;

    line-height: 1.35;

    overflow-wrap:
        anywhere;
}


.gallery-date {
    margin-top: 12px;

    color:
        rgba(37,40,36,0.48);

    font-size: 9px;

    letter-spacing:
        1.5px;

    text-transform:
        uppercase;
}


.gallery-loading,
.gallery-empty {
    grid-column:
        1 / -1;

    width: 100%;

    min-height: 180px;

    display: flex;

    align-items: center;

    justify-content: center;

    color:
        var(--green-dark);

    font-size: 18px;

    font-style: italic;
}


/* =========================================================
   SEPARATORE FLOREALE MOBILE
   ========================================================= */

.floral-separator {
    display: none;
}


/* =========================================================
   CHIUSURA
   ========================================================= */

.closing-section {
    position: relative;

    z-index: 5;

    min-height: 640px;

    padding:
        115px 20px 125px;

    background:
        transparent;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;
}


.closing-content {
    position: relative;

    z-index: 5;

    max-width: 620px;
}


.closing-message-long {
    font-family:
        "Cormorant Garamond",
        serif;

    color:
        var(--text);

    font-size: 31px;

    font-weight: 500;

    line-height: 1.34;

    letter-spacing:
        0.2px;
}


.closing-thanks {
    margin-top: 28px;

    font-family:
        "Parisienne",
        cursive;

    color:
        var(--green-dark);

    font-size: 58px;

    line-height: 1;
}


.closing-divider {
    margin:
        25px auto 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 13px;
}


.closing-divider span {
    width: 65px;

    height: 1px;

    background:
        var(--line);
}


.closing-divider b {
    color:
        var(--green);

    font-size: 10px;

    font-weight: normal;
}


.closing-names {
    font-size: 11px;

    font-weight: 500;

    line-height: 2;

    letter-spacing:
        4px;
}


.closing-names span {
    font-size: 9px;

    letter-spacing:
        4px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .desktop-nav {
        gap: 24px;
    }


    .desktop-nav a {
        font-size: 11px;

        letter-spacing:
            2px;
    }


    .hero-content {
        width: 39%;

        margin-left: 2.5%;
    }


    .hero-floral {
        width: 280px;

        top: -55px;

        left: -105px;
    }


    .couple-names {
        font-size:
            clamp(50px,5.8vw,72px);
    }


    .schedule {
        grid-template-columns:
            repeat(2,1fr);

        gap:
            40px 0;
    }


    .event:nth-child(2)::after {
        display: none;
    }


    .info-card {
        padding: 30px;
    }


    .location-photo {
        height: 180px;
    }


    .lower-flower-left-top,
    .lower-flower-right-top,
    .lower-flower-left-middle,
    .lower-flower-right-middle,
    .lower-flower-left-bottom,
    .lower-flower-right-bottom {
        width: 310px;
    }


    .gallery-grid {
        grid-template-columns:
            repeat(3,1fr);

        max-width: 900px;
    }


    .gallery-image {
        height: 260px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    /* =====================================================
       NAVBAR
       ===================================================== */

    .navbar {
        height: 70px;

        padding:
            0 20px;

        position:
            relative;
    }


    .desktop-nav {
        display: none;
    }


    .logo-letter {
        font-size:
            25px;
    }


    .logo-line {
        height:
            30px;
    }


    .logo-leaf {
        font-size:
            22px;
    }


    .navbar-actions {
        gap: 13px;
    }


    .navbar-heart {
        font-size:
            18px;
    }


    /* =====================================================
       HAMBURGER
       ===================================================== */

    .menu-toggle {
        display:
            block;
    }


    .menu-toggle.is-open
    .menu-line:nth-child(1) {
        top: 14px;

        transform:
            rotate(45deg);
    }


    .menu-toggle.is-open
    .menu-line:nth-child(2) {
        opacity: 0;
    }


    .menu-toggle.is-open
    .menu-line:nth-child(3) {
        top: 14px;

        transform:
            rotate(-45deg);
    }


    /* =====================================================
       MENU MOBILE
       ===================================================== */

    .mobile-menu {
        display: flex;

        position: absolute;

        z-index: 101;

        top: 70px;

        left: 0;

        width: 100%;

        height: 0;

        padding:
            0 25px;

        overflow:
            hidden;

        flex-direction:
            column;

        align-items:
            center;

        justify-content:
            center;

        background:
            rgba(253,252,248,0.985);

        opacity: 0;

        visibility:
            hidden;

        pointer-events:
            none;

        transform:
            translateY(-12px);

        transition:
            height 0.42s ease,
            opacity 0.28s ease,
            transform 0.42s ease,
            visibility 0.28s ease;
    }


    .mobile-menu.is-open {
        height:
            calc(100vh - 70px);

        opacity: 1;

        visibility:
            visible;

        pointer-events:
            auto;

        transform:
            translateY(0);
    }


    .mobile-menu::before {
        content: "";

        position: absolute;

        width: 230px;

        height: 230px;

        left: -95px;

        top: -30px;

        background:
            url("../images/floreale1.png")
            center / contain
            no-repeat;

        opacity: 0.18;

        transform:
            rotate(-12deg);

        pointer-events:
            none;
    }


    .mobile-menu::after {
        content: "";

        position: absolute;

        width: 225px;

        height: 225px;

        right: -105px;

        bottom: -80px;

        background:
            url("../images/floreale2.png")
            center / contain
            no-repeat;

        opacity: 0.18;

        transform:
            rotate(180deg);

        pointer-events:
            none;
    }


    .mobile-menu a {
        position: relative;

        z-index: 2;

        margin:
            11px 0;

        padding:
            8px 6px;

        color:
            var(--text);

        font-family:
            "Cormorant Garamond",
            serif;

        font-size:
            18px;

        font-weight:
            500;

        letter-spacing:
            4px;

        text-transform:
            uppercase;
    }


    .mobile-menu a::after {
        content: "";

        position: absolute;

        left: 50%;

        bottom: 1px;

        width: 0;

        height: 1px;

        background:
            var(--green);

        transform:
            translateX(-50%);

        transition:
            width 0.25s ease;
    }


    .mobile-menu a:hover::after,
    .mobile-menu a:focus-visible::after {
        width: 70%;
    }


    .mobile-menu-decoration {
        position: relative;

        z-index: 2;

        margin-top:
            24px;

        display: flex;

        align-items:
            center;

        justify-content:
            center;

        gap: 12px;
    }


    .mobile-menu-decoration span {
        width: 55px;

        height: 1px;

        background:
            var(--line);
    }


    .mobile-menu-decoration b {
        color:
            var(--green);

        font-size:
            10px;

        font-weight:
            normal;
    }


    .mobile-menu-date {
        position:
            relative;

        z-index: 2;

        margin-top:
            19px;

        font-size:
            8px;

        letter-spacing:
            2.5px;

        color:
            var(--green-dark);
    }


    body.menu-open {
        overflow:
            hidden;
    }


    /* =====================================================
       HERO MOBILE
       ===================================================== */

    .hero {
        height:
            calc(100vh - 70px);

        min-height:
            760px;

        position:
            relative;

        align-items:
            flex-start;

        background-image:
            none;

        background-color:
            var(--cream);
    }


    .hero::before {
        content: "";

        position:
            absolute;

        z-index: 0;

        left: 5px;

        right: 5px;

        top: 62%;

        bottom: 5px;

        background-image:
            url("../images/hero.png");

        background-size:
            auto 100%;

        background-position:
            92% bottom;

        background-repeat:
            no-repeat;

        clip-path:
            polygon(
                0 5%,
                5% 3%,
                11% 5%,
                18% 2%,
                25% 4%,
                32% 2%,
                39% 5%,
                46% 3%,
                53% 5%,
                61% 2%,
                68% 4%,
                75% 2%,
                82% 5%,
                89% 3%,
                95% 5%,
                100% 3%,
                100% 95%,
                94% 97%,
                88% 95%,
                81% 98%,
                74% 96%,
                67% 98%,
                60% 95%,
                53% 97%,
                46% 95%,
                39% 98%,
                32% 96%,
                25% 98%,
                18% 95%,
                11% 97%,
                5% 95%,
                0 97%
            );

        -webkit-mask-image:
            radial-gradient(
                ellipse 94% 98%
                at 50% 52%,
                #000 54%,
                rgba(0,0,0,0.98) 64%,
                rgba(0,0,0,0.85) 73%,
                rgba(0,0,0,0.58) 83%,
                rgba(0,0,0,0.26) 92%,
                transparent 100%
            );

        mask-image:
            radial-gradient(
                ellipse 94% 98%
                at 50% 52%,
                #000 54%,
                rgba(0,0,0,0.98) 64%,
                rgba(0,0,0,0.85) 73%,
                rgba(0,0,0,0.58) 83%,
                rgba(0,0,0,0.26) 92%,
                transparent 100%
            );
    }


    .hero::after {
        content: "";

        position:
            absolute;

        z-index: 1;

        left: 0;

        right: 0;

        top: 59%;

        height: 12%;

        pointer-events:
            none;

        background:
            linear-gradient(
                to bottom,
                var(--cream) 0%,
                rgba(250,249,245,0.92) 15%,
                rgba(250,249,245,0.62) 38%,
                rgba(250,249,245,0.26) 65%,
                rgba(250,249,245,0.05) 86%,
                rgba(250,249,245,0) 100%
            );
    }


    .hero-floral {
        width: 175px;

        top: -18px;

        left: -28px;

        z-index: 3;

        opacity: 0.92;

        transform:
            rotate(-5deg);
    }


    .hero-content {
        width: 100%;

        margin: 0;

        padding:
            54px 22px 0;

        z-index: 5;

        transform:
            none;
    }


    .couple-names {
        font-size:
            clamp(46px,14vw,68px);
    }


    .hero-divider {
        margin:
            21px auto 15px;
    }


    .hero-divider span {
        width: 70px;
    }


    .wedding-date {
        font-size:
            13px;

        letter-spacing:
            5px;
    }


    .wedding-time {
        font-size:
            9px;

        letter-spacing:
            4px;
    }


    .hero-tagline {
        margin-top:
            20px;

        font-size:
            30px;
    }


    .countdown {
        margin-top:
            21px;

        gap: 5px;
    }


    .countdown-item {
        width: 47px;
    }


    .countdown-item strong {
        font-size:
            18px;
    }


    .countdown-item span {
        font-size:
            7px;

        letter-spacing:
            1px;
    }


    .countdown-separator {
        height:
            24px;
    }


    .wedding-day-message {
        margin-top:
            22px;

        font-size:
            30px;
    }


    .scroll-down {
        margin-top:
            22px;
    }


    .hero-transition {
        height:
            44px;

        bottom:
            -18px;
    }


    /* =====================================================
       FLOREALI MOBILE
       ===================================================== */

    .lower-flower-left-top {
        width: 185px;

        left: -42px;

        top: 75px;

        opacity: 0.88;

        transform:
            rotate(4deg);
    }


    .lower-flower-right-top {
        width: 185px;

        right: -38px;

        top: 510px;

        opacity: 0.78;

        transform:
            scaleX(-1)
            rotate(7deg);
    }


    .lower-flower-left-middle {
        width: 195px;

        left: -48px;

        top: 990px;

        opacity: 0.72;

        transform:
            rotate(9deg);
    }


    .lower-flower-right-middle {
        width: 205px;

        right: -45px;

        top: 1430px;

        opacity: 0.80;

        transform:
            scaleX(-1)
            rotate(-4deg);
    }


    .lower-flower-left-bottom {
        width: 190px;

        left: -62px;

        bottom: 5px;

        opacity: 0.78;

        transform:
            rotate(8deg);
    }


    .lower-flower-right-bottom {
        width: 220px;

        right: -52px;

        bottom: -28px;

        opacity: 0.86;

        transform:
            rotate(180deg);
    }


    /* =====================================================
       GIORNO MOBILE
       ===================================================== */

    .wedding-day {
        padding:
            58px 22px 80px;
    }


    .section-heading h2 {
        font-size:
            21px;

        letter-spacing:
            5px;
    }


    .section-divider {
        margin-bottom:
            30px;
    }


    .schedule {
        grid-template-columns:
            1fr;

        max-width:
            340px;
    }


    .event {
        min-height:
            auto;

        padding:
            25px 10px;
    }


    .event:not(:last-child)::after {
        width: 70px;

        height: 1px;

        top: auto;

        right: 50%;

        bottom: 0;

        transform:
            translateX(50%);
    }


    .details-button {
        width: 90%;

        min-width: 0;

        margin-top:
            28px;
    }


    /* =====================================================
       INFO MOBILE
       ===================================================== */

    .info-section {
        padding:
            80px 20px 55px;
    }


    .info-wrapper {
        grid-template-columns:
            1fr;
    }


    .info-card {
        min-height:
            auto;

        padding:
            50px 20px;
    }


    .info-card:first-child {
        border-right:
            none;

        border-bottom:
            1px solid
            rgba(113,140,121,0.28);
    }


    .info-card h2 {
        font-size:
            19px;

        letter-spacing:
            4px;
    }


    .location-photo-wrap {
        max-width:
            100%;
    }


    .location-photo {
        height:
            190px;
    }


    .memory-content {
        gap:
            18px;
    }


    .camera-icon {
        width:
            50px;

        height:
            50px;
    }


    .memory-text h3 {
        font-size:
            19px;
    }


    .upload-extra-fields {
        max-width:
            100%;

        margin-top:
            26px;

        gap:
            16px;
    }


    .upload-field input,
    .upload-field textarea {
        font-size:
            16px;
    }


    .upload-button {
        width:
            100%;

        min-width:
            0;
    }


    .upload-status {
        padding:
            0 10px;

        font-size:
            13px;
    }


    /* =====================================================
       GALLERY MOBILE
       ===================================================== */

    .gallery-section {
        padding:
            75px 0 65px;
    }


    .gallery-section
    .section-heading {
        padding:
            0 20px;
    }


    .gallery-intro {
        margin-top:
            -17px;

        margin-bottom:
            31px;

        font-size:
            15px;
    }


    .gallery-grid {
        display:
            flex;

        width:
            100%;

        max-width:
            none;

        gap:
            14px;

        padding:
            0 22px 18px;

        overflow-x:
            auto;

        overflow-y:
            hidden;

        scroll-snap-type:
            x mandatory;

        scroll-padding:
            22px;

        scrollbar-width:
            none;

        -webkit-overflow-scrolling:
            touch;
    }


    .gallery-grid::-webkit-scrollbar {
        display:
            none;
    }


    .gallery-card {
        flex:
            0 0 78vw;

        max-width:
            320px;

        scroll-snap-align:
            center;
    }


    .gallery-image {
        height:
            320px;
    }


    .gallery-card-content {
        min-height:
            115px;

        padding:
            16px 17px 18px;
    }


    .gallery-guest-name {
        font-size:
            18px;
    }


    .gallery-dedication {
        font-size:
            15px;
    }


    .gallery-loading,
    .gallery-empty {
        flex:
            0 0 calc(100vw - 44px);

        min-height:
            150px;
    }


    /* =====================================================
       FLOREALE4 MOBILE
       ===================================================== */

    .floral-separator {
        display: flex;

        width: 100%;

        height: 155px;

        margin:
            10px 0 5px;

        position:
            relative;

        z-index: 6;

        align-items:
            center;

        justify-content:
            center;

        pointer-events:
            none;

        overflow:
            visible;
    }


    .floral-separator img {
        width: 82%;

        max-width: 360px;

        height: auto;

        display: block;

        opacity: 0.92;

        transform:
            none;
    }


    /* =====================================================
       CHIUSURA MOBILE
       ===================================================== */

    .closing-section {
        min-height:
            620px;

        padding:
            30px 32px 125px;

        align-items:
            flex-start;
    }


    .closing-content {
        width:
            100%;

        max-width:
            480px;

        margin:
            0 auto;

        padding-top:
            0;
    }


    .closing-message-long {
        font-size:
            23px;

        line-height:
            1.42;

        font-weight:
            500;
    }


    .closing-thanks {
        margin-top:
            28px;

        font-size:
            50px;
    }


    .closing-divider {
        margin-top:
            28px;

        margin-bottom:
            22px;
    }


    .closing-divider span {
        width:
            58px;
    }


    .closing-names {
        font-size:
            9px;

        line-height:
            2.1;

        letter-spacing:
            3px;
    }


    .closing-names span {
        font-size:
            8px;

        letter-spacing:
            3px;
    }

}/* =========================================================
   RSVP
   ========================================================= */

.rsvp-section {
    position: relative;
    z-index: 5;

    padding:
        95px 7% 105px;

    background:
        rgba(255, 255, 255, 0.26);

    border-top:
        1px solid
        rgba(113, 140, 121, 0.16);

    border-bottom:
        1px solid
        rgba(113, 140, 121, 0.16);
}


.rsvp-container {
    width: 100%;
    max-width: 760px;

    margin:
        0 auto;

    position: relative;
    z-index: 5;
}


.rsvp-intro {
    max-width: 590px;

    margin:
        -20px auto 42px;

    color:
        rgba(37, 40, 36, 0.72);

    font-size: 17px;
    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   FORM
   ========================================================= */

.rsvp-form {
    width: 100%;

    padding:
        42px 48px 44px;

    border:
        1px solid
        rgba(88, 112, 95, 0.20);

    border-radius:
        22px;

    background:
        rgba(255, 255, 255, 0.56);

    box-shadow:
        0 16px 45px
        rgba(59, 73, 62, 0.06);
}


/* =========================================================
   CAMPI
   ========================================================= */

.rsvp-field {
    width: 100%;

    margin-bottom:
        23px;

    text-align: left;
}


.rsvp-field label,
.rsvp-attendance legend {
    display: block;

    margin-bottom:
        8px;

    color:
        var(--green-dark);

    font-size: 9px;
    font-weight: 600;

    letter-spacing:
        2.5px;
}


.rsvp-field input,
.rsvp-field textarea,
.rsvp-field select {
    width: 100%;

    border:
        1px solid
        rgba(88, 112, 95, 0.28);

    border-radius:
        12px;

    outline: none;

    padding:
        12px 14px;

    background:
        rgba(255, 255, 255, 0.72);

    color:
        var(--text);

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        16px;

    line-height:
        1.4;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.rsvp-field textarea {
    min-height:
        95px;

    resize:
        vertical;
}


.rsvp-field select {
    appearance:
        none;

    -webkit-appearance:
        none;

    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            var(--green-dark) 50%
        ),
        linear-gradient(
            135deg,
            var(--green-dark) 50%,
            transparent 50%
        );

    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat:
        no-repeat;

    padding-right:
        42px;
}


.rsvp-field input::placeholder,
.rsvp-field textarea::placeholder {
    color:
        rgba(37, 40, 36, 0.46);
}


.rsvp-field input:focus,
.rsvp-field textarea:focus,
.rsvp-field select:focus {
    border-color:
        var(--green);

    background:
        rgba(255, 255, 255, 0.92);

    box-shadow:
        0 0 0 3px
        rgba(113, 140, 121, 0.08);
}


/* =========================================================
   PRESENZA SÌ / NO
   ========================================================= */

.rsvp-attendance {
    margin:
        3px 0 26px;

    padding: 0;

    border: 0;
}


.rsvp-choice-group {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap:
        14px;
}


.rsvp-choice {
    position: relative;

    display: block;

    cursor: pointer;
}


.rsvp-choice input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.rsvp-choice-box {
    min-height:
        96px;

    padding:
        18px 16px;

    display: flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    border:
        1px solid
        rgba(88, 112, 95, 0.24);

    border-radius:
        15px;

    background:
        rgba(255, 255, 255, 0.58);

    color:
        var(--text);

    text-align:
        center;

    font-size:
        16px;

    line-height:
        1.25;

    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
}


.rsvp-choice-box b {
    color:
        var(--green-dark);

    font-size:
        18px;

    font-weight:
        normal;
}


.rsvp-choice-symbol {
    color:
        var(--green-dark);

    font-family:
        Arial,
        sans-serif;

    font-size:
        21px;

    line-height:
        1;
}


.rsvp-choice:hover
.rsvp-choice-box {
    border-color:
        rgba(88, 112, 95, 0.52);

    transform:
        translateY(-2px);
}


.rsvp-choice input:checked
+ .rsvp-choice-box {
    border-color:
        var(--green-dark);

    background:
        rgba(88, 112, 95, 0.10);

    box-shadow:
        0 0 0 3px
        rgba(88, 112, 95, 0.05);

    color:
        var(--green-dark);
}


.rsvp-choice input:focus-visible
+ .rsvp-choice-box {
    outline:
        2px solid
        rgba(88, 112, 95, 0.45);

    outline-offset:
        3px;
}


/* =========================================================
   CAMPI VISIBILI SOLO SE PARTECIPA
   ========================================================= */

.rsvp-attending-fields {
    overflow: hidden;
}


.rsvp-attending-fields.show {
    animation:
        rsvpFieldsIn
        0.35s ease;
}


@keyframes rsvpFieldsIn {

    from {
        opacity: 0;
        transform:
            translateY(-8px);
    }

    to {
        opacity: 1;
        transform:
            translateY(0);
    }

}


/* =========================================================
   PULSANTE RSVP
   ========================================================= */

.rsvp-submit {
    width: 100%;

    margin-top:
        5px;

    padding:
        13px 26px;

    border: none;

    border-radius:
        40px;

    background:
        var(--green-dark);

    color:
        #fff;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        18px;

    cursor: pointer;

    font-size:
        10px;

    letter-spacing:
        2.8px;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        opacity 0.25s ease;
}


.rsvp-submit:hover {
    background:
        #476050;

    transform:
        translateY(-2px);
}


.rsvp-submit:disabled {
    opacity:
        0.65;

    cursor:
        wait;

    transform:
        none;
}


.rsvp-submit span:last-child {
    font-size:
        20px;

    line-height:
        1;
}


/* =========================================================
   STATO RSVP
   ========================================================= */

.rsvp-status {
    min-height:
        24px;

    margin-top:
        17px;

    text-align:
        center;

    font-size:
        15px;

    font-weight:
        500;

    line-height:
        1.4;
}


.rsvp-status.success {
    color:
        var(--green-dark);
}


.rsvp-status.error {
    color:
        #8b4a4a;
}


/* =========================================================
   RSVP MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .rsvp-section {
        padding:
            75px 20px 80px;
    }


    .rsvp-container {
        max-width:
            100%;
    }


    .rsvp-intro {
        margin-top:
            -16px;

        margin-bottom:
            30px;

        padding:
            0 5px;

        font-size:
            15px;

        line-height:
            1.5;
    }


    .rsvp-form {
        padding:
            30px 20px 32px;

        border-radius:
            18px;
    }


    .rsvp-field {
        margin-bottom:
            20px;
    }


    .rsvp-field input,
    .rsvp-field textarea,
    .rsvp-field select {
        font-size:
            16px;
    }


    .rsvp-choice-group {
        grid-template-columns:
            1fr;

        gap:
            11px;
    }


    .rsvp-choice-box {
        min-height:
            82px;

        padding:
            15px 13px;

        font-size:
            15px;
    }


    .rsvp-submit {
        padding:
            13px 18px;

        letter-spacing:
            2.2px;
    }


    .rsvp-status {
        font-size:
            14px;
    }

}