:root {
    --ivory: #f4f0e8;
    --charcoal: #292a26;
    --olive: #59604b;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", Arial, sans-serif;
    background: var(--ivory);
    color: var(--charcoal);
}

/* HEADER */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    color: #f8f5ee;

    background: linear-gradient(
        to bottom,
        rgba(20, 24, 18, 0.38) 0%,
        rgba(20, 24, 18, 0.12) 60%,
        rgba(20, 24, 18, 0) 100%
    );
}

.logo {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 5px;
    white-space: nowrap;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* linea bianca dietro al menu */

.navigation {
    display: flex;
    align-items: center;
    gap: 34px;
}

.navigation a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0,0,0,.20);
}

.languages {
    display: flex;
    gap: 10px;
    margin-left: 22px;
}

.languages a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 11px;
    font-weight: 400;
}

/* HERO */

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image:
        linear-gradient(
            90deg,
            rgba(20, 25, 18, .25) 0%,
            rgba(20, 25, 18, .12) 48%,
            rgba(20, 25, 18, .05) 100%
        ),
        url("../images/Terrazzo2.png");
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-left: 7%;
    margin-top: 120px;
    color: var(--white);
}

.hero h1 {
    font-size: clamp(58px, 5.5vw, 88px);
    line-height: .95;
    font-weight: 300;
    letter-spacing: -3px;
}

.hero-subtitle {
    margin-top: 25px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 6px;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 38px;
    padding: 17px 25px;
    background: #f4f0e8;
    color: #292a26;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 3px;
    box-shadow: 0 6px 24px rgba(0,0,0,.24);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.hero-link span {
    font-size: 20px;
    transition: transform .25s ease;
}

.hero-link:hover,
.hero-link:focus-visible {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 9px 28px rgba(0,0,0,.32);
}

.hero-link:hover span,
.hero-link:focus-visible span {
    transform: translateX(5px);
}

/* MOBILE */

.menu-toggle {
    display: none;
}

@media (max-width: 1000px) {

    .site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    color: #f8f5ee;

    background: linear-gradient(
        to bottom,
        rgba(20, 24, 18, 0.38) 0%,
        rgba(20, 24, 18, 0.12) 60%,
        rgba(20, 24, 18, 0) 100%
    );
}

    .navigation {
        display: none;
    }

    .logo {
        font-size: 16px;
        letter-spacing: 4px;
    }

    .hero {
        min-height: 100svh;
        background-position: 55% center;
    }

    .hero-content {
        margin: 80px 25px 0;
    }

    .hero h1 {
        font-size: clamp(50px, 15vw, 75px);
        letter-spacing: -2px;
    }

    .hero-subtitle {
        font-size: 10px;
        letter-spacing: 4px;
    }
}

/* BARRA PRENOTAZIONE - CASA RIVETTA */
.booking-section { padding: 78px 7% 90px; background: var(--ivory); }
.booking-intro { margin-bottom: 32px; }
.booking-eyebrow { display: block; color: var(--olive); font-size: 11px; font-weight: 600; letter-spacing: 3px; margin-bottom: 14px; }
.booking-intro h2 { font-size: clamp(30px, 3vw, 46px); font-weight: 400; letter-spacing: -1.5px; margin-bottom: 12px; }
.booking-intro p { font-size: 14px; line-height: 1.8; color: #65675f; }
.booking-form { display: grid; grid-template-columns: 1fr 1fr .85fr auto; background: #fff; border: 1px solid #e3e0d7; box-shadow: 0 12px 35px rgba(35, 37, 29, .045); }
.booking-field { display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 19px 24px; font-size: 11px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: var(--olive); border-right: 1px solid #e9e7e0; }
.booking-field input, .booking-field select { width: 100%; min-width: 0; border: 0; outline-offset: 5px; background: transparent; color: var(--charcoal); font-family: inherit; font-size: 15px; font-weight: 400; letter-spacing: 0; }
.booking-submit { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 88px; padding: 20px 26px; border: 0; background: var(--olive); color: #fff; font: 500 12px Manrope, Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: background .2s ease; }
.booking-submit:hover { background: #424936; }
.booking-submit span { font-size: 20px; }
.booking-message { margin-top: 17px; font-size: 13px; line-height: 1.6; color: var(--olive); }
@media (max-width: 900px) { .booking-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .booking-field:nth-child(2) { border-right: 0; } .booking-field:nth-child(3) { border-top: 1px solid #e9e7e0; } .booking-submit { min-height: 78px; } }
@media (max-width: 540px) { .booking-section { padding: 56px 6% 68px; } .booking-form { grid-template-columns: 1fr; } .booking-field { min-height: 80px; border-right: 0; border-bottom: 1px solid #e9e7e0; } .booking-field:nth-child(2) { border-bottom: 1px solid #e9e7e0; } .booking-field:nth-child(3) { border-top: 0; } .booking-submit { width: 100%; } }

/* ESITO VERIFICA DISPONIBILITÀ */
.booking-message:not(:empty) {
  display: block;
  margin-top: 22px;
  padding: 20px 24px;
  background: #fff;
  border-left: 5px solid #59604b;
  box-shadow: 0 6px 24px rgba(35,37,29,.07);
  color: #292a26;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.65;
}
.booking-message.is-error:not(:empty) {
  background: #fbf1ec;
  border-left-color: #a85d42;
  color: #713e2e;
}
.booking-message.is-success:not(:empty) {
  background: #f2e9dc;
  border-left-color: #b29a7a;
  color: #594733;
}
@media (max-width:540px) {
  .booking-message:not(:empty) { font-size: 16px; padding: 17px 18px; }
}

/* CONTINUA PRENOTAZIONE - palette beige/marrone */
.booking-continue { display: inline-flex; align-items: center; gap: 18px; margin-top: 18px; padding: 17px 26px; background: #806b52; color: #fffaf2; border: 1px solid #806b52; font: 600 13px Manrope,Arial,sans-serif; letter-spacing: .6px; cursor: pointer; transition: background .2s ease; }
.booking-continue:hover { background: #594733; }
.booking-continue[hidden], .booking-details[hidden] { display: none !important; }
.booking-details { margin-top: 28px; padding: 30px; background: #f5eee4; border: 1px solid #d9c9b5; color: #594733; }
.booking-details h3 { font-size: 26px; font-weight: 500; margin-bottom: 8px; }
.booking-details > p { margin-bottom: 20px; line-height: 1.6; }
.booking-details-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.booking-details-form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; }
.booking-details-form input { width: 100%; padding: 14px; border: 1px solid #cdbba5; background: #fffdf9; color: #292a26; font: 15px Manrope,Arial,sans-serif; }
.booking-details-note { grid-column: 1 / -1; font-size: 12px; line-height: 1.6; }
@media(max-width: 600px) { .booking-details { padding: 20px; } .booking-details-form { grid-template-columns: 1fr; } }


/* PAGAMENTO STRIPE */
.booking-details-actions {
    grid-column: 1 / -1;
}
.booking-prepare {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 16px 24px;
    border: 0;
    background: #806b52;
    color: #fffaf2;
    font: 600 13px Manrope, Arial, sans-serif;
    letter-spacing: .6px;
    cursor: pointer;
}
.booking-prepare:hover { background: #594733; }
.booking-payment {
    margin-top: 28px;
    padding: 26px;
    background: #fffdf9;
    border: 1px solid #d9c9b5;
}
.booking-payment[hidden] { display: none !important; }
.booking-payment-summary {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5dacb;
    color: #594733;
    font-size: 15px;
    font-weight: 600;
}
#payment-element { margin-top: 8px; }
.booking-pay {
    width: 100%;
    margin-top: 22px;
    padding: 16px 22px;
    border: 0;
    background: #806b52;
    color: #fffaf2;
    font: 600 13px Manrope, Arial, sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
}
.booking-pay:hover { background: #594733; }
.booking-pay:disabled { opacity: .6; cursor: wait; }
.booking-payment-message {
    margin-top: 16px;
    padding: 14px 16px;
    color: #594733;
    font-size: 14px;
    line-height: 1.6;
}
.booking-payment-message:empty { display: none; }
.booking-payment-message.is-error {
    background: #fbf1ec;
    color: #713e2e;
    border-left: 4px solid #a85d42;
}
.booking-payment-message.is-success {
    background: #f2e9dc;
    color: #594733;
    border-left: 4px solid #b29a7a;
}
@media(max-width:600px) {
    .booking-payment { padding: 18px; }
    .booking-prepare { width: 100%; justify-content: center; }
}
