/* =========================================================
   AQVA TOWN — Design tokens (LIGHT VARIANT)
   Palette invertita dal tema scuro originale: acqua cristallina
   + luce solare al posto del navy notturno. --abyss resta scuro
   di proposito — serve solo come inchiostro sopra i riempimenti
   oro (bottoni), che devono restare scuri in entrambi i temi.
   --sand passa da "testo chiaro su pagina scura" a "inchiostro
   scuro su pagina chiara".
   ========================================================= */
:root {
    --midnight: #dff3f1;
    --abyss: #04192b;
    --red-sea: #2d8c9c;
    --lagoon: #157f86;
    --desert: #b29b74;
    --dune: #a8865a;
    --sand: #0c2f3a;
    --sand-dim: rgba(12, 47, 58, .62);
    --sand-faint: rgba(12, 47, 58, .34);
    --gold: #b8925c;
    --foam: #f7ead2;
    --line: rgba(12, 47, 58, .14);
    --glass: rgba(255, 255, 255, .55);
    --glass-2: rgba(255, 255, 255, .35);

    --ff: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --fs-display: clamp(2.9rem, 8.2vw, 8rem);
    --fs-h2: clamp(2.1rem, 5vw, 4.4rem);
    --fs-h3: clamp(1.35rem, 2vw, 1.9rem);
    --fs-body: clamp(1rem, 1.15vw, 1.18rem);
    --fs-eyebrow: clamp(.7rem, .82vw, .82rem);

    --ease: cubic-bezier(.22, 1, .36, 1);
    --pad-x: clamp(1.4rem, 5vw, 7rem);
}

/* =========================================================
   BODY BACKGROUND
   ========================================================= */
body {
    background:
        radial-gradient(120% 90% at 50% -10%, #fff6e2 0%, var(--midnight) 45%, #c0e5e1 100%) fixed;
}

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
@media (hover:hover) and (pointer:fine) {
    body {
        cursor: none;
    }
}

.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--desert);

}

.cursor-ring {
    width: 42px;
    height: 42px;
    border: 1px solid var(--desert);

    transition: width .4s var(--ease), height .4s var(--ease),
        background-color .4s var(--ease), border-color .4s var(--ease);
}

.cursor-ring.is-hot {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, .15);
    border-color: rgba(178, 155, 116, .3);
}

@media (hover:none),
(pointer:coarse) {

    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

/* =========================================================
   SECTION TITLE
   ========================================================= */
.tm-section-title {
    position: absolute;
    right: -100px;
    z-index: -1;
}

.tm-section-title>::before {
    content: none;
}

/* =========================================================
   HERO SCROLL TO EXPLORE
   ========================================================= */

.hero__scroll {
    display: flex;
    align-items: center;
    gap: .9rem;
    opacity: 0;
    font-size: .72rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--sand-faint);
    width: fit-content;
    margin-left: auto;
    align-self: flex-end;
}

@media (max-width: 639px) {
    .hero__scroll {
        margin-left: 0;
        margin-right: auto;
        align-self: flex-start;
    }
}

.hero__scroll .rail {
    position: relative;
    width: 1px;
    height: 54px;
    background: var(--line);
    overflow: hidden
}

.hero__scroll .rail::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: var(--gold);
    animation: drip 2.6s var(--ease) infinite
}

@keyframes drip {
    0% {
        transform: translateY(-100%)
    }

    60%,
    100% {
        transform: translateY(260%)
    }
}

/* =========================================================
   CARDS PROJECT
   ========================================================= */

.cards {
    display: grid;
    grid-template-columns: 1fr;
}

.card {
    position: relative;
    background: transparent;
    padding: 2.8rem clamp(1.6rem, 3vw, 3.2rem);
    display: grid;
    grid-template-columns: 10% 60% 30%;
    align-items: center;
    min-height: clamp(220px, 26vw, 460px);
    border-top: 1px solid var(--line);
    overflow: hidden;
    color: var(--sand);
}

@media(max-width:700px) {
    .card {
        grid-template-columns: 1fr;
        gap: 1.2rem 0
    }

    .card__no {
        margin-bottom: .4rem
    }
}

.card>* {
    position: relative;
    z-index: 1
}

.card__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.card__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--card-bg) center/cover no-repeat;
    filter: grayscale(1);
    mix-blend-mode: multiply;
    opacity: .1;
}

.card__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--card-bg) center/cover no-repeat;
    clip-path: inset(100% 0 0 0);
    transition: clip-path .7s var(--ease);
}

.card:hover .card__bg::after {
    clip-path: inset(0 0 0 0);
}

@media(max-width:700px) {

    .card__bg::before,
    .card__bg::after {
        background-position: left center;
    }
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s var(--ease);
}

.card:hover::after {
    opacity: .3;
    transition-duration: 5s;
}

.card:last-child {
    border-bottom: 1px solid var(--line)
}

.card__no {
    font-size: .72rem;
    letter-spacing: .28em;
    color: var(--dune);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.card__no::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    transform: translate(-50%, -50%);
    z-index: -1;
}

.card__title {
    font-size: var(--fs-display);
    font-weight: 200;
    letter-spacing: 0;
    color: var(--sand);
    margin-top: 0;
    transition: color .7s var(--ease);
}

.card__desc {
    font-size: var(--fs-body);
    line-height: 1.62;
    color: var(--sand-dim);
    transition: color .7s var(--ease);
}

.card:hover .card__title,
.card:hover .card__desc {
    color: #fff;

    /*text-shadow: 0 1px 6px rgba(0, 0, 0, .35);*/
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    --bg: transparent;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    padding: 1.05rem 2.1rem;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--bg);
    font-size: .84rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--sand);
    overflow: hidden;
    isolation: isolate;
    transition: color .5s var(--ease), border-color .5s var(--ease);
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .6s var(--ease);
}

.btn:hover {
    color: var(--abyss);
    border-color: var(--gold)
}

.btn:hover::before {
    transform: scaleX(1)
}

.btn .arr {
    transition: transform .5s var(--ease)
}

.btn:hover .arr {
    transform: translateX(4px)
}

.btn--solid {
    --bg: var(--gold);
    color: var(--abyss);
    border-color: var(--gold)
}

.btn--solid::before {
    background: var(--foam)
}

/* =========================================================
   BUTTON CUSTOM — hover animato aqva-town (classe dedicata)
   Aggiungere "button-custom" alle classi del bottone in YOOtheme
   (es: uk-button uk-button-default button-custom).
   Copre sia il caso in cui la classe finisce direttamente
   sull'elemento cliccabile (.button-custom), sia il caso in cui
   YOOtheme la applica al wrapper esterno e il vero bottone
   (.uk-button-default / .el-link) è un discendente.
   Non tocca lo stile globale dei bottoni: si applica solo dove
   viene aggiunta questa classe e sovrascrive con !important
   le regole native di YOOtheme (border/background/box-shadow
   sono impostate !important anche nel tema).
   ========================================================= */
.button-custom:not(:has(.uk-button-default, .el-link)),
.button-custom .uk-button-default,
.button-custom .el-link {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    align-self: center !important;
    gap: .8rem !important;
    overflow: hidden !important;
    isolation: isolate !important;
    height: auto !important;
    line-height: 1.2 !important;
    padding: 1.05rem 2.1rem !important;
    border: 1px solid var(--line) !important;
    border-radius: 100px !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: .84rem !important;
    font-weight: 500 !important;
    letter-spacing: .16em !important;
    text-transform: uppercase !important;
    color: var(--sand) !important;
    transition: color .5s var(--ease), border-color .5s var(--ease) !important;
}

/* elimina il layer colore nativo di YOOtheme (::after), che altrimenti
   dipingerebbe sopra il nostro overlay animato e lo nasconderebbe */
.button-custom:not(:has(.uk-button-default, .el-link))::after,
.button-custom .uk-button-default::after,
.button-custom .el-link::after {
    content: none !important;
}

.button-custom:not(:has(.uk-button-default, .el-link))::before,
.button-custom .uk-button-default::before,
.button-custom .el-link::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: -1 !important;
    background: var(--gold) !important;
    background-image: none !important;
    filter: none !important;
    transform: scaleX(0) !important;
    transform-origin: left !important;
    transition: transform .6s var(--ease) !important;
}

.button-custom:not(:has(.uk-button-default, .el-link)):hover,
.button-custom:not(:has(.uk-button-default, .el-link)):focus,
.button-custom .uk-button-default:hover,
.button-custom .uk-button-default:focus,
.button-custom .el-link:hover,
.button-custom .el-link:focus {
    color: var(--abyss) !important;
    border-color: var(--gold) !important;
}

.button-custom:not(:has(.uk-button-default, .el-link)):hover::before,
.button-custom:not(:has(.uk-button-default, .el-link)):focus::before,
.button-custom .uk-button-default:hover::before,
.button-custom .uk-button-default:focus::before,
.button-custom .el-link:hover::before,
.button-custom .el-link:focus::before {
    transform: scaleX(1) !important;
}

/* =========================================================
   BUTTON CUSTOM — forzato nel componente Partner (.grid-partner)
   Stesso hover animato di .button-custom, applicato in automatico
   a tutti i bottoni della grid senza dover aggiungere la classe.
   La card intera è un link (a.uk-link-toggle): l'hover sul
   bottone scatta anche passando il mouse su tutta la card.
   ========================================================= */
.grid-partner .uk-button-default {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    align-self: center !important;
    gap: .8rem !important;
    overflow: hidden !important;
    isolation: isolate !important;
    height: auto !important;
    line-height: 1.2 !important;
    padding: 1.05rem 2.1rem !important;
    border: 1px solid var(--line) !important;
    border-radius: 100px !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: .84rem !important;
    font-weight: 500 !important;
    letter-spacing: .16em !important;
    text-transform: uppercase !important;
    color: var(--sand) !important;
    transition: color .5s var(--ease), border-color .5s var(--ease) !important;
}

.grid-partner .uk-button-default::after {
    content: none !important;
}

.grid-partner .uk-button-default::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: -1 !important;
    background: var(--gold) !important;
    background-image: none !important;
    filter: none !important;
    transform: scaleX(0) !important;
    transform-origin: left !important;
    transition: transform .6s var(--ease) !important;
}

.grid-partner .uk-button-default:hover,
.grid-partner .uk-button-default:focus,
.grid-partner a:hover .uk-button-default,
.grid-partner a:focus .uk-button-default {
    color: var(--abyss) !important;
    border-color: var(--gold) !important;
}

.grid-partner .uk-button-default:hover::before,
.grid-partner .uk-button-default:focus::before,
.grid-partner a:hover .uk-button-default::before,
.grid-partner a:focus .uk-button-default::before {
    transform: scaleX(1) !important;
}

.uk-icon-button::before,
.uk-button-primary::before {
    background-image: none !important;
    filter: none !important;
}

/* ==== OFF CANVAS MOBILE ==== */
.uk-offcanvas-bar .uk-nav-default>li>a {
    color: var(--desert);
}

.uk-offcanvas-bar .uk-logo {
    margin-bottom: 20px;
}

/* ==== CONTACT INTRO — mobile ==== */
@media (max-width: 639px) {
    #contact .text-intro-contact {
        padding: 0 0 0 15px;
    }

    .logo-footer img,
    .logo-hero img {
        max-width: 60vw
    }
}

@media (min-width: 1440px) {
    .uk-navbar-item {
        padding: 0;
    }
}