:root {
    --ink: #14202c;
    --navy: #102235;
    --navy-soft: #17324c;
    --teal: #0f766e;
    --green: #4f8f3b;
    --amber: #d99a2b;
    --paper: #f6f7f3;
    --mist: #e5ecec;
    --line: #d6dedf;
    --muted: #5d6875;
    --white: #ffffff;
    --shadow: 0 16px 38px rgba(16, 34, 53, 0.12);
    --radius: 8px;
    --header-height: 76px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
}

img,
svg {
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.skip-link,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    width: auto;
    height: auto;
    clip: auto;
    z-index: 3000;
    top: 12px;
    left: 12px;
    margin: 0;
    padding: 0.75rem 1rem;
    color: var(--white);
    background: var(--teal);
    border-radius: var(--radius);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-height);
    background: rgba(16, 34, 53, 0.96);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(16, 34, 53, 0.18);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    font-weight: 700;
    flex: 0 0 auto;
}

.brand-logo {
    display: block;
    width: clamp(150px, 17vw, 220px);
    max-height: 48px;
    object-fit: contain;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--navy);
    background: linear-gradient(135deg, var(--amber), #f2c766);
    border-radius: 7px;
}

.brand-name {
    white-space: nowrap;
}

.site-nav {
    margin-left: auto;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-nav a {
    display: inline-block;
    padding: 0.6rem 0.2rem;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.lang-switcher {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.2rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius);
}

.lang-switcher button {
    min-width: 36px;
    min-height: 32px;
    border: 0;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.82);
    background: transparent;
    cursor: pointer;
}

.lang-switcher button.active,
.lang-switcher button[aria-pressed="true"] {
    color: var(--navy);
    background: var(--white);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--white);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.78rem 1.1rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
}

.btn-small {
    min-height: 38px;
    padding: 0.62rem 0.85rem;
    font-size: 0.92rem;
}

.btn-accent {
    color: var(--white);
    background: var(--teal);
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
}

.btn-accent:hover,
.btn-accent:focus-visible {
    background: #0b625c;
}

.btn-light {
    color: var(--navy);
    background: var(--white);
}

.btn-muted {
    color: var(--ink);
    background: var(--mist);
}

.btn-outline-dark {
    color: var(--navy);
    background: var(--white);
    border-color: var(--line);
}

.hero {
    position: relative;
    min-height: 74vh;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background: var(--navy);
}

.hero-media {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(16, 34, 53, 0.97) 0%, rgba(16, 34, 53, 0.82) 48%, rgba(16, 34, 53, 0.3) 100%),
        linear-gradient(0deg, rgba(16, 34, 53, 0.44), rgba(16, 34, 53, 0.08)),
        url("../assets/sfondo-home-page.png");
    background-position: center, center, left center;
    background-repeat: no-repeat;
    background-size: cover, cover, 132% auto;
    transform: scale(1.01);
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 5.2rem 0;
}

.hero-content {
    max-width: 760px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 0.8rem;
    color: var(--amber);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(2.4rem, 5vw, 4.9rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 680px;
    margin: 1.4rem 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    width: min(680px, 100%);
    margin: 2.5rem 0 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.12);
}

.hero-proof div {
    padding: 1rem;
    background: rgba(16, 34, 53, 0.42);
}

.hero-proof dt {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--white);
}

.hero-proof dd {
    margin: 0.2rem 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.92rem;
}

.section {
    padding: 5.5rem 0;
}

.section-compact {
    padding: 2.2rem 0;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 2.4rem;
    text-align: center;
}

h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: 0;
}

h3 {
    margin: 0;
    color: var(--navy);
    line-height: 1.24;
}

p {
    margin: 0;
}

.lead,
.section-heading p {
    color: var(--muted);
    font-size: 1.08rem;
}

.stats-band {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--line);
}

.stat {
    min-height: 112px;
    display: grid;
    align-content: center;
    gap: 0.2rem;
    padding: 1.1rem;
    text-align: center;
    background: var(--white);
}

.stat-number {
    color: var(--teal);
    font-size: 2rem;
    font-weight: 800;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.split-layout-reverse {
    grid-template-columns: minmax(320px, 1.1fr) minmax(0, 0.9fr);
}

.sectors-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(220px, 0.7fr) minmax(280px, 0.95fr);
    gap: clamp(1.4rem, 3vw, 3rem);
    align-items: center;
}

.about-section,
.projects-section,
.contact-section {
    background: var(--paper);
}

.services-section,
.global-section,
.news-section {
    background: var(--white);
}

.method-list {
    display: grid;
    gap: 1rem;
}

.method-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 8px 24px rgba(16, 34, 53, 0.06);
}

.method-index,
.card-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--white);
    background: var(--navy-soft);
    border-radius: 7px;
    font-weight: 800;
    font-size: 0.9rem;
}

.method-item p,
.service-card p,
.project-card p,
.news-card p {
    margin-top: 0.55rem;
    color: var(--muted);
}

.services-grid,
.project-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.service-card,
.project-card,
.news-card {
    min-height: 100%;
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 10px 30px rgba(16, 34, 53, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover,
.project-card:hover,
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.service-card h3 {
    margin-top: 1rem;
}

.sectors-section {
    background: linear-gradient(135deg, var(--navy) 0%, #163a45 100%);
    color: var(--white);
}

.sectors-section h2,
.sectors-section .lead {
    color: var(--white);
}

.sector-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sector-list span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.75rem 1rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    font-weight: 700;
}

.sector-visual {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.sector-visual img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
}

.map-panel {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(16, 34, 53, 0.82), rgba(26, 69, 80, 0.74)),
        url("../assets/sfondo-home-page-alt.png") left center / cover no-repeat;
    box-shadow: var(--shadow);
}

.map-line {
    position: absolute;
    inset: 22% 10% 28%;
    border-top: 2px solid rgba(255, 255, 255, 0.18);
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    transform: skewY(-9deg);
}

.map-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 10px rgba(217, 154, 43, 0.16);
}

.dot-europe { left: 45%; top: 32%; }
.dot-balkans { left: 51%; top: 40%; }
.dot-turkey { left: 58%; top: 45%; }
.dot-egypt { left: 55%; top: 61%; }
.dot-brazil { left: 24%; top: 68%; }
.dot-korea { left: 78%; top: 45%; }

.check-list {
    display: grid;
    gap: 0.7rem;
    padding: 0;
    margin: 1.4rem 0 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 1.55rem;
    color: var(--muted);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.48rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--teal);
}

.project-card,
.news-card {
    background: var(--paper);
}

.project-tag,
.news-card time {
    display: inline-flex;
    margin-bottom: 0.8rem;
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.final-cta {
    color: var(--white);
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
}

.final-cta h2,
.final-cta p {
    color: var(--white);
}

.final-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.final-cta-inner > div {
    max-width: 720px;
}

.contact-panel {
    display: grid;
    gap: 0.85rem;
    font-style: normal;
}

.contact-visual {
    max-width: 420px;
    margin: 1.5rem 0 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 10px 30px rgba(16, 34, 53, 0.08);
}

.contact-visual img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: contain;
}

.contact-item {
    display: grid;
    gap: 0.2rem;
    padding: 1.1rem;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.contact-item span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
}

.contact-item strong {
    overflow-wrap: anywhere;
}

.contact-item[href]:hover,
.contact-item[href]:focus-visible {
    border-color: var(--teal);
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.12);
}

.site-footer {
    color: rgba(255, 255, 255, 0.82);
    background: var(--navy);
}

.footer-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-inner a {
    color: var(--white);
    text-decoration: none;
}

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

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner,
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.cookie-banner {
    display: grid;
    place-items: center;
    padding: 0.9rem;
    overflow: auto;
    color: var(--white);
    background: rgba(0, 0, 0, 0.58);
}

.cookie-banner.hidden,
.cookie-modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.cookie-banner-content {
    width: min(1360px, calc(100% - 16px));
    max-height: min(760px, calc(100vh - 24px));
    margin: 0 auto;
    overflow: auto;
    padding: clamp(1.25rem, 3vw, 2.2rem);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    background: #050505;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.cookie-banner-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.2rem);
}

.cookie-banner-logo {
    width: min(260px, 62vw);
    max-height: 78px;
    object-fit: contain;
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    background: var(--white);
    filter: brightness(1.08);
}

.cookie-banner-close,
.cookie-modal-close {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius);
    color: transparent;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.cookie-banner-close::before,
.cookie-banner-close::after,
.cookie-modal-close::before,
.cookie-modal-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 3px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 999px;
}

.cookie-banner-close::before,
.cookie-modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.cookie-banner-close::after,
.cookie-modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.cookie-banner-text {
    max-width: none;
}

.cookie-banner-text h2 {
    margin: 0 0 1rem;
    color: var(--white);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.1;
}

.cookie-banner-text p {
    max-width: 1280px;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(1rem, 2vw, 1.35rem);
    line-height: 1.42;
}

.cookie-banner-text p + p {
    margin-top: 0.25rem;
}

.cookie-choice-grid {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.85rem, 3vw, 2.4rem);
    align-items: center;
    margin: clamp(1.6rem, 4vw, 2.7rem) 0;
}

.cookie-choice {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    color: var(--white);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 700;
    cursor: pointer;
}

.cookie-choice-locked {
    cursor: default;
}

.cookie-banner-actions,
.cookie-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}

.cookie-banner-actions {
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-banner-main-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-end;
}

.btn-cookie-more {
    min-width: min(240px, 100%);
    color: var(--white);
    background: #1d1d1d;
    border-radius: 999px;
}

.btn-cookie-primary {
    min-width: min(220px, 100%);
    color: var(--white);
    background: #0f7bd3;
    border-radius: 999px;
    box-shadow: none;
}

.btn-cookie-primary:hover,
.btn-cookie-primary:focus-visible {
    background: #0c68b3;
}

.cookie-modal {
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(16, 34, 53, 0.72);
}

.cookie-modal-dialog {
    width: min(640px, 100%);
    max-height: min(760px, calc(100vh - 32px));
    overflow: auto;
    padding: 1.35rem;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-modal-header h3 {
    font-size: 1.35rem;
}

.cookie-modal-close {
    border: 1px solid var(--line);
    background: var(--white);
}

.cookie-modal-close::before,
.cookie-modal-close::after {
    background: var(--navy);
    height: 2px;
}

.cookie-modal-body {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.cookie-option h4 {
    margin: 0 0 0.35rem;
}

.cookie-option p {
    color: var(--muted);
    font-size: 0.95rem;
}

.cookie-tag {
    display: inline-flex;
    white-space: nowrap;
    padding: 0.4rem 0.7rem;
    color: #25591e;
    background: #e5f3df;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
}

.switch {
    position: relative;
    flex: 0 0 auto;
    width: 54px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #b8c3c7;
    cursor: pointer;
    transition: background 0.2s ease;
}

.switch input:disabled + .slider {
    cursor: default;
    background: #0b6f59;
}

.slider::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 4px;
    top: 4px;
    border-radius: 50%;
    background: var(--white);
    transition: transform 0.2s ease;
}

.switch input:checked + .slider {
    background: var(--teal);
}

.switch input:checked + .slider::before {
    transform: translateX(24px);
}

body.cookie-banner-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 1080px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .site-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        padding-bottom: 0.8rem;
    }

    .site-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .header-actions {
        margin-left: auto;
    }
}

@media (max-width: 820px) {
    :root {
        --header-height: 68px;
    }

    .container {
        width: min(100% - 28px, 1160px);
    }

    .header-inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 0.75rem;
        padding: 0.55rem 0;
        min-height: auto;
    }

    .brand-name {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-toggle {
        display: inline-block;
        grid-column: 3;
        grid-row: 1;
        margin-left: 0;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        padding: 0.8rem 1rem 1rem;
        background: var(--navy);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .nav-open .site-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-nav ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.25rem;
    }

    .site-nav a {
        width: 100%;
        padding: 0.8rem;
        background: rgba(255, 255, 255, 0.08);
        border-radius: var(--radius);
    }

    .header-actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        margin-left: 0;
    }

    .header-actions .btn-small {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero-media {
        background-image:
            linear-gradient(90deg, rgba(16, 34, 53, 0.97), rgba(16, 34, 53, 0.7)),
            url("../assets/sfondo-home-page.png");
        background-position: center, 28% center;
        background-repeat: no-repeat;
        background-size: cover, auto 116%;
    }

    .hero-inner {
        padding: 4.5rem 0;
    }

    .hero-proof,
    .stats-grid,
    .services-grid,
    .project-grid,
    .news-grid,
    .sectors-layout,
    .split-layout,
    .split-layout-reverse {
        grid-template-columns: 1fr;
    }

    .final-cta-inner,
    .cookie-banner-content {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-banner-actions,
    .cookie-modal-actions {
        justify-content: stretch;
    }

    .cookie-banner-main-actions {
        width: 100%;
    }

    .cookie-banner-actions .btn,
    .cookie-modal-actions .btn {
        width: 100%;
    }

    .cookie-banner {
        align-items: start;
        padding: 0.5rem;
    }

    .cookie-banner-content {
        max-height: calc(100vh - 16px);
        padding: 1rem;
    }

    .cookie-banner-header {
        margin-bottom: 1rem;
    }

    .cookie-choice-grid {
        gap: 0.8rem;
    }

    .cookie-choice {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 540px) {
    html {
        scroll-padding-top: 118px;
    }

    .brand-logo {
        width: 132px;
        max-height: 42px;
    }

    .brand-name {
        display: none;
    }

    .lang-switcher button {
        min-width: 32px;
        font-size: 0.85rem;
    }

    .hero-actions,
    .hero-actions .btn,
    .final-cta .btn {
        width: 100%;
    }

    .hero-proof div,
    .stat,
    .service-card,
    .project-card,
    .news-card,
    .method-item,
    .contact-item {
        padding: 1rem;
    }

    .section {
        padding: 4rem 0;
    }

    .cookie-option {
        align-items: flex-start;
        flex-direction: column;
    }
}
