:root {
    --ao-blue: #5b8ba1;
    --ao-blue-dark: #3e6d84;
    --ao-black: #050505;
    --ao-soft: rgba(255, 255, 255, 0.78);
    --ao-border: rgba(91, 139, 161, 0.34);
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    color: #333;
    font-family: "Lato", Arial, sans-serif;
    background: #f7f7f7 url("../img/abs__.jpg") center top / cover fixed no-repeat;
}

a {
    color: var(--ao-blue);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--ao-blue-dark);
    text-decoration: underline;
}

.site-header {
    background: url("../img/alto_vuoto.jpg") center center / cover no-repeat;
}

.topbar {
    padding: 3px 0;
    background: rgba(93, 138, 163, 0.62);
}

.topbar a {
    color: #fff;
    font-size: 1rem;
    font-weight: 300;
    text-transform: uppercase;
}

.mobile-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 20px;
    background: rgba(94, 139, 166, 0.74);
}

.round-action,
.menu-toggle {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: var(--ao-blue);
    background: rgba(255, 255, 255, 0.82);
}

.menu-toggle {
    margin-left: auto;
    font-size: 1.35rem;
}

.header-main {
    display: flex;
    min-height: 135px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 18px 12px;
}

.logo-link img {
    display: block;
    width: min(415px, 58vw);
    max-width: 100%;
    height: auto;
}

.visit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 24px;
    border: 1px solid #fff;
    border-radius: 50px;
    color: #fff;
    background: var(--ao-blue);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.2;
    text-transform: uppercase;
}

.visit-btn:hover,
.visit-btn:focus {
    color: #fff;
    background: var(--ao-blue-dark);
    text-decoration: none;
}

.visit-btn .bi {
    font-size: 1.7rem;
}

.main-nav {
    --bs-navbar-nav-link-padding-x: 7px;
    border-top: 1px solid var(--ao-blue);
    background: rgba(255, 255, 255, 0.58);
}

.main-nav .navbar-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
}

.main-nav .nav-link {
    padding: 14px 11px;
    color: #424242;
    font-family: "Lato", Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: uppercase;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
    color: var(--ao-blue);
    text-decoration: none;
}

.hero-slider {
    background: rgba(0, 0, 0, 0.88);
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: clamp(44px, 5vw, 72px);
}

.carousel-item {
    height: clamp(430px, 56vw, 720px);
}

.carousel-item::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2) 58%, rgba(0, 0, 0, 0.1));
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    right: auto;
    bottom: 18%;
    left: 8%;
    z-index: 2;
    max-width: 920px;
    text-align: left;
}

.carousel-caption h1 {
    margin-bottom: 18px;
    color: #fff;
    font-family: "Oswald", Arial, sans-serif;
    font-size: clamp(2.15rem, 4.8vw, 4.8rem);
    font-weight: 300;
    line-height: 1.04;
    overflow-wrap: anywhere;
}

.carousel-caption p {
    max-width: 790px;
    color: #fff;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    font-weight: 300;
    line-height: 1.55;
}

.intro-strip {
    padding: 28px 0;
    background: rgba(255, 255, 255, 0.83);
}

.intro-strip .container {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.2fr);
    gap: 30px;
    align-items: center;
}

.doctor-card {
    display: flex;
    align-items: center;
    gap: 18px;
}

.doctor-card img {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 4px rgba(91, 139, 161, 0.14);
}

.doctor-card a {
    font-family: "Oswald", Arial, sans-serif;
    font-size: 1.55rem;
    font-weight: 300;
}

.doctor-card p {
    margin: 4px 0 0;
    color: #555;
    line-height: 1.45;
}

.deep-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.deep-links span {
    flex-basis: 100%;
    color: var(--ao-blue);
    font-family: "Oswald", Arial, sans-serif;
    font-size: 1.35rem;
    text-align: right;
    text-transform: uppercase;
}

.deep-links a {
    padding: 9px 13px;
    border: 1px solid var(--ao-border);
    background: rgba(255, 255, 255, 0.72);
    color: #454545;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.deep-links a:hover,
.deep-links a:focus {
    color: #fff;
    background: var(--ao-blue);
    text-decoration: none;
}

.feature-grid {
    padding: 24px 0 0;
    background: rgba(255, 255, 255, 0.3);
}

.feature-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(91, 139, 161, 0.2);
    border-radius: 4px;
    background: #fff;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-tile:focus-within {
    outline: 2px solid var(--ao-blue-dark);
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .feature-tile:hover {
        transform: translateY(-4px);
        border-color: var(--ao-blue);
        box-shadow: 0 12px 26px rgba(62, 109, 132, 0.18);
    }
}

@media (prefers-reduced-motion: reduce) {
    .feature-tile {
        transition: none;
    }

    .feature-tile:hover {
        transform: none;
    }
}

.feature-tile > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    flex-shrink: 0;
}

.feature-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
    color: #333;
    background: #fff;
}

.feature-copy h2 {
    margin-bottom: 14px;
    color: var(--ao-blue-dark);
    font-family: "Oswald", Arial, sans-serif;
    font-size: 1.75rem;
    font-weight: 300;
}

.feature-copy p {
    font-size: 0.98rem;
    line-height: 1.52;
}

.feature-copy h2 a {
    color: inherit;
    text-decoration: none;
}

.feature-copy h2 a:focus-visible {
    outline: 2px solid var(--ao-blue-dark);
    outline-offset: 3px;
}

.content-band {
    padding: 42px 0;
    background: rgba(255, 255, 255, 0.62);
}

.posts-wall {
    column-count: 2;
    column-gap: 24px;
}

.post-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 24px;
    padding: 22px;
    border: 1px solid rgba(91, 139, 161, 0.2);
    background: rgba(255, 255, 255, 0.82);
}

.post-date {
    margin-bottom: 8px;
    color: #6e6e6e;
    font-size: 0.92rem;
}

.post-card h2 {
    margin-bottom: 14px;
    font-family: "Oswald", Arial, sans-serif;
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1.22;
}

.post-card img {
    width: 100%;
    margin-bottom: 15px;
    background: #f2f2f2;
}

.post-card p {
    color: #4b4b4b;
    font-size: 1rem;
    line-height: 1.58;
}

.post-card .post-image-link {
    display: block;
}

.post-card .post-image-link:focus-visible,
.post-card h2 a:focus-visible {
    outline: 2px solid var(--ao-blue-dark);
    outline-offset: 3px;
}

.topics-panel {
    position: sticky;
    top: 18px;
    padding: 24px 24px 28px;
    background: rgba(255, 255, 255, 0.82);
}

.topics-panel h2 {
    margin-bottom: 18px;
    color: var(--ao-blue);
    font-family: "Oswald", Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 300;
    text-transform: uppercase;
}

.topics-panel ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.topics-panel li {
    border-bottom: 1px solid rgba(91, 139, 161, 0.14);
}

.topics-panel a {
    display: block;
    padding: 9px 0;
    color: #4e4e4e;
}

.topics-panel a:hover,
.topics-panel a:focus {
    color: var(--ao-blue);
}

.video-band {
    background: var(--ao-blue);
}

.video-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 200px;
    max-height: 675px;
    overflow: hidden;
    background: #14232c;
}

.video-cover .video-preview {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.video-cover .video-preview[hidden] {
    display: none;
}

.video-cover > iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-cover .video-consent-button {
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #fff;
    border-radius: 6px;
    color: #fff;
    background: var(--ao-blue-dark);
    font: inherit;
}

.video-cover .video-consent-button:hover {
    background: var(--ao-blue);
}

.video-cover .video-consent-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.site-footer {
    padding: 34px 0 18px;
    border-top: 1px solid #030303;
    border-bottom: 1px solid #030303;
    color: #fff;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), var(--ao-blue);
}

.site-footer h2 {
    color: #d5edf7;
    font-family: "Oswald", Arial, sans-serif;
    font-size: 1.45rem;
    font-weight: 300;
}

.site-footer p {
    line-height: 1.6;
}

.site-footer a {
    color: #fff;
}

.footer-link {
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.copyright {
    margin: 28px 0 0;
    text-align: center;
}

.internal-band {
    padding: 26px 0 48px;
    background: rgba(255, 255, 255, 0.72);
}

.page-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    color: #666;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.internal-page {
    min-width: 0;
    padding: 28px;
    background: rgba(255, 255, 255, 0.82);
}

.internal-page > h1 {
    margin: 0 0 26px;
    color: var(--ao-blue-dark);
    font-family: "Oswald", Arial, sans-serif;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.imported-content {
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.imported-content h2,
.imported-content h3,
.imported-content h4 {
    margin: 22px 0 14px;
    font-family: "Oswald", Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
}

.imported-content .row {
    margin: 0;
}

.imported-content .ba-section {
    padding: 0;
}

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

.imported-content .article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 20px;
    margin: 0 0 32px;
}

.imported-content .article-gallery figure {
    min-width: 0;
    margin: 0;
}

.imported-content .article-gallery a {
    display: block;
}

.imported-content .article-gallery img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: contain;
    background: #fff;
}

.imported-content .article-gallery figcaption {
    margin-top: 8px;
    color: #555;
    font-size: 0.95rem;
}

.imported-content .ba-item-image {
    margin: 0 0 20px;
    text-align: center;
}

.imported-content .ba-item-image img {
    max-height: 580px;
    object-fit: contain;
}

.imported-content iframe,
.imported-content video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin-block: 20px;
    border: 0;
}

.imported-content table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}

.imported-content td,
.imported-content th {
    padding: 8px;
    vertical-align: top;
}

.imported-content li {
    margin-bottom: 8px;
}

.archive-search {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.archive-pagination,
.article-pagination {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
}

.article-pagination {
    align-items: flex-start;
    padding-top: 20px;
    border-top: 1px solid var(--ao-border);
}

.article-pagination a {
    flex: 1;
    overflow-wrap: anywhere;
}

.article-pagination a:last-child {
    text-align: right;
}

.archive-link {
    display: inline-block;
    margin-block: 20px 6px;
    font-family: "Oswald", Arial, sans-serif;
    font-size: 1.15rem;
}

.topic-index {
    columns: 2;
    padding-left: 20px;
}

.topic-index li {
    padding: 8px;
    break-inside: avoid;
}

.topics-panel a[aria-current="page"] {
    color: var(--ao-blue-dark);
    font-weight: 700;
}

.contact-notice {
    padding: 16px 0;
    border-block: 1px solid var(--ao-border);
    line-height: 1.6;
}

.contact-form {
    margin-top: 26px;
}

.contact-form .form-label,
.contact-form .form-check-label {
    color: var(--ao-blue-dark);
}

.contact-submit {
    min-height: 48px;
    padding: 10px 32px;
    color: #fff;
    background: var(--ao-blue-dark);
}

.contact-submit:hover,
.contact-submit:focus {
    color: #fff;
    background: var(--ao-blue);
}

.contact-form .alert p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .internal-page {
        padding: 20px 14px;
    }

    .internal-page > h1 {
        font-size: 1.7rem;
    }

    .topic-index {
        columns: 1;
    }

    .article-pagination {
        flex-direction: column;
    }

    .article-pagination a:last-child {
        text-align: left;
    }
}

@media (max-width: 991.98px) {
    .posts-wall {
        column-count: 1;
    }

    .topics-panel {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .header-main {
        min-height: auto;
        flex-direction: column;
        align-items: center;
        padding-block: 18px;
    }

    .logo-link img {
        width: min(415px, 88vw);
    }

    .visit-btn {
        width: min(100%, 330px);
    }

    .main-nav {
        background: rgba(255, 255, 255, 0.92);
    }

    .navbar-nav {
        padding: 8px 0 12px;
    }

    .main-nav .nav-link {
        padding: 9px 0;
        text-align: center;
    }

    .carousel-item {
        height: 560px;
    }

    .carousel-item::after {
        background: rgba(0, 0, 0, 0.58);
    }

    .carousel-caption {
        right: 48px;
        bottom: 42px;
        left: 22px;
        width: calc(100% - 70px);
        max-width: calc(100% - 70px);
        white-space: normal;
    }

    .carousel-caption h1 {
        font-size: 1.72rem;
        line-height: 1.12;
    }

    .carousel-caption p {
        width: 100%;
        max-width: 300px;
        font-size: 0.96rem;
        overflow-wrap: anywhere;
        white-space: normal !important;
    }

    .intro-strip .container {
        grid-template-columns: 1fr;
    }

    .deep-links {
        justify-content: flex-start;
    }

    .deep-links span {
        text-align: left;
    }

}
