:root {
    --overlay-color: #000000;
    --overlay-opacity: 0.45;
    --fade-time: 2400ms;
    --contact-icon-size: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
}

.hero {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 520px;
    overflow: hidden;
    background: #000;
}

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

.slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transform: scale(1);
    transition: opacity var(--fade-time) ease-in-out;
    will-change: opacity, transform;
}

.slide.is-active {
    z-index: 1;
    opacity: 1;
}


/* Overlay unico e fisso: resta SEMPRE sopra a tutte le immagini,
   anche durante il cross-fade. */
.overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: var(--overlay-color);
    opacity: var(--overlay-opacity);
    pointer-events: none;
}

.topbar {
    position: absolute;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    padding: clamp(24px, 4vw, 58px) clamp(24px, 6vw, 120px);
}

.brand {
    display: inline-flex;
    align-items: center;
    max-width: min(420px, 42vw);
    text-decoration: none;
}
.brand img {
    display: block;
    width: 100%;
    max-height: 95px;
    object-fit: contain;
    object-position: left center;
}

.hero-content {
    position: absolute;
    z-index: 20;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 24px 70px;
}

.eyebrow {
    margin-bottom: 12px;
    font-size: clamp(20px, 2.1vw, 34px);
    line-height: 1;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: #55c5cf;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(52px, 6.1vw, 96px);
    line-height: 0.98;
    font-weight: 300;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.divider {
    width: 32px;
    height: 2px;
    margin: 22px 0 24px;
    background: rgba(255,255,255,.72);
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    min-height: 46px;
    padding: 12px 28px;
    border: 2px solid #55c5cf;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 14px;
    transition: background .25s ease, color .25s ease, transform .25s ease;
    backdrop-filter: blur(2px);
}
.cta:hover,
.cta:focus-visible {
    background: #55c5cf;
    color: #071214;
    transform: translateY(-1px);
    outline: none;
}

@media (max-width: 900px) {
    .topbar {
        padding: 28px 28px;
    }
    .brand {
        max-width: min(330px, 58vw);
    }
    .hero-content {
        padding-top: 120px;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: 100svh;
    }
    .topbar {
        padding: 20px 20px;
    }
    .brand {
        max-width: 72vw;
    }
    .brand img {
        max-height: 72px;
    }
    .hero-content {
        justify-content: center;
        padding: 110px 18px 46px;
    }
    .eyebrow {
        margin-bottom: 10px;
        font-size: clamp(18px, 5vw, 26px);
    }
    h1 {
        font-size: clamp(42px, 13vw, 70px);
        max-width: 95vw;
    }
    .divider {
        margin: 18px 0 20px;
    }
    .cta {
        min-width: 104px;
        min-height: 44px;
        padding: 11px 24px;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .topbar { padding-top: 16px; padding-bottom: 16px; }
    .brand { max-width: 280px; }
    .brand img { max-height: 58px; }
    .hero-content { padding-top: 80px; padding-bottom: 24px; }
    .eyebrow { font-size: 18px; margin-bottom: 6px; }
    h1 { font-size: 52px; }
    .divider { margin: 12px 0 14px; }
    .cta { min-height: 38px; padding: 8px 20px; font-size: 12px; }
}


/* ============================================================
   CONTATTI IN BASSO
   Coerenti con il layout minimale della pagina.
   ============================================================ */
.contact-bar {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 0 clamp(24px, 6vw, 120px) clamp(24px, 4vw, 52px);
    pointer-events: none;
}

.contact-item {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.92);
    text-decoration: none;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: .04em;
    transition: color .25s ease, opacity .25s ease, transform .25s ease;
}


.contact-icon {
    width: var(--contact-icon-size);
    height: var(--contact-icon-size);
    flex: 0 0 auto;
    object-fit: contain;
    opacity: .95;
    transition: transform .25s ease, opacity .25s ease;
}

.contact-copy {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
}

.contact-item:hover .contact-icon,
.contact-item:focus-visible .contact-icon {
    transform: scale(1.06);
    opacity: 1;
}

.contact-label {
    color: #55c5cf;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.contact-value {
    font-weight: 300;
    letter-spacing: .06em;
}

.contact-item::after {
    content: '';
    position: absolute;
}

.contact-item:hover,
.contact-item:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    outline: none;
}

.contact-email {
    text-align: right;
}

@media (max-width: 900px) {
    .contact-bar {
        padding: 0 28px 28px;
    }
}

@media (max-width: 600px) {
    .contact-bar {
        padding: 0 20px max(20px, env(safe-area-inset-bottom));
        gap: 12px;
    }
    .contact-item {
        gap: 9px;
        font-size: 11px;
        letter-spacing: .025em;
    }
    
.contact-icon {
    width: var(--contact-icon-size);
    height: var(--contact-icon-size);
    flex: 0 0 auto;
    object-fit: contain;
    opacity: .95;
    transition: transform .25s ease, opacity .25s ease;
}

.contact-copy {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
}

.contact-item:hover .contact-icon,
.contact-item:focus-visible .contact-icon {
    transform: scale(1.06);
    opacity: 1;
}

.contact-label {
        font-size: 8px;
        letter-spacing: .13em;
    }
}

@media (max-width: 430px) {
    .contact-bar {
        align-items: flex-end;
    }
    .contact-item {
        gap: 8px;
        white-space: normal;
        max-width: 48%;
    }
    .contact-copy {
        flex-direction: column;
        gap: 4px;
    }
    .contact-email {
        align-items: center;
    }
    .contact-email .contact-copy {
        align-items: flex-end;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .contact-bar {
        padding: 0 24px 14px;
    }
    .contact-item { font-size: 10px; }
    
.contact-icon {
    width: var(--contact-icon-size);
    height: var(--contact-icon-size);
    flex: 0 0 auto;
    object-fit: contain;
    opacity: .95;
    transition: transform .25s ease, opacity .25s ease;
}

.contact-copy {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
}

.contact-item:hover .contact-icon,
.contact-item:focus-visible .contact-icon {
    transform: scale(1.06);
    opacity: 1;
}

.contact-label { font-size: 8px; }
}

.brand {
    display: none !important;
}
