/*
Theme Name: Studio Alebardi
Theme URI: https://www.studiotecnicoalebardi.it/
Author: Studio Alebardi
Description: Tema WordPress per Studio Alebardi - Architettura, Tecnica e Territorio a Roma.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: studio-alebardi
*/

/* ==================================================
   FONTS & VARIABLES
   ================================================== */
@font-face {
    font-family: 'Roboto Variable';
    src: url('asset/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-stretch: 75% 100%;
    font-style: normal;
    font-display: swap;
}

:root {
    --white: #F9FAF9;
    --black: #121714;
    --grey-light: #C8D0CB;
    --grey: #88908B;
    --grey-dark: #434945;
    --graphite: #252A27;

    --green-ultra-light: #DFE8E2;
    --green-light: #94B09C;
    --green: #4A7C59;
    --green-dark: #325A3F;
    --green-deep: #1C3624;

    --font-main: 'Roboto Variable', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --page-padding: clamp(20px, 5vw, 60px);
    --max-width: 1440px;
    --section-spacing: clamp(64px, 9vw, 130px);

    --ease-out: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    --trans-fast: 0.28s var(--ease-out);
    --trans-slow: 0.7s var(--ease-out);
}

/* ==================================================
   RESET & BASE (Ottimizzato iOS & Android)
   ================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--white);
    background-image: radial-gradient(var(--grey-light) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    color: var(--graphite);
    line-height: 1.5;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

/* Adattamento Admin Bar WordPress */
body.admin-bar .header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .header {
        top: 46px;
    }
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--trans-fast); touch-action: manipulation; }
button { touch-action: manipulation; }
ul, ol { list-style: none; }
section[id] { scroll-margin-top: 105px; }

@media (hover: hover) and (pointer: fine) {
    *, *::before, *::after { cursor: none !important; }
}

/* ==================================================
   PAGE TRANSITIONS
   ================================================== */
.page-content {
    transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}
.page-content.is-leaving { opacity: 0; transform: translateY(-10px); }
.page-content.is-entering { animation: pageEnter 0.45s var(--ease-out) forwards; }
@keyframes pageEnter {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ==================================================
   AUTOCAD CROSSHAIR CURSOR (Solo Desktop)
   ================================================== */
.cad-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    color: var(--green-dark);
    opacity: 0;
    transition: opacity 0.2s ease;
    will-change: transform;
}
.cad-cursor.visible { opacity: 1; }
.cad-line-h { width: 52px; height: 1px; background-color: currentColor; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: width 0.2s var(--ease-out); }
.cad-line-v { width: 1px; height: 52px; background-color: currentColor; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: height 0.2s var(--ease-out); }
.cad-square { width: 8px; height: 8px; border: 1px solid currentColor; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background-color 0.2s; }

.cad-cursor.hover .cad-square { width: 18px; height: 18px; background-color: rgba(50, 90, 63, 0.15); }
.cad-cursor.hover .cad-line-h { width: 66px; }
.cad-cursor.hover .cad-line-v { height: 66px; }

/* ==================================================
   TYPOGRAPHY & LAYOUT
   ================================================== */
h1, h2, h3, h4, h5, h6 { font-weight: 300; line-height: 1.1; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: -0.02em; }
.section-title { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 300; margin-bottom: 1.8rem; }
.large-sentence { font-size: clamp(1.15rem, 2.2vw, 1.65rem); font-weight: 300; text-transform: none; line-height: 1.5; max-width: 880px; }
.large-p { font-size: clamp(1rem, 1.4vw, 1.15rem); font-weight: 300; line-height: 1.7; }
.label { display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; color: var(--grey); margin-bottom: 1rem; }
.section-label { margin-bottom: 1.5rem; border-bottom: 1px solid var(--black); padding-bottom: 0.5rem; display: inline-block; }
.small-text { font-size: 0.95rem; line-height: 1.6; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--page-padding); }
.section-padding { padding-top: var(--section-spacing); padding-bottom: var(--section-spacing); }
.bg-light { background-color: var(--green-ultra-light); }
.bg-dark { background-color: var(--green-deep); }
.bg-graphite { background-color: var(--graphite); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 3rem; }
.border-bottom { border-bottom: 1px solid var(--grey-light); }
.border-light { border-color: var(--grey) !important; color: var(--grey-light) !important; }

.grid-2-cols { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 992px) { .grid-2-cols { grid-template-columns: 1fr 1fr; gap: 5rem; } }

/* ==================================================
   HEADER & LOGO PIÙ GRANDE E FUNZIONALE
   ================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0.9rem 0;
    background-color: rgba(249, 250, 249, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(200, 208, 203, 0.5);
    transition: padding var(--trans-fast), background-color var(--trans-fast), box-shadow var(--trans-fast);
}
.header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(249, 250, 249, 0.96);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

.brand {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0;
    flex-shrink: 0;
    transition: opacity var(--trans-fast), transform var(--trans-fast);
}
.brand:hover { opacity: 0.85; transform: scale(1.02); }
.logo {
    height: clamp(78px, 8.5vw, 125px);
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: height var(--trans-fast);
}
.header.scrolled .logo { height: clamp(60px, 6vw, 80px); }

.main-nav { display: flex; align-items: center; gap: 2.2rem; }
.main-nav ul { display: flex; gap: 1.8rem; }
.main-nav a { font-size: 0.92rem; text-transform: uppercase; font-weight: 400; letter-spacing: 0.04em; position: relative; padding-bottom: 4px; }
.main-nav ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--green);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease-out);
}
.main-nav ul a:hover::after,
.main-nav ul a.active::after { transform: scaleX(1); transform-origin: left; }
.main-nav ul a.active { color: var(--green-dark); }

.btn-outline {
    border: 1px solid var(--black);
    padding: 0.65rem 1.3rem;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    border-radius: 2px;
    transition: all var(--trans-fast);
}
.btn-outline:hover { background-color: var(--green-dark); border-color: var(--green-dark); color: var(--white); transform: translateY(-2px); }

.btn-primary {
    display: inline-block;
    background-color: var(--green);
    color: var(--white);
    padding: 1rem 2.4rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    border: none;
    border-radius: 2px;
    transition: background-color var(--trans-fast), transform var(--trans-fast);
}
.btn-primary:hover { background-color: var(--green-dark); transform: translateY(-2px); }

.menu-toggle { display: none; background: none; border: none; width: 32px; height: 22px; position: relative; z-index: 101; padding: 10px 0; }
.menu-toggle .line { position: absolute; width: 100%; height: 1.5px; background-color: var(--black); left: 0; transition: var(--trans-fast); }
.menu-toggle .line:nth-child(1) { top: 4px; }
.menu-toggle .line:nth-child(2) { bottom: 4px; }

@media (max-width: 991px) {
    .menu-toggle { display: block; }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100svh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        transition: right 0.45s var(--ease-out);
        padding: var(--page-padding);
        z-index: 100;
    }
    .main-nav.active { right: 0; }
    .main-nav ul { flex-direction: column; text-align: center; gap: 1.8rem; }
    .main-nav a { font-size: 1.35rem; }
    .nav-cta { margin-top: 1.5rem; }
    .menu-toggle.active .line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .menu-toggle.active .line:nth-child(2) { transform: translateY(-6px) rotate(-45deg); }
}

/* ==================================================
   NUOVA HERO CON ROMA & LA NOSTRA STORIA
   ================================================== */
.hero-story {
    position: relative;
    min-height: 88svh;
    padding-top: clamp(130px, 14vw, 175px);
    padding-bottom: 0;
    background-image: url('asset/Roma.jpg');
    background-size: cover;
    background-position: center 65%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-story-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(18, 23, 20, 0.52) 0%,
        rgba(18, 23, 20, 0.22) 48%,
        rgba(18, 23, 20, 0.45) 100%
    );
    pointer-events: none;
}

.hero-story-top {
    position: relative;
    z-index: 2;
    padding-top: clamp(1.5rem, 4vw, 3.5rem);
    padding-bottom: clamp(2rem, 5vw, 4rem);
}

.hero-kicker {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
    color: rgba(249, 250, 249, 0.88);
    margin-bottom: 1rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(249, 250, 249, 0.45);
}

.hero-claim {
    font-size: clamp(2.1rem, 5.2vw, 4.2rem);
    font-weight: 300;
    line-height: 1.08;
    color: var(--white);
    letter-spacing: -0.015em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    max-width: 780px;
}

.hero-story-bottom {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
}

.story-card {
    background-color: var(--white);
    padding: clamp(2.2rem, 4.5vw, 3.8rem);
    max-width: 640px;
    width: 100%;
    margin-bottom: 0;
    box-shadow: none;
    border-top: 4px solid var(--green);
}

.story-card h2 {
    font-size: 1.35rem;
    font-weight: 400;
    text-transform: none;
    margin-bottom: 0.9rem;
    color: var(--black);
}

.story-card-line {
    width: 42px;
    height: 1px;
    background-color: var(--green);
    margin-bottom: 1.5rem;
}

.story-card p {
    font-size: 1rem;
    line-height: 1.78;
    color: var(--graphite);
}

@media (max-width: 767px) {
    .hero-story {
        min-height: 82svh;
        background-position: center center;
    }
    .story-card {
        max-width: 100%;
        margin-bottom: 0;
    }
}

/* ==================================================
   NUMERI & PROFILI PROFESSIONISTI
   ================================================== */
.numbers-section { padding-top: 120px; padding-bottom: 90px; }
.numbers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; text-align: center; }
@media (min-width: 768px) { .numbers-grid { grid-template-columns: repeat(4, 1fr); } }
.number-item .num { display: block; font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 200; color: var(--black); line-height: 1; margin-bottom: 0.5rem; }
.number-item .num-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey-dark); }

.profiles-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 768px) { .profiles-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.profile-img { margin-bottom: 2rem; }
.profile-img img {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 3 / 4;
    border-radius: 4px;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    background-color: var(--green-ultra-light);
}

.profile-card h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.profile-card .role { display: block; font-size: 0.85rem; color: var(--green-dark); margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.profile-line { width: 40px; height: 1px; background-color: var(--green); margin-bottom: 1.5rem; transition: width var(--trans-slow); }
.profile-card:hover .profile-line { width: 100px; }
.competence-list li { font-size: 0.95rem; padding: 0.65rem 0; border-bottom: 1px solid var(--grey-light); color: var(--grey-dark); }

/* ==================================================
   SERVIZI ACCORDION & CERTIFICAZIONI
   ================================================== */
.services-list { border-top: 1px solid var(--grey-light); }
.service-row {
    display: flex;
    flex-direction: column;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--grey-light);
    position: relative;
    cursor: pointer;
    touch-action: manipulation;
}
.service-header { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1rem; }
.service-header-left { display: flex; align-items: center; }
.service-num { font-size: 0.85rem; width: 42px; flex-shrink: 0; color: var(--grey); transition: color var(--trans-fast); }
.service-name { font-size: clamp(1.15rem, 2.3vw, 2.1rem); margin: 0; transition: transform var(--trans-fast), color var(--trans-fast); }

.service-toggle {
    font-size: 1.6rem;
    font-weight: 200;
    color: var(--grey);
    line-height: 1;
    transition: transform var(--trans-fast), color var(--trans-fast);
    user-select: none;
}
.service-row:hover .service-toggle,
.service-row.is-open .service-toggle { color: var(--green-dark); }
.service-row.is-open .service-toggle { transform: rotate(45deg); }

.service-details { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.3s ease; padding-left: 42px; }
@media (max-width: 767px) { .service-details { padding-left: 0; } }
.service-row.is-open .service-details { max-height: 1200px; opacity: 1; margin-top: 1.4rem; }
.service-row.is-open .service-name { transform: translateX(8px); color: var(--green-dark); }
.service-row.is-open .service-num { color: var(--green); }

.service-details ul { padding: 0; margin-bottom: 0.5rem; }
.service-details li { font-size: 0.98rem; color: var(--grey-dark); margin-bottom: 1rem; padding-left: 20px; position: relative; line-height: 1.5; }
.service-details li::before { content: '→'; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 500; }
.normativa { display: block; font-size: 0.82rem; color: var(--grey); font-style: italic; margin-top: 3px; }

.service-row::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--green);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--trans-slow);
}
.service-row:hover .service-num { color: var(--green); }
.service-row:hover .service-name { transform: translateX(8px); color: var(--black); }
.service-row:hover::after,
.service-row.is-open::after { transform: scaleX(1); transform-origin: left; }

.service-details-inner { display: flex; flex-direction: column; gap: 1.8rem; padding: 0.8rem 0; }
.service-text-box, .service-img-box { flex: 1; }
.service-img-box img { width: 100%; height: 260px; object-fit: cover; border-radius: 4px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08); background-color: var(--green-ultra-light); }
@media (min-width: 768px) {
    .service-details-inner { flex-direction: row; align-items: center; gap: 3rem; }
    .service-row:nth-child(even) .service-details-inner { flex-direction: row-reverse; }
}

/* Schede Certificazioni Minimal */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.8rem; margin-top: 3rem; }
.cert-card {
    background-color: var(--white);
    padding: 2rem;
    border-left: 3px solid var(--green);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--trans-fast), box-shadow var(--trans-fast);
}
.cert-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08); }
.cert-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--black); font-weight: 400; }
.cert-ref {
    display: inline-block;
    margin-top: 1.2rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--grey-light);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--green-dark);
    font-weight: 500;
}

.territorio-list ul { border-top: 1px solid var(--grey-dark); }
.territorio-list li { padding: 1.05rem 0; border-bottom: 1px solid var(--grey-dark); font-size: 1rem; position: relative; padding-left: 22px; }
.territorio-list li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; background-color: var(--green-light); }

/* ==================================================
   CONTATTI
   ================================================== */
.contact-card {
    background: var(--white);
    padding: clamp(2rem, 5vw, 3.6rem);
    border-radius: 4px;
    color: var(--black);
    border-left: 4px solid var(--green);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.16);
}
.contact-group { margin-bottom: 2.3rem; }
.contact-group:last-child { margin-bottom: 0; }
.contact-group h4 { font-size: 0.78rem; color: var(--grey); margin-bottom: 1.1rem; letter-spacing: 0.1em; font-weight: 500; }
.contact-tel-list, .contact-mail-list { display: flex; flex-direction: column; gap: 0.9rem; }

.contact-tel-link {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--grey-light);
    font-size: 1.02rem;
    transition: transform var(--trans-fast), border-color var(--trans-fast), color var(--trans-fast);
}
.contact-tel-link:hover { transform: translateX(6px); border-bottom-color: var(--green); color: var(--green-dark); }
.contact-tel-name { display: inline-flex; align-items: center; gap: 10px; }
.contact-tel-arrow { color: var(--green); font-size: 1.15rem; }
.contact-tel-num { font-weight: 500; color: var(--green-dark); white-space: nowrap; }

.contact-mail-link {
    font-size: 0.98rem;
    color: var(--graphite);
    width: fit-content;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    word-break: break-word;
    transition: color var(--trans-fast), border-color var(--trans-fast);
}
.contact-mail-link:hover { color: var(--green-dark); border-bottom-color: var(--green); }

/* ==================================================
   PAGE HERO & VETRINA IN ALLESTIMENTO (PROGETTI & MAGAZINE)
   ================================================== */
.page-hero { padding-top: clamp(140px, 16vw, 200px); padding-bottom: clamp(40px, 6vw, 70px); border-bottom: 1px solid var(--grey-light); }
.page-hero-title { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 200; line-height: 1; margin-bottom: 0.5rem; text-transform: uppercase; }

.placeholder-section { min-height: 55svh; display: flex; align-items: center; justify-content: center; text-align: center; }
.placeholder-card {
    background-color: var(--white);
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
    border-radius: 6px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    max-width: 620px;
    margin: 0 auto;
    border-top: 4px solid var(--green);
}
.placeholder-icon { margin: 0 auto 1.5rem; color: var(--green); }
.placeholder-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1rem; }
.placeholder-card p { color: var(--grey-dark); font-size: 1.05rem; line-height: 1.7; }

/* ==================================================
   FOOTER MINIMALE
   ================================================== */
.footer {
    padding: 3.5rem 0 calc(2rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--grey-light);
    background-color: var(--white);
    margin-top: auto;
}
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand h4 { font-size: 1.15rem; color: var(--black); margin-bottom: 0.4rem; font-weight: 400; letter-spacing: 0.05em; }
.footer-tagline { color: var(--grey-dark); font-size: 0.9rem; margin-bottom: 0.8rem; }
.footer-address-text { font-size: 0.9rem; color: var(--grey); line-height: 1.5; }
.footer-nav h4 { font-size: 0.78rem; color: var(--grey); letter-spacing: 0.08em; margin-bottom: 1rem; font-weight: 500; }
.footer-nav ul { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-nav a { font-size: 0.9rem; color: var(--grey-dark); }
.footer-nav a:hover, .footer-legal a:hover { color: var(--green); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid var(--grey-light);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--grey);
}
.footer-legal { display: flex; gap: 1.5rem; }

/* ==================================================
   ANIMATIONS & COOKIE BANNER
   ================================================== */
.reveal-up { opacity: 0; transform: translateY(28px); transition: opacity var(--trans-slow), transform var(--trans-slow); }
.reveal-up.active { opacity: 1; transform: translateY(0); }
.no-js .reveal-up { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

.reveal-word { display: inline-block; opacity: 0; transform: translateY(32px); animation: revealText 0.85s var(--ease-out) forwards; }
.hero-claim .reveal-word:nth-of-type(1) { animation-delay: 0.12s; }
.hero-claim .reveal-word:nth-of-type(2) { animation-delay: 0.28s; }
.hero-claim .reveal-word:nth-of-type(3) { animation-delay: 0.44s; }
@keyframes revealText { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
    .reveal-up, .reveal-word { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

.cookie-banner {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    right: 16px;
    max-width: 600px;
    background-color: var(--black);
    color: var(--white);
    padding: 1.2rem 1.4rem;
    border-radius: 4px;
    z-index: 9999;
    display: none;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
    font-size: 0.9rem;
}
@media (min-width: 768px) { .cookie-banner { flex-direction: row; align-items: center; justify-content: space-between; } }
.cookie-banner a { text-decoration: underline; color: var(--green-light); }
