/* ============================================================
   7SEA — boat charter
   Direzione: Sunbrella "Uncharted Waters" (struttura hero+nav),
   Sanlorenzo/Riva/Azimut (lusso discreto, full-bleed, spazio).
   ============================================================ */

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

:root {
    --ink: #0B141D;
    --abisso: #10202E;
    --nebbia: #EEF1F0;
    --foschia: #A9BCC6;
    --ottone: #A88C60;
    --bianco: #FFFFFF;
    --errore: #C25E5E;

    --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --font-body: "Barlow", system-ui, sans-serif;
    --font-serif: "Cormorant Garamond", Georgia, serif;

    --nav-h: 64px;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    color: var(--ink);
    background: var(--nebbia);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

::selection {
    background: var(--ottone);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--ottone);
    outline-offset: 3px;
}

[id] {
    scroll-margin-top: calc(var(--nav-h) + 24px);
}

/* ---------- Tipografia condivisa ---------- */

.eyebrow {
    margin: 0 0 1.4rem;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--ottone);
}

.title {
    margin: 0 0 1.6rem;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.05;
    text-transform: uppercase;
}

.lead {
    margin: 0;
    max-width: 36ch;
    font-size: 1.1rem;
    letter-spacing: .02em;
    line-height: 1.75;
}

.link-line {
    display: inline-block;
    margin-top: 2.4rem;
    padding-bottom: .45rem;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .32em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid var(--ottone);
    transition: color .35s ease, border-color .35s ease;
}

.link-line:hover {
    color: var(--ottone);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
    background: var(--ink);
    color: var(--bianco);
}

.hero__video,
.hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__img {
    display: none;
    animation: hero-settle 16s ease-out both;
}

/* Video di sfondo: nascosto (torna l'img statica) se l'utente preferisce meno movimento */
@media (prefers-reduced-motion: reduce) {
    .hero__video {
        display: none;
    }

    .hero__img {
        display: block;
    }
}

.hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 20, 29, .48) 0%, rgba(11, 20, 29, .2) 42%, rgba(11, 20, 29, .74) 100%);
}

.hero__content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 clamp(1.5rem, 7vw, 7rem);
}

.hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(3.2rem, min(10vw, 16vh), 8.4rem);
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.12;
    text-transform: uppercase;
    text-shadow: 0 2px 24px rgba(11, 20, 29, .55);
}

.hero__line {
    display: block;
}

.hero__line:nth-child(1) {
    animation: rise .9s .45s both;
}

.hero__row .hero__line {
    animation: rise .9s .6s both;
}

.hero__row {
    display: flex;
    align-items: baseline;
    gap: clamp(1.5rem, 4vw, 4rem);
    flex-wrap: wrap;
}

.hero__tag {
    margin: 0;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .34em;
    line-height: 2.1;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .88);
    text-shadow: 0 1px 12px rgba(11, 20, 29, .45);
    animation: rise .9s .85s both;
}

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: clamp(7rem, 15vh, 10rem);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin-left: -48px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 50%;
    font-size: 11px;
    letter-spacing: .32em;
    text-transform: uppercase;
    text-decoration: none;
    text-indent: .32em;
    text-shadow: 0 1px 10px rgba(11, 20, 29, .5);
    animation: rise .9s 1.15s both, bob 4.5s 2s ease-in-out infinite;
    transition: border-color .4s ease, background-color .4s ease;
}

.hero__scroll:hover {
    border-color: var(--ottone);
    background: rgba(255, 255, 255, .07);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

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

@keyframes bob {

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

    50% {
        transform: translateY(8px);
    }
}

@keyframes hero-settle {
    from {
        transform: scale(1.07);
    }

    to {
        transform: scale(1);
    }
}

/* ---------- Nav (absolute sull'hero, fixed allo scroll) ---------- */

.nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--nav-h);
    background: transparent;
    color: var(--bianco);
    text-shadow: 0 1px 10px rgba(11, 20, 29, .45);
    transition: background-color .4s ease, box-shadow .4s ease, color .4s ease;
}

/* Il marchio: qui non c'e' pittogramma, il nome e' il logo.
   Barlow Condensed 700, maiuscolo, nessun tracking.
   Allineato al ritmo orizzontale della pagina, non a un margine suo. */
.nav__brand {
    position: absolute;
    left: clamp(1.5rem, 7vw, 7rem);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: uppercase;
    text-decoration: none;
}

.nav__links {
    display: flex;
    gap: clamp(1.6rem, 4vw, 3.5rem);
}

/* Selettore lingua custom: stesso posizionamento assoluto del brand, speculare
   a destra. Bottom-right nella hero, top-right una volta che .nav e' .is-stuck. */
.nav__lang {
    position: absolute;
    right: clamp(1.5rem, 7vw, 7rem);
}

.nav__lang-btn {
    display: flex;
    align-items: center;
    gap: .7em;
    padding: 0 0 6px;
    background: none;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .4);
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: inherit;
    cursor: pointer;
    transition: border-color .35s ease, color .35s ease;
}

.nav__lang-btn:hover {
    color: var(--ottone);
    border-color: var(--ottone);
}

.nav__lang-chevron {
    width: 9px;
    height: 6px;
    flex: none;
    transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}

.nav__lang-btn[aria-expanded="true"] .nav__lang-chevron {
    transform: rotate(180deg);
}

/* position: fixed, non absolute: .hero ha overflow:hidden e clippa qualsiasi
   figlio absolute che sfori il suo bordo. top/right sono impostati via JS
   (getBoundingClientRect del bottone) al momento dell'apertura. */
.nav__lang-list {
    position: fixed;
    z-index: 60;
    margin: 0;
    padding: 4px 0;
    min-width: 6.5em;
    list-style: none;
    background: rgba(11, 20, 29, .92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .3s cubic-bezier(.16, 1, .3, 1), transform .3s cubic-bezier(.16, 1, .3, 1), visibility .3s;
    visibility: hidden;
}

.nav__lang-list:not([hidden]) {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Flip verso l'alto quando il trigger e' vicino al bordo inferiore del
   viewport (es. hero 100vh): la JS aggiunge questa classe e usa `bottom`
   invece di `top`. */
.nav__lang-list.is-up {
    transform: translateY(6px);
}

.nav__lang-list.is-up:not([hidden]) {
    transform: translateY(0);
}

.nav__lang-list li {
    padding: .8em 1.6em;
    font-size: 14px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--nebbia);
    cursor: pointer;
    transition: color .25s ease, background-color .25s ease;
}

.nav__lang-list li:hover,
.nav__lang-list li[aria-selected="true"] {
    color: var(--ottone);
    background: rgba(168, 140, 96, .1);
}

@media (prefers-reduced-motion: reduce) {

    .nav__lang-chevron,
    .nav__lang-list {
        transition-duration: .01ms !important;
    }
}

.nav__links a {
    padding-bottom: 6px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .3em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .4);
    transition: color .35s ease, border-color .35s ease;
}

.nav__links a:hover {
    color: var(--ottone);
    border-color: var(--ottone);
}

.nav.is-stuck {
    position: fixed;
    top: 0;
    bottom: auto;
    background: rgba(11, 20, 29, .88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--nebbia);
    text-shadow: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.nav.is-stuck .nav__links a {
    border-color: rgba(238, 241, 240, .3);
}

.nav.is-stuck .nav__links a:hover {
    color: var(--ottone);
    border-color: var(--ottone);
}

/* ---------- Manifesto ---------- */

.manifesto {
    padding: clamp(8rem, 16vw, 13rem) 1.5rem;
    text-align: center;
}

.manifesto__line {
    margin: 0 auto;
    max-width: 18ch;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(2.1rem, 5vw, 3.7rem);
    line-height: 1.35;
}

/* ---------- Pannelli full-bleed ---------- */

.panel {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--abisso);
    color: var(--bianco);
}

.panel__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, rgba(11, 20, 29, .1) 30%, rgba(11, 20, 29, .8) 100%);
}

.panel__content {
    position: relative;
    z-index: 1;
    padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 7vw, 7rem);
    text-shadow: 0 1px 16px rgba(11, 20, 29, .4);
}

.panel .lead {
    color: rgba(255, 255, 255, .85);
}

.panel .eyebrow {
    color: var(--bianco);
    text-shadow: 0 1px 8px rgba(11, 20, 29, .7);
}

/* ---------- Metodo ---------- */

.metodo {
    padding: clamp(6rem, 13vw, 10rem) 1.5rem clamp(5rem, 11vw, 8rem);
    text-align: center;
    background: var(--nebbia);
}

.metodo__line {
    margin: 0 0 clamp(3rem, 7vw, 5rem);
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    line-height: 1.35;
    color: var(--abisso);
}

.metodo__steps {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 1rem clamp(2rem, 6vw, 4.5rem);
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.metodo__steps li {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .3em;
    text-transform: uppercase;
}

.metodo__num {
    margin-right: .6em;
    font-family: var(--font-display);
    letter-spacing: .1em;
    color: var(--ottone);
}

/* ---------- Trittico ---------- */

.trittico {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    background: var(--nebbia);
}

.trittico__cell {
    position: relative;
    height: 72vh;
    min-height: 380px;
    margin: 0;
    overflow: hidden;
    background: var(--abisso);
}

.trittico__cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s cubic-bezier(.2, .6, .2, 1);
}

.trittico__cell:hover img {
    transform: scale(1.06);
}

.trittico__cell figcaption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .5em;
    text-indent: .5em;
    text-transform: uppercase;
    color: var(--bianco);
    text-shadow: 0 1px 12px rgba(11, 20, 29, .55);
    background: rgba(11, 20, 29, .4);
    transition: background-color .6s ease;
}

.trittico__cell:hover figcaption {
    background: rgba(11, 20, 29, .22);
}

/* ---------- Split (management) ---------- */

.split {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 86vh;
}

.split__media {
    position: relative;
    overflow: hidden;
    background: var(--abisso);
}

.split__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(3.5rem, 7vw, 7rem);
}

.split__body .lead {
    color: rgba(11, 20, 29, .75);
}

/* ---------- Interludio ---------- */

.interlude {
    position: relative;
    min-height: 68vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--abisso);
}

.interlude__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.interlude__veil {
    position: absolute;
    inset: 0;
    background: rgba(11, 20, 29, .45);
}

.interlude__line {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0 1.5rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(2.1rem, 5vw, 3.7rem);
    color: var(--bianco);
    text-align: center;
    text-shadow: 0 2px 20px rgba(11, 20, 29, .5);
}

/* ---------- Contatto ---------- */

.contatto {
    background: var(--ink);
    color: var(--nebbia);
    padding: clamp(6rem, 12vw, 10rem) clamp(1.5rem, 7vw, 7rem);
}

.contatto__inner {
    max-width: 880px;
    margin: 0 auto;
}

.contatto .lead {
    color: var(--foschia);
}

.contatto form {
    margin-top: clamp(3rem, 6vw, 5rem);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.6rem 3.5rem;
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: .7rem;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--foschia);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: .8rem 0;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.05rem;
    letter-spacing: .02em;
    color: var(--bianco);
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(169, 188, 198, .35);
    border-radius: 0;
    transition: border-color .35s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--ottone);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
    border-bottom-color: var(--errore);
}

.form-check {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.form-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 0;
    border: 1px solid rgba(169, 188, 198, .5);
    background: transparent;
    cursor: pointer;
    transition: background-color .25s ease, border-color .25s ease;
}

.form-check input[type="checkbox"]:checked {
    background: var(--ottone);
    border-color: var(--ottone);
}

.form-check input[type="checkbox"].is-invalid {
    border-color: var(--errore);
}

.form-check label {
    margin: 0;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: .06em;
    text-transform: none;
    color: var(--foschia);
    cursor: pointer;
}

.text-danger {
    margin-top: .5rem;
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--errore);
}

.btn-submit {
    display: inline-block;
    padding: 1.15rem 3.4rem;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .32em;
    text-indent: .32em;
    text-transform: uppercase;
    color: var(--nebbia);
    background: transparent;
    border: 1px solid var(--ottone);
    cursor: pointer;
    transition: background-color .4s ease, color .4s ease;
}

.btn-submit:hover {
    background: var(--ottone);
    color: var(--ink);
}

.form-feedback {
    margin-top: 2.5rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
}

.form-feedback--error {
    color: var(--errore);
    font-family: var(--font-body);
    font-style: normal;
    font-size: 1rem;
}

/* ---------- Footer ---------- */

.site-footer {
    padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.5rem, 7vw, 7rem) 2.4rem;
    background: var(--ink);
    color: var(--foschia);
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.site-footer__top {
    display: flex;
    justify-content: space-between;
    gap: 3rem 2rem;
    flex-wrap: wrap;
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.site-footer__brand-col {
    max-width: 26ch;
}

.site-footer__brand {
    display: inline-block;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--nebbia);
    text-decoration: none;
}

.site-footer__tagline {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    letter-spacing: .02em;
    color: var(--foschia);
}

.site-footer__nav,
.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .3em;
    text-transform: uppercase;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 2rem;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 9px;
    letter-spacing: .1em;
    color: rgba(169, 188, 198, .55);
}

.site-footer a {
    text-decoration: none;
    transition: color .35s ease;
}

.site-footer a:hover {
    color: var(--ottone);
}

/* ---------- Reveal on scroll ---------- */

.js-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 1s cubic-bezier(.2, .6, .2, 1), transform 1s cubic-bezier(.2, .6, .2, 1);
}

.js-reveal.is-inview {
    opacity: 1;
    transform: none;
}

/* ---------- Pagine statiche (404) ---------- */

.static-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem;
}

/* ---------- Cookie (404) ---------- */
.cookiehub-declaration p {
    padding-left: 0 !important;
    padding-right: 0 !important;
    color: #000;
    font-size: 16px !important;
}

.cookiehub-declaration td,
.cookiehub-declaration th {
    padding: 10px 10px !important;
}

.cookiehub-declaration th {
    background-color: #333;
    color: #fff;
}

.cookiehub-declaration td {
    color: #000;
}

.cookiehub-declaration tr:nth-of-type(odd) {
    background-color: #f0f0f0;
    color: #000;
}

.cookiehub-declaration tr:nth-of-type(odd) td,
.cookiehub-declaration tr:nth-of-type(odd) td p {
    background-color: #f0f0f0;
    color: #000;
}


/* ---------- Responsive ---------- */

@media (max-width: 900px) {

    .metodo__steps {
        gap: .8rem 2rem;
    }

    .trittico {
        grid-template-columns: 1fr;
    }

    .trittico__cell {
        height: 52vh;
        min-height: 300px;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .split__media {
        min-height: 55vh;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }

    /* Il marchio resta: e' l'unico segno di brand della pagina, non un ornamento.
       Esce dal posizionamento assoluto e divide la barra con i link. */
    .nav {
        justify-content: space-between;
        padding: 0 clamp(1.5rem, 7vw, 7rem);
    }

    .nav__brand {
        position: static;
        left: auto;
        font-size: .95rem;
        letter-spacing: .26em;
    }

    .nav__links {
        gap: 1.3rem;
    }

    .nav__links a {
        font-size: 10px;
        letter-spacing: .22em;
    }

    /* Esce dall'absolute come il brand: terzo elemento della barra flex. */
    .nav__lang {
        position: static;
    }

    .nav__lang-btn {
        font-size: 10px;
        letter-spacing: .22em;
    }
}

@media (max-width: 560px) {

    .nav {
        padding: 0 1.2rem;
    }

    .nav__brand {
        font-size: .8rem;
        letter-spacing: .2em;
    }

    .nav__links {
        gap: .85rem;
    }

    .nav__links a {
        font-size: 9px;
        letter-spacing: .12em;
    }

    .nav__lang-btn {
        font-size: 9px;
        letter-spacing: .12em;
    }
}

/* ponytail: ultimo giro di vite per i 320px, sotto non si scende senza
   sacrificare il marchio o accorciare le voci di menu. */
@media (max-width: 380px) {

    .nav__links {
        gap: .6rem;
    }

    .nav__links a {
        letter-spacing: .06em;
    }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .js-reveal {
        opacity: 1;
        transform: none;
    }
}