@font-face {
    font-family: 'Darker Grotesque';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/darker-grotesque-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Darker Grotesque';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/darker-grotesque-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Gloria Hallelujah';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/gloria-hallelujah-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Gloria Hallelujah';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/gloria-hallelujah-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --color-dark: #151717;
    --color-brown-light: #331511;
    --font-heading: 'Darker Grotesque', sans-serif;
    --font-script: 'Gloria Hallelujah', cursive;
    --badge-size: clamp(90px, 14vw, 140px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-heading), serif;
    color: var(--color-dark);
}

.site-nav {
    background-color: var(--color-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.site-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s;
    padding-block: 0.6rem;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus,
.site-nav .nav-link.active {
    color: #fff;
}

.site-nav__logo {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

#storia, #servizi, #contatti {
    scroll-margin-top: var(--navbar-height, 56px);
}


a {
    color: inherit;
}

.hero {
    background-image: linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45)), url('../assets/background.webp');
    background-repeat: repeat;
    background-attachment: scroll, scroll;
}

.hero__mountain {
    display: block;
    margin-bottom: -1px;
    fill: var(--color-dark);
}

.footer__mountain {
    display: block;
    margin-bottom: -1px;
    fill: var(--color-brown-light);
}

.site-footer {
    background-color: var(--color-brown-light);
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

.site-footer__social {
    color: #fff;
    transition: opacity 0.15s ease;
}

.site-footer__social:hover,
.site-footer a:hover {
    opacity: 0.7;
}

.hero__band {
    background-color: var(--color-dark);
}

.timeline-badge {
    background-image: linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45)), url('../assets/background.webp');
    background-repeat: repeat;
    background-size: 1500px auto, 1500px auto;
    background-attachment: scroll, scroll;
    width: var(--badge-size);
    height: var(--badge-size);

}

.timeline-connector {
    align-self: center;
    min-width: 1.5rem;
    height: 6px;
    background-image: linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45)), url('../assets/background.webp');
    background-repeat: repeat;
    background-size: 1500px auto, 1500px auto;
    background-attachment: scroll, scroll;
}

@media (min-width: 768px) {
    .timeline-connector {
        min-width: 0;
        width: 6px;
        height: auto;
        min-height: 1.5rem;
    }
}

.script-accent {
    font-family: var(--font-script), serif;
}

.section-title {
    color: var(--color-brown-light);
}

.specialisti__img {
    height: clamp(280px, 42vw, 720px);
}

.servizi-ribbon {
    min-height: clamp(140px, 16vw, 220px);
    overflow: hidden;
}

@media (min-width: 992px) {
    .servizi-ribbon {
        min-height: clamp(110px, 10vw, 160px);
    }
}

.servizi-ribbon__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.servizio-line {
    position: relative;
}

.servizio-line__rail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.servizio-line__rail line {
    stroke: var(--color-brown-light);
    stroke-width: clamp(4px, 1.6vw, 8px);
}

.servizio-line__badge {
    position: absolute;
    top: 2.5rem;
    left: 50%;
    width: clamp(32px, 8vw, 64px);
    height: clamp(32px, 8vw, 64px);
    transform: translateX(-50%);
}

.servizio-line__badge circle {
    fill: #fff;
    stroke: var(--color-brown-light);
    stroke-width: 3;
}

.servizio-line__badge text {
    fill: var(--color-brown-light);
    font-family: var(--font-heading), sans-serif;
    font-weight: 700;
}

.servizio-cta {
    background-color: var(--color-brown-light);
    border: 4px solid var(--color-brown-light);
    color: #fff;
    transition: background-color 0.15s ease, color 0.15s ease;
    text-decoration: none;
}

.servizio-cta:hover {
    background-color: #fff;
    color: var(--color-brown-light);
}

.servizio-cta--outline {
    background-color: #fff;
    color: var(--color-brown-light);
}

.servizio-cta--outline:hover {
    background-color: var(--color-brown-light);
    color: #fff;
}

.servizi__connector-h {
    display: block;
    height: clamp(70px, 10vw, 200px);
    overflow: visible;
}

.servizi__connector-h path {
    stroke: var(--color-brown-light);
    stroke-width: clamp(4px, 1.6vw, 8px);
    stroke-linecap: square;
    stroke-linejoin: miter;
}

.lightbox-img {
    cursor: pointer;
}

.servizio-carousel .carousel-control-prev-icon,
.servizio-carousel .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.servizio-carousel .carousel-item img {
    height: clamp(280px, 42vw, 720px);
}

.lightbox-modal .modal-content {
    background-color: rgba(0, 0, 0, 0.92);
    border: none;
}

.lightbox-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
    opacity: 1;
}

.lightbox-modal__img {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
}


