/*
Theme Name: Studio Sangiorgio
Theme URI: https://example.com
Author: Giorgia
Author URI: https://example.com
Description: Tema personalizzato per Studio Sangiorgio
Version: 1.0
Text Domain: studio-sangiorgio
*/

@font-face {
    font-family: "Futura";
    src: url("assets/Fonts/Futura%20family/Futura-Medium-01.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Futura";
    src: url("assets/Fonts/Futura%20family/Futura-Medium-01.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Futura";
    src: url("assets/Fonts/Futura%20family/Futura-Bold-03.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Futura";
    src: url("assets/Fonts/Futura%20family/Futura-Bold-03.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Futura";
    src: url("assets/Fonts/Futura%20family/Futura-MediumItalic-02.woff2") format("woff2");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

body {
    margin: 0;
    font-family: "Futura", "Futura PT", "Helvetica Neue", sans-serif;
    font-weight: 200;
    scroll-behavior: smooth;
}

body:not(.page-home) {
    padding-top: 108px;
}

/* ================================================
   HEADER — base comune
================================================ */
.site-header {
    width: 100%;
    padding: 18px 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
}

.header-left {
    display: flex;
    align-items: flex-start;
    padding-top: 4px;
}

.header-left .site-title {
    text-decoration: none;
    letter-spacing: 1px;
    font-size: 10pt;
    font-weight: 300;
    white-space: nowrap;
}

.header-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-logo {
    height: 64px;
    width: auto;
    display: block;
}

.header-logo--front {
    height: 42px;
    max-width: 180px;
}

.home-logo {
    width: 306px;
    height: 185px;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 32px;
}

/* Menu verticale */
.menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    width: 100%;
    gap: 20px;
}

.menu-item {
    text-decoration: none;
    letter-spacing: 1px;
    font-size: 10pt;
    font-weight: 300;
    text-transform: uppercase;
    color: inherit;
    display: inline-block;
}

/* Text slide wrapper - fixed height con overflow hidden */
.text-wrapper {
    display: block;
    overflow: hidden;
    height: 1.3em;
    line-height: 1.3;
}

/* Inner sliding container (we populate .text-inner via JS) */
.text-inner {
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    /* start paused — plays while hovered */
    animation: scrollLoop 0.8s linear infinite paused;
}

/* Testo duplicato - entrambi identici */
.text {
    display: block;
    font-weight: 300;
}

/* On hover, play the looped vertical marquee inside the element only */
.menu-item:hover .text-inner {
    animation: none;
}

/* Loop keyframes: smooth up motion then reset to create continuous feel */
@keyframes scrollLoop {
    0% { transform: translateY(0); }
    49.99% { transform: translateY(-50%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* Stato attivo - grassetto STATICO, indipendente da hover */
.menu-item.active .text,
.menu-item.active .text + .text {
    font-weight: 600;
}

.menu-item:hover .text,
.menu-item:hover .text + .text {
    font-weight: 600;
}

/* Riserva invisibile del testo in grassetto: gli hover non spostano il layout. */
.sg-hover-stable {
    display: inline-grid !important;
    grid-template-areas: "sg-hover-text";
    align-items: baseline;
    justify-items: inherit;
    max-width: 100%;
    vertical-align: baseline;
}

.sg-hover-stable__text {
    grid-area: sg-hover-text;
    min-width: 0;
}

.sg-hover-stable::after {
    content: attr(data-sg-bold-text);
    grid-area: sg-hover-text;
    min-width: 0;
    display: block;
    visibility: hidden;
    pointer-events: none;
    user-select: none;
    font-weight: var(--sg-hover-reserve-weight, 700);
    letter-spacing: inherit;
    text-transform: inherit;
    white-space: inherit;
}

.site-header a.nav-link .link-text.sg-hover-stable,
.header-menu ul li a.sg-hover-stable,
.nav-menu a .link-text.sg-hover-stable,
.arch-menu a.sg-hover-stable {
    --sg-hover-reserve-weight: 800;
    justify-items: center;
    text-align: center;
}

.site-header a.util-link.sg-hover-stable,
.mobile-menu-footer .mobile-contatto.sg-hover-stable,
.contatti-tab.sg-hover-stable {
    justify-items: start;
    text-align: left;
}

.site-header a.util-link.sg-hover-stable {
    min-width: max-content;
}

.site-header a.lang-link.sg-hover-stable,
.lang-switch .lang.sg-hover-stable,
.mobile-menu-footer .mobile-lang-link.sg-hover-stable {
    justify-items: center;
    text-align: center;
}

.footer-item__text.sg-hover-stable,
.text-wrapper.sg-hover-stable {
    display: grid !important;
}

.contatti-title.sg-hover-stable {
    display: block !important;
}

.contatti-title.sg-hover-stable::after {
    content: none;
}


.site-header .lang-switch .lang,
.site-header--home .lang-switch .lang,
.site-header--arch .lang-switch .lang,
.site-header--amm .lang-switch .lang,
.site-header--studio .lang-switch .lang {
    cursor: pointer;
}

.lang-switch .lang {
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lang-switch .lang:hover,
.lang-switch .lang--active {
    opacity: 1;
    font-weight: 600;
}

.header-menu ul li a:hover,
.header-menu ul li.current-menu-item > a,
.header-menu ul li.current_page_item > a,
.header-menu ul li.current-menu-parent > a,
.header-menu ul li.current_page_parent > a,
.header-menu ul li.current-menu-ancestor > a,
.header-menu ul li.current-page-ancestor > a {
    font-weight: 600;
}

/* Language switch */
.lang-switch {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 1px;
}

.lang-switch .lang {
    text-decoration: none;
    font-size: 10pt;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.7;
}

/* ------------------------------------------------
   Variante ARCH — sfondo bianco, testo nero, logo rosso
------------------------------------------------ */
.site-header--arch {
    background: #ffffff;
    color: #000000;
}
.site-header--arch .site-title,
.site-header--arch .header-menu ul li a,
.site-header--arch .lang-switch .lang {
    color: #000000;
}
.site-header--arch .lang-switch .lang--active {
    font-weight: 600;
}
.site-header--arch .lang-switch .lang:not(.lang--active) {
    opacity: 0.4;
}

/* ------------------------------------------------
   Variante AMM — sfondo bianco, testo nero, logo verde
------------------------------------------------ */
.site-header--amm {
    background: #ffffff;
    color: #000000;
}
.site-header--amm .site-title,
.site-header--amm .header-menu ul li a,
.site-header--amm .lang-switch .lang {
    color: #000000;
}
.site-header--amm .lang-switch .lang--active {
    font-weight: 600;
}
.site-header--amm .lang-switch .lang:not(.lang--active) {
    opacity: 0.4;
}

/* ------------------------------------------------
   Variante STUDIO — sfondo beige, testo grigio, logo bianco/beige
------------------------------------------------ */
.site-header--studio {
    background: #E7DFDB;
    color: #000000;
}
.site-header--studio .site-title,
.site-header--studio .header-menu ul li a,
.site-header--studio .lang-switch .lang {
    color: #000000;
}
.site-header--studio .lang-switch .lang--active {
    font-weight: 600;
    color: #000000;
}
.site-header--studio .lang-switch .lang:not(.lang--active) {
    opacity: 0.5;
}

/* Header homepage: position fixed, trasparente (gestito in front-page.php) */
.site-header--home {
    position: fixed;
    background: transparent;
    color: #ffffff;
}
.site-header--home .site-title,
.site-header--home .header-menu ul li a,
.site-header--home .lang-switch .lang {
    color: #ffffff;
}
.site-header--home .lang-switch .lang:not(.lang--active) {
    opacity: 0.5;
}

/* ================================================
   HOMEPAGE — 3 livelli
================================================ */

/* Reset body per homepage */
body.page-home {
    margin: 0;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* LIVELLO 0 — Background hero */
.home-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: url('assets/img/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay scuro solo nella fascia superiore 149px */
.home-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 149px;
    z-index: 1;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.45) 0%,
        rgba(0,0,0,0) 100%);
    pointer-events: none;
}

/* LIVELLO 1 — Header + bottom links */
.site-header--home {
    position: fixed;
    z-index: 10;
}

.home-bottom-links {
    position: fixed;
    bottom: 40px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 100px;
    padding: 0 40px;
}

.home-link {
    font-size: 20px;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 2px;
    font-weight: 200;
    text-transform: uppercase;
    font-family: "Helvetica Neue", sans-serif;
    transition: opacity 0.2s ease;
}

.home-link:hover {
    opacity: 0.8;
}

/* LIVELLO 2 — Logo centrale (tre immagini impilate) */
.home-logo-wrap {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 420px;
    max-width: 85vw;
}

.home-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    display: block;
}

/* Il primo figlio serve come placeholder per l'altezza */
.home-logo-wrap .home-logo:first-child {
    position: relative;
}

.home-logo.is-visible {
    opacity: 1;
}

/* ARCHITETTURA — layout editoriale ispirato BIG */
.arch-page {
    width: min(1400px, 96vw);
    margin: 0 auto;
    padding: 10px 0 80px;
}

.arch-page-head {
    display: block;
    margin-bottom: 34px;
}

.arch-page-title {
    margin: 0;
    font-family: "Helvetica Neue", sans-serif;
    font-weight: 200;
    font-size: 20px;
    letter-spacing: -0.02em;
    line-height: 2;
    text-transform: uppercase;
}

.arch-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid #d9d9d9;
    border-bottom: 1px solid #d9d9d9;
    padding: 14px 0;
    margin-bottom: 30px;
}

.arch-menu a {
    text-decoration: none;
    color: #111;
    font-family: "Helvetica Neue", sans-serif;
    font-weight: 200;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.68;
}

.arch-menu a.active {
    opacity: 1;
    font-weight: 400;
}

.progetti-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    transition: opacity 0.32s ease, transform 0.32s ease;
}

.progetti-list.is-transitioning {
    opacity: 0;
    transform: translateY(14px);
}

.progetto-item {
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 18px;
}

.progetto-media-shell {
    width: min(680px, 100%);
    margin: 0 auto;
    position: relative;
}

.progetto-open {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.progetto-thumb {
    width: 100%;
    background: #f4f4f4;
    overflow: hidden;
    position: relative;
    cursor: none;
}

.progetto-thumb-label {
    position: absolute;
    font-family: "Helvetica Neue", sans-serif;
    font-weight: 200;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    pointer-events: none;
    z-index: 1;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

.progetto-thumb-label--tr {
    top: 20px;
    right: 20px;
}

.progetto-item--berra .progetto-thumb-label--tr {
    top: 60px;
    left: 213px;
    right: auto;
}

.progetto-thumb-label--bl {
    bottom: 20px;
    left: 20px;
}

.progetto-thumb-label--br {
    bottom: 20px;
    right: 20px;
}

.progetto-item.is-open .progetto-open {
    opacity: 0;
    pointer-events: none;
}

.progetto-thumb-img {
    width: 100%;
    height: min(64vh, 720px);
    min-height: 360px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.progetto-open:hover .progetto-thumb-img,
.progetto-open:focus-visible .progetto-thumb-img {
    transform: scale(1.02);
}

.progetto-open:disabled {
    cursor: default;
}

.progetto-item.has-no-sequence .progetto-open {
    cursor: default;
}

.progetti-feed {
    position: relative;
}

.progetti-load-more {
    margin: 24px auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Helvetica Neue", sans-serif;
    font-weight: 200;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #111;
    border: 1px solid #111;
    background: transparent;
    width: 220px;
    height: 44px;
    cursor: pointer;
}

.progetti-load-more.is-hidden {
    display: none;
}

.progetti-sentinel {
    width: 100%;
    height: 2px;
}

.arch-empty {
    margin: 0;
    font-family: "Helvetica Neue", sans-serif;
    font-weight: 200;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 900px) {
    .progetto-thumb-label {
        font-size: 11px;
        letter-spacing: 0.12em;
    }

    .progetto-thumb-label--tr {
        top: 14px;
        right: 14px;
    }

    .progetto-thumb-label--bl {
        bottom: 14px;
        left: 14px;
    }

    .progetto-thumb-label--br {
        bottom: 14px;
        right: 14px;
    }

    .progetto-thumb-img {
        height: 52vh;
        min-height: 260px;
    }
}

/* ================================================
   CARONA — hero card + striscia orizzontale
================================================ */
.sg-project-cursor-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 84px;
    height: 84px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.14s ease;
}

.sg-project-cursor-overlay.is-visible {
    opacity: 1;
}

.progetto-carousel {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1400px, 96vw);
    height: 100%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.34s ease;
    pointer-events: none;
    background: #fff;
    touch-action: pan-y;
    z-index: 3;
}

.progetto-item.is-open .progetto-carousel {
    opacity: 1;
    pointer-events: auto;
}

.progetto-carousel-viewport {
    width: 100%;
    height: calc(100% - 22px);
    overflow: hidden;
}

.progetto-carousel-track {
    display: flex;
    height: 100%;
    align-items: stretch;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 96px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.progetto-carousel-track::-webkit-scrollbar {
    height: 5px;
}

.progetto-carousel-track::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.22);
    border-radius: 3px;
}

.progetto-carousel-item {
    flex: 0 0 auto;
    height: 100%;
    overflow: hidden;
}

.progetto-carousel-item--img {
    width: min(40vw, 560px);
}

.progetto-carousel-item--img.progetto-carousel-item--wide {
    width: min(54vw, 720px);
}

.progetto-carousel-item--img.progetto-carousel-item--narrow {
    width: min(26vw, 350px);
}

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

.progetto-carousel-item--text {
    width: min(34vw, 420px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
    color: #111;
    background: #fff;
}

.progetto-carousel-item--text p {
    margin: 0 0 1.1em;
    font-family: "Helvetica Neue", sans-serif;
    font-weight: 200;
    font-size: clamp(16px, 1.6vw, 22px);
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: inherit;
}

.progetto-carousel-item--text p:last-child {
    margin-bottom: 0;
}

.progetto-carousel-item--data {
    width: min(28vw, 320px);
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.progetto-carousel-data {
    width: 100%;
}

.progetto-carousel-data__title,
.progetto-carousel-data__meta {
    margin: 0;
    font-family: "Helvetica Neue", sans-serif;
    font-weight: 200;
    color: #111;
    text-transform: uppercase;
}

.progetto-carousel-data__title {
    font-size: clamp(20px, 2vw, 30px);
    letter-spacing: -0.02em;
    line-height: 1.02;
}

.progetto-carousel-data__meta {
    margin-top: 12px;
    font-size: 13px;
    letter-spacing: 0.12em;
    line-height: 1.2;
}

.progetto-carousel-close {
    position: absolute;
    top: 18px;
    left: 18px;
    border: 0;
    background: none;
    padding: 0;
    font-family: "Helvetica Neue", sans-serif;
    font-weight: 200;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #111;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2;
}

.progetto-carousel-close:hover { color: rgba(17, 17, 17, 0.62); }

.progetto-carousel-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.progetto-carousel-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    background: #111;
    transform: translateX(0);
    transform-origin: left center;
    will-change: transform, width;
}

@media (max-width: 900px) {
    body:not(.page-home) {
        padding-top: 88px;
    }

    .sg-project-cursor-overlay {
        display: none;
    }

    .progetto-carousel {
        width: 96vw;
    }

    .progetto-carousel-close {
        top: 14px;
        left: 14px;
    }

    .progetto-carousel-track {
        gap: 10px;
        padding-right: 72px;
    }

    .progetto-carousel-item--img {
        width: 76vw;
    }

    .progetto-carousel-item--img.progetto-carousel-item--wide {
        width: 88vw;
    }

    .progetto-carousel-item--img.progetto-carousel-item--narrow {
        width: 56vw;
    }

    .progetto-carousel-item--text {
        width: 78vw;
        padding: 0 12px;
    }

    .progetto-carousel-item--data {
        width: 72vw;
        padding: 0 12px;
    }
}

/* ================================================
   FOOTER — uguale per tutte le pagine interne
================================================ */
.site-footer {
    background: #E7DFDB;
    color: #000;
    font-family: "Helvetica Neue", sans-serif;
    font-weight: 300;
    font-size: 11pt;
    letter-spacing: 0.5px;
    box-sizing: border-box;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 60px 60px 50px 60px;
}

.header-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.header-menu-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.site-header.is-menu-open .header-menu-toggle span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.site-header.is-menu-open .header-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.is-menu-open .header-menu-toggle span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.header-nav-panel {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 32px;
}

img,
svg,
video,
iframe,
embed,
object {
    max-width: 100%;
}

video,
iframe,
embed,
object {
    height: auto;
}

input,
textarea,
select,
button {
    font: inherit;
}

@media (max-width: 900px) {
    body {
        font-size: 16px;
    }

    .site-header {
        --mobile-logo-scale: 1;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        padding: 12px 16px;
    }

    .header-left,
    .header-center,
    .header-right {
        min-width: 0;
    }

    .header-left {
        align-items: flex-start;
        padding-top: 0;
    }

    .header-center {
        align-items: flex-start;
        justify-content: center;
    }

    .header-left .site-title,
    .header-menu ul li a,
    .lang-switch .lang {
        font-size: 16px;
        line-height: 1.45;
        letter-spacing: 0.06em;
    }

    .header-left .site-title {
        white-space: normal;
        max-width: 11ch;
    }

    .header-logo {
        height: clamp(26px, 7vw, 42px);
        transform: scale(var(--mobile-logo-scale));
        transform-origin: center top;
        transition: transform 0.12s linear;
    }

    .header-center .header-logo-link {
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .header-right {
        gap: 0;
        justify-content: flex-end;
        align-items: flex-start;
    }

    .header-menu-toggle {
        display: inline-flex;
        color: inherit;
    }

    .header-nav-panel {
        position: absolute;
        top: calc(100% + 8px);
        left: 16px;
        right: 16px;
        display: block;
        padding: 18px 16px 16px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        background: #E7DFDB;
        color: #111;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
        z-index: 40;
    }

    .header-nav-panel .header-menu ul li a,
    .header-nav-panel .lang-switch .lang {
        color: #111;
    }

    .site-header.is-menu-open .header-nav-panel {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .header-menu ul {
        align-items: stretch;
        gap: 10px;
    }

    .header-menu ul li a {
        padding: 6px 0;
    }

    .lang-switch {
        flex-direction: row;
        gap: 14px;
        padding-top: 16px;
    }

    .home-bottom-links {
        left: 16px;
        right: 16px;
        bottom: 22px;
        gap: 14px;
    }

    .home-link {
        font-size: 20px;
        line-height: 1.05;
    }

    .arch-page,
    .studio-page,
    .contatti-page,
    .amm-page {
        width: min(100%, 100vw);
        overflow-x: clip;
    }

    .arch-menu {
        gap: 12px;
        padding: 12px 0;
    }

    .arch-menu a {
        font-size: 15px;
        line-height: 1.4;
    }

    .progetto-media-shell,
    .progetto-info,
    .progetto-open {
        width: min(100%, 680px);
    }

    .progetto-open,
    .progetti-load-more,
    .cta-btn,
    .contatti-btn {
        min-height: 46px;
    }

    .progetto-carousel {
        width: calc(100vw - 24px);
    }

    .progetto-carousel-track {
        touch-action: pan-x;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
    }

    .progetto-carousel-track::-webkit-scrollbar {
        display: none;
    }

    .progetto-carousel-item {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .progetto-carousel-item--text p,
    .hero-description,
    .amm-ppp-card-text,
    .studio-text,
    .studio-center-text p,
    .contatti-company,
    .contatti-address,
    .contatti-hours {
        font-size: 18px;
        line-height: 1.6;
    }

    .contatti-form label,
    .contatti-form input,
    .contatti-form textarea,
    .footer-col,
    .footer-col a,
    .footer-col p {
        font-size: 16px;
        line-height: 1.5;
    }

    /* nasconde i <br> manuali su mobile: il testo va a capo naturalmente */
    .progetto-carousel-item--text br,
    .hero-description br,
    .amm-ppp-card-text br,
    .studio-text br,
    .studio-center-text br,
    .contatti-company br,
    .contatti-address br,
    .contatti-hours br,
    .sidebar-desc br,
    .col-text-body br,
    .meta-desc br {
        display: none;
    }

    .contatti-main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .contatti-titles {
        padding-left: 16px;
        padding-right: 16px;
    }

    .contatti-email-left,
    .contatti-phone-right {
        position: static;
        padding: 0 16px 18px;
        text-align: left;
    }

    .amm-counters {
        flex-direction: column;
        align-items: stretch;
    }

    .amm-ppp-grid,
    .footer-main {
        grid-template-columns: 1fr;
        display: grid;
    }

    .footer-main {
        gap: 24px;
        padding: 36px 16px 28px;
    }

    .footer-col {
        width: 100%;
    }

    .footer-col nav,
    .footer-col--social {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-bottom {
        padding: 14px 16px 22px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .site-header {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    .header-left .site-title {
        font-size: 14px;
        letter-spacing: 0.05em;
        max-width: 9ch;
    }

    .header-nav-panel {
        left: 12px;
        right: 12px;
    }

    .header-logo {
        height: clamp(22px, 8vw, 34px);
    }

    .home-bottom-links {
        gap: 10px;
        bottom: 16px;
    }

    .home-link {
        font-size: clamp(24px, 8.5vw, 34px);
    }

    .arch-page {
        padding-top: 20px;
        padding-bottom: 56px;
    }

    .arch-page-head {
        margin-bottom: 22px;
    }

    .arch-menu a {
        font-size: 14px;
    }

    .progetto-thumb-img {
        min-height: 220px;
    }

    .progetto-thumb-label {
        max-width: calc(100% - 28px);
    }

    .progetto-carousel-item--img,
    .progetto-carousel-item--img.progetto-carousel-item--wide,
    .progetto-carousel-item--img.progetto-carousel-item--narrow,
    .progetto-carousel-item--text,
    .progetto-carousel-item--data {
        width: calc(100vw - 72px);
    }

    .progetto-carousel-close {
        font-size: 11px;
    }

    .contatti-btn,
    .cta-btn,
    .progetti-load-more {
        width: 100%;
        max-width: none;
    }
}

.footer-col {
    flex: 0 0 auto;
    width: 28%;
}

.footer-col-title {
    font-weight: 100;
    letter-spacing: 1px;
    margin-bottom: 24px;
    color: #767676;
}

.footer-col p {
    margin: 0 0 16px 0;
    line-height: 1.7;
    color: #000;
    font-weight: 300;
}

.footer-item {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    align-items: start;
    column-gap: 10px;
}

.footer-item__icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.22em;
    color: #000;
}

.footer-item__icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

.footer-item__text {
    display: block;
    min-width: 0;
}

.footer-item--address {
    margin-bottom: 8px;
}

.footer-col a,
.footer-col--nav a,
.footer-col--social a {
    display: block;
    text-decoration: none;
    color: #000;
    line-height: 2;
    letter-spacing: 0.5px;
    font-weight: 300;
}

.footer-col a.footer-item,
.footer-col--nav a.footer-item,
.footer-col--social a.footer-item,
.footer-bottom .footer-item {
    display: grid;
    align-items: start;
}

.footer-col a:hover {
    color: #000;
    font-weight: 400;
}

.footer-col--nav nav {
    display: flex;
    flex-direction: column;
}

.footer-col--social {
    display: flex;
    flex-direction: column;
}

/* Barra copyright */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    border-top: 1px solid rgba(0,0,0,0.15);
    font-size: 9pt;
    letter-spacing: 0.5px;
}

.footer-copy,
.footer-privacy {
    color: #000;
    text-decoration: none;
    font-weight: 300;
}

.footer-bottom .footer-privacy {
    gap: 8px;
    align-items: start;
}

.footer-privacy:hover {
    color: #000;
    font-weight: 400;
}

/* ========================
/* ================================
   PAGINA STUDIO
================================ */
.page-template-page-studio {
    background: #e7dfdb !important;
    color: #314131;
}

.page-template-page-studio body,
.page-template-page-studio main,
.page-template-page-studio #page,
.page-template-page-studio #content,
.page-template-page-studio #primary,
.page-template-page-studio .site,
.page-template-page-studio .site-content,
.page-template-page-studio .wp-site-blocks {
    background: #e7dfdb !important;
}

.page-template-page-studio .site-header {
    color: #000000;
}

.page-template-page-studio .site-header .site-title,
.page-template-page-studio .site-header .header-menu ul li a,
.page-template-page-studio .site-header .lang-switch .lang {
    color: #000000;
}

/* ========================
   PAGINA CONTATTI
======================== */
.page-template-page-contatti .site-header--arch,
.page-template-page-contatti .site-header--amm {
    background: #E7DFDB;
}

.contatti-page {
    width: 100%;
    background: #E7DFDB;
    min-height: 100vh;
    padding: 60px 40px 80px;
    box-sizing: border-box;
    position: relative;
}

.contatti-titles {
    position: relative;
    width: 100%;
    height: 120px;
    margin: 0;
}

.contatti-title {
    position: absolute;
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 200;
    font-size: 35px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.15;
    opacity: 0.2;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.contatti-title.active {
    opacity: 1;
}

.contatti-title--arch {
    width: 422px;
    height: 115px;
    left: 40px;
    top: 0;
    color: #c00;
    text-align: left;
}

.contatti-title--amm {
    width: 384px;
    height: 115px;
    right: 40px;
    top: 0;
    color: #008F3A;
    text-align: right;
}

.contatti-main {
    width: 100%;
    max-width: 95vw;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 95px;
    background: #e7dfdb;
    padding: 40px;
    box-sizing: border-box;
}

.contatti-left {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 200;
    font-size: 16px;
    letter-spacing: 0.02em;
    line-height: 1.8;
    color: #666;
}

.contatti-left-visual {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(18px, 3vw, 42px);
    width: min(520px, 100%);
    margin: 0 0 34px;
    isolation: isolate;
}

.contatti-left-visual__image {
    display: block;
    width: auto;
    height: 38px;
    object-fit: contain;
}

.contatti-left-visual__image--arch {
    justify-self: end;
    height: 46px;
}

.contatti-left-visual__image--amm {
    justify-self: start;
}

.contatti-left-visual__logo {
    display: block;
    justify-self: center;
    margin-left: -120px !important;
    width: clamp(78px, 9vw, 128px);
    height: auto;
    object-fit: contain;
}

.contatti-left-content {
    width: 100%;
}

.contatti-company {
    font-size: 16px;
    font-weight: 200;
    margin-bottom: 4px;
    color: #111;
}

.contatti-company strong {
    font-weight: 700;
}

.contatti-address {
    font-size: 16px;
    margin-bottom: 60px;
    color: #666;
    line-height: 1.5;
    font-weight: 200;
}

.contatti-address a {
    color: inherit;
    text-decoration: none;
}

.contatti-hours {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    font-weight: 200;
    margin-top: 0;
}

.contatti-hours strong {
    font-weight: 700;
    color: #111;
}

.contatti-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.contatti-form > .form-group input {
    border-bottom: 1px solid #111 !important;
}

.contatti-form > .form-group textarea {
    border-bottom: 1px solid #111 !important;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-row .form-group input {
    border-bottom: 1px solid #111 !important;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group label {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 100;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #333;
}

.form-group input,
.form-group textarea {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 100;
    font-size: 13px;
    letter-spacing: 0.03em;
    border: none;
    border-bottom: 1px solid #111;
    background: transparent;
    padding: 8px 0 6px;
    color: #000;
    outline: none;
    border-radius: 0;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    border-bottom: 1px solid #111;
    padding: 8px 0 6px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #ccc;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: #000;
}

.contatti-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 100;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    min-width: 156px;
    min-height: 46px;
    padding: 12px 28px;
    background: #CAC1BF;
    border: 1px solid #CAC1BF;
    color: #5f5a58;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.contatti-btn::after {
    content: '→';
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0;
}

.contatti-btn:hover {
    background: #CAC1BF;
    border-color: #CAC1BF;
}

.contatti-success,
.contatti-form-error {
    margin: 0 0 10px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 100;
    font-size: 12px;
    line-height: 1.4;
}

.contatti-form-error {
    color: #7a2f2f;
}

.contatti-success {
    color: #314131;
}

.contatti-email-left {
    position: absolute;
    left: 40px;
    right: calc(50% + 30px);
    bottom: 20px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 200;
    font-size: 30px;
    letter-spacing: 0.02em;
    line-height: 1;
    text-align: left;
}

.contatti-email-left a {
    color: #666;
    text-decoration: none;
}

.contatti-email-left a:hover {
    color: #333;
}

.contatti-phone-right {
    position: absolute;
    left: calc(50% + 30px);
    right: 40px;
    bottom: 20px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 200;
    font-size: 30px;
    letter-spacing: 0.02em;
    line-height: 1;
    text-align: right;
}

.contatti-phone-right a {
    color: #666;
    text-decoration: none;
}

.contatti-phone-right a:hover {
    color: #333;
}
.contatti-mobile-contacts {
    display: none;
}
.contatti-mobile-email,
.contatti-mobile-phone {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 200;
    letter-spacing: 0.02em;
}
.contatti-mobile-email a,
.contatti-mobile-phone a {
    color: #666;
    text-decoration: none;
}
.contatti-mobile-email a:hover,
.contatti-mobile-phone a:hover {
    color: #333;
}

/* ========================
   PAGINA AMMINISTRAZIONE
======================== */
.amm-page { width: 100%; background: #fff; border: none !important; box-shadow: none !important; }
.amm-page, .amm-page * { outline: 0 !important; }
.amm-hero { width: 100%; padding: 38px 0 12px; box-sizing: border-box; }
.amm-hero-wrap { width: min(1180px, 95vw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 28px; }
.hero-left { display: flex; align-items: flex-start; justify-content: flex-start; }
.hero-title { margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 200; font-size: clamp(18px, 2vw, 20px); text-transform: uppercase; letter-spacing: 0.12em; color: #000; }
.hero-right { display: flex; flex-direction: column; justify-content: flex-start; gap: 10px; text-align: right; margin-top: 0; }
.hero-description { margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 200; font-size: clamp(14px, 1.8vw, 16px); text-transform: uppercase; letter-spacing: 0.06em; color: #000; max-width: 460px; line-height: 1.25; margin-left: auto; }
@media (max-width: 980px) { .amm-hero-wrap { grid-template-columns: 1fr; } .hero-right { text-align: left; margin-left: 0; } .hero-description { max-width: 100%; } }

.amm-counters { width: min(1180px, 95vw); margin: 28px auto 10px; display: flex; justify-content: center; gap: 40px; }
.counter-block { display: inline-flex; align-items: flex-end; gap: 10px; }
.counter-number { margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 200; font-size: clamp(94px, 14vw, 160px); line-height: 0.9; color: #008F3A; letter-spacing: -0.05em; }
.counter-label { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 200; font-size: 18px; text-transform: lowercase; letter-spacing: 0.08em; color: #000; margin-bottom: 2px; }
.counter-label .keep-case { text-transform: none; }

.amm-cta { width: min(1180px, 95vw); margin: 44px auto 42px; text-align: center; }
.cta-btn { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 200; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #008F3A; border: 1px solid #008F3A; background: #fff; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; width: 240px; height: 46px; line-height: 1; }
.cta-btn { transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.cta-btn:hover { background: #008F3A; color: #fff; border-color: #008F3A; }

.amm-approach { width: min(1180px, 95vw); margin: 80px auto 16px; padding: 0; }
.section-title { margin: 0 0 8px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 200; font-size: clamp(18px, 2vw, 20px); letter-spacing: 0.12em; text-transform: uppercase; color: #000; }
.approach-mobile-list { display: none; }
.approach-mobile-dropdown { display: none; }
.approach-items { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; align-items: center; }
.amm-approach .approach-item { position: relative; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 200; color: #008F3A; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(30px, 5.4vw, 52px); line-height: 1; transition: color 0.2s ease; padding: 0; cursor: pointer; background: transparent !important; border: none !important; box-shadow: none !important; border-radius: 0 !important; min-width: auto !important; margin: 0 !important; }
.amm-approach .approach-item .approach-index { font-size: 16px; font-weight: 200; letter-spacing: 0.15em; margin-right: 8px; color: #008F3A; transition: color 0.2s ease; }
.amm-approach .approach-item:hover { color: #000; }
.amm-approach .approach-item:hover .approach-index { color: #000; }
.amm-approach .approach-tooltip { display: none; position: absolute; top: 0; left: 100%; margin-left: 14px; width: 346px; border: 2px solid #008F3A; background: #fff; color: #111; padding: 10px 12px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 200; font-size: 15px; line-height: 1.35; text-transform: none; letter-spacing: 0; z-index: 20; border-radius: 0; box-shadow: none; }
.amm-approach .approach-item:hover .approach-tooltip { display: block; }
.amm-approach .approach-item.second .approach-tooltip,
.amm-approach .approach-item.third .approach-tooltip { left: 100%; margin-left: 14px; }
.amm-approach .approach-item:hover { color: #000; }
.amm-approach .approach-item.second, .amm-approach .approach-item.third { margin: 0; }
@media (max-width: 980px) { .amm-approach .approach-item { font-size: 34px; } .amm-approach .approach-tooltip { width: auto; max-width: 90vw; } }

.amm-ppp { width: min(1180px, 95vw); margin: 80px auto 0; }
.amm-ppp-head { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 1fr); gap: 28px; align-items: start; }
.amm-ppp-head-left { display: flex; justify-content: flex-start; }
.amm-ppp-title { margin-bottom: 0; text-align: left; }
.amm-ppp-head-right { display: flex; justify-content: flex-end; }
.amm-ppp-intro { margin: 0; max-width: 520px; margin-left: auto; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 200; font-size: clamp(14px, 1.8vw, 16px); line-height: 1.35; letter-spacing: 0.06em; text-transform: uppercase; text-align: right; color: #000; }
.amm-ppp-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.amm-ppp-card { min-height: 230px; padding: 24px 22px; border: 1px solid #008F3A; background: #fff; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.amm-ppp-card-title { margin: 0 0 18px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 300; font-size: 16px; line-height: 1.3; letter-spacing: 0.1em; text-transform: uppercase; color: #008F3A; transition: color 0.2s ease; }
.amm-ppp-card-text { margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 200; font-size: 15px; line-height: 1.5; color: #111; transition: color 0.2s ease; }
.amm-ppp-card:hover { background: #008F3A; border-color: #008F3A; }
.amm-ppp-card:hover .amm-ppp-card-title,
.amm-ppp-card:hover .amm-ppp-card-text { color: #fff; }

.amm-ambiti { width: min(1180px, 95vw); margin: 80px auto 0; padding-top: 10px; }
.ambito-row { margin-top: 12px; border: 1px solid #e6e6e6; background: #fff; }
.ambito-toggle { width: 100%; border: 0; background: #fff; display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; cursor: pointer; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 200; text-transform: uppercase; letter-spacing: 0.1em; font-size: 15px; color: #111; }
.ambito-index { color: #008F3A; letter-spacing: 0.12em; }
.ambito-title { font-size: 17px; letter-spacing: -0.03em; color: #111; text-align: left; flex: 1; margin-left: 12px; }
.ambito-arrow { font-size: 16px; color: #111; transition: transform 0.2s ease; margin-left: 12px; }
.ambito-toggle { transition: background-color 0.2s ease, color 0.2s ease; }
.ambito-toggle .ambito-index,
.ambito-toggle .ambito-title,
.ambito-toggle .ambito-arrow { transition: color 0.2s ease; }
.ambito-row:not(.open) .ambito-toggle:hover { background: #111; color: #fff; }
.ambito-row:not(.open) .ambito-toggle:hover .ambito-index,
.ambito-row:not(.open) .ambito-toggle:hover .ambito-title,
.ambito-row:not(.open) .ambito-toggle:hover .ambito-arrow { color: #fff; }
.ambito-content { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; background: #008F3A !important; color: #fff; padding: 0 18px; }
.ambito-content ul { margin: 10px 0 12px !important; padding: 0 0 0 1.1rem !important; list-style: disc !important; display: block !important; }
.ambito-content li { font-size: 0.95rem !important; line-height: 1.4 !important; margin: 0.25rem 0 !important; text-align: left !important; list-style: disc !important; }
.ambito-row.open { background: #008F3A; border-color: #008F3A; }
.ambito-row.open .ambito-toggle { color: #fff; background: #008F3A; }
.ambito-row.open .ambito-toggle .ambito-index { color: #fff; }
.ambito-row.open .ambito-title { color: #fff; }
.ambito-row.open .ambito-arrow { transform: rotate(90deg); color: #fff; }
.ambito-row.open .ambito-content { max-height: 600px; opacity: 1; padding: 14px 18px 16px; border-top: 1px solid rgba(255, 255, 255, 0.8); }
.amm-professional { width: min(1180px, 95vw); margin: 80px auto 0; }
.logos { margin-top: 12px; display: flex; gap: 45px; align-items: center; justify-content: flex-end; }
.logo-text { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 300; font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase; color: #111; }
.logo-image { display: block; width: auto; height: clamp(68px, 10vw, 100px); object-fit: contain; }
.logo-image--catef { height: clamp(68px, 10vw, 100px); }
.logo-image--svit { height: clamp(68px, 10vw, 100px); }

.amm-image { width: 100%; margin-top: 80px; position: relative; height: clamp(340px, 62vw, 596px); overflow: hidden; }
.amm-image img { width: 100%; height: 100%; display: block; object-fit: cover; filter: brightness(0.75); }
.amm-image-overlay { position: absolute; top: 26px; left: 24px; right: auto; width: min(640px, calc(100% - 48px)); background: transparent; color: #fff; padding: 0; border: 0; }
.amm-image-overlay p { margin: 0 0 24px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 200; font-size: clamp(22px, 4.2vw, 40px); line-height: 1.15; text-transform: none; color: #fff; width: auto; height: auto; }
.amm-image-overlay .cta-btn { width: 240px; height: 46px; padding: 0; border-color: #fff; color: #fff; background: transparent; }
.amm-image-overlay .cta-btn:hover { background: #fff; color: #008F3A; border-color: #fff; }

@media (max-width: 980px) {
    .amm-hero { padding: 30px 0 8px; }
    .amm-hero-wrap { grid-template-columns: 1fr; gap: 18px; }
    .hero-right { text-align: left; }
    .hero-description { margin-left: 0; max-width: 100%; }

    .amm-counters { justify-content: space-between; gap: 18px; }
    .counter-block { flex: 1 1 0; justify-content: center; }
    .counter-label { font-size: 16px; }

    .amm-approach { margin-top: 58px; }
    .approach-items { align-items: stretch; gap: 22px; }
    .amm-approach .approach-item { width: 100%; }

    .amm-ppp,
    .amm-ambiti,
    .amm-professional { margin-top: 58px; }
    .amm-ppp-head { grid-template-columns: 1fr; gap: 18px; }
    .amm-ppp-head-right { justify-content: flex-start; }
    .amm-ppp-intro { margin-left: 0; max-width: 100%; text-align: left; }
    .logos { justify-content: flex-start; gap: 24px; flex-wrap: wrap; }

    .amm-image-overlay { top: 20px; left: 16px; width: calc(100% - 32px); }
}

@media (max-width: 740px) {
    .amm-counters {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .counter-block {
        justify-content: flex-start;
        align-items: baseline;
    }
    .counter-number { line-height: 0.82; }

    .amm-page .cta-btn {
        width: min(320px, 100%);
        height: 44px;
    }

    .amm-ppp-grid {
        grid-template-columns: 1fr;
    }

    .amm-ppp-card {
        min-height: 0;
    }

    .ambito-toggle { padding: 12px 14px; }
    .ambito-title { font-size: 15px; margin-left: 10px; }
    .ambito-index,
    .ambito-arrow { font-size: 13px; }
    .ambito-row.open .ambito-content { max-height: 720px; }
}

@media (max-width: 560px) {
    .amm-hero { padding: 24px 0 6px; }
    .amm-cta,
    .amm-approach,
    .amm-ppp,
    .amm-ambiti,
    .amm-professional { width: min(1180px, 92vw); }
    .amm-ppp-grid { margin-top: 24px; gap: 14px; }
    .amm-ppp-card { padding: 20px 16px; }
    .amm-image { margin-top: 58px; }
    .amm-image-overlay p { margin-bottom: 16px; line-height: 1.2; }
}


.area.open .ambito-content {
    max-height: 220px;
    padding: 14px 16px 18px;
}

.ambito-content ul { margin: 0; padding-left: 1rem; }
.ambito-content li { margin: 0.2rem 0; font-size: 0.9rem; line-height: 1.35; }


.ambito.open .arrow {
    display: inline-block;
    transform: rotate(90deg);
}

.admin-prof {
    padding: 80px;
}

.prof-logos img {
    width: 120px;
    margin-right: 40px;
}

.admin-final {
    display: flex;
    padding: 80px;
    background: #E7DFDB;
    gap: 40px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.final-text {
    width: 50%;
    min-width: 280px;
}

.final-img {
    width: 50%;
    min-width: 280px;
    object-fit: cover;
}

/* ========================
/* ========================
   PAGINA CONTATTI
======================== */
.contatti-wrapper {
    background: #E7DFDB;
    padding: 80px;
    box-sizing: border-box;
}

.contatti-menu {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.contatti-tab {
    cursor: pointer;
    font-size: 18px;
    font-weight: 200;
}

.contatti-tab.active {
    font-weight: 700;
}

.contatti-logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo-contatti {
    width: 102px;
    height: 90px;
}

.contatti-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.contatti-form {
    width: 50%;
    min-width: 280px;
}

.contatti-form label {
    display: block;
    margin-top: 20px;
    font-weight: 600;
}

.contatti-form input,
.contatti-form textarea {
    width: 100%;
    padding: 10px;
    border: none;
    margin-top: 5px;
    font-family: "Helvetica Neue", sans-serif;
    font-size: 15px;
    box-sizing: border-box;
}

.contatti-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contatti-form button {
    margin-top: 20px;
    padding: 12px 24px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: "Helvetica Neue", sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
}

.contatti-form button:hover {
    background: #333;
}

.contatti-info {
    width: 40%;
    min-width: 240px;
    font-size: 16px;
    line-height: 1.6;
}

.success-msg {
    margin-top: 20px;
    color: green;
    font-weight: 600;
}

/* HERO AMMINISTRAZIONE */
.admin-hero {
    width: 100%;
    background: #fff;
    padding: 50px 20px 20px;
}

.admin-hero .admin-hero-content {
    max-width: 1180px;
    margin: 0 auto;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: start;
    gap: 24px;
}

.admin-hero-content.two-column { grid-template-columns: 1fr 2fr; }

.hero-left-title {
    margin: 0;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 300;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: 0.15em;
}

.hero-right-text {
    margin: 0;
    text-transform: uppercase;
    font-size: clamp(1.5rem, 4.8vw, 2.7rem);
    line-height: 1.08;
    font-weight: 300;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: -0.02em;
    color: #111;
}

.hero-right-text .highlight {
    font-weight: 400;
}

.admin-hero-content .subtitle {
    margin-top: 16px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    margin-bottom: 0;
    font-weight: 300;
    color: #444;
    max-width: 650px;
}

@media (max-width: 980px) {
    .admin-hero .admin-hero-content {
        grid-template-columns: 1fr;
    }
    .admin-hero-content .subtitle {
        margin-top: 10px;
    }
    .admin-stats { flex-wrap: wrap; justify-content: center; gap: 20px; }
}

.admin-stats {
    width: min(1180px, 95vw);
    margin: 24px auto 0;
    display: flex;
    justify-content: start;
    align-items: baseline;
    gap: clamp(32px, 6vw, 120px);
}

.admin-stats .stat {
    text-align: left;
}

.admin-stats .number {
    font-size: clamp(3rem, 12vw, 6rem);
    font-weight: 300;
    line-height: 0.95;
    color: #00a650;
    display: block;
    letter-spacing: -0.04em;
}

.admin-stats .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #444;
    margin-top: 8px;
}

.admin-cta {
    margin: 24px auto 60px;
    width: min(1180px, 95vw);
    text-align: left;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #111;
    color: #111;
    text-decoration: none;
    padding: 12px 24px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    transition: all .2s ease;
    background: #fff;
}

.cta-button:hover {
    border-color: #00a650;
    color: #00a650;
}

.admin-approach {
    margin: 0 auto;
    width: min(1180px, 95vw);
    padding: 40px 0 20px;
}

.admin-approach h2 {
    font-size: 1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin: 0 0 20px;
    color: #111;
    font-weight: 600;
}

.admin-areas {
    width: min(1180px, 95vw);
    margin: 40px auto 40px;
    padding: 20px 0;
}

.area {
    margin-bottom: 12px;
    border: 1px solid #e9e9e9;
    border-radius: 4px;
    overflow: hidden;
}

.ambito-header {
    width: 100%;
    text-align: left;
    border: 0;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 0.92rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: #111;
}

.ambito-header .index { margin-right: 8px; color: #00a650; }

.ambito-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease;
    background: #004d30;
    color: #f2f2f2;
    padding: 0 16px;
}

.area.open .ambito-content {
    max-height: 250px;
    opacity: 1;
    padding: 14px 16px 16px;
}

.ambito-content ul {
    margin: 0;
    padding-left: 1rem;
    list-style: disc;
    line-height: 1.4;
}

.ambito-content li { margin: 0.35rem 0; font-size: 0.95rem; }

.approach-grid {
    display: flex;
    gap: clamp(12px, 4vw, 70px);
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 18px;
}

.approach-item {
    position: relative;
    min-width: 200px;
    border: 1px solid #edf0f0;
    background: #fff;
    padding: 14px;
    border-radius: 3px;
    cursor: default;
    transition: transform .18s ease, box-shadow .18s ease;
}

.approach-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.08);
}

.amm-approach .approach-item .approach-tooltip {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 14px;
    width: 346px;
    pointer-events: none;
    border: 2px solid #008F3A;
    border-radius: 0;
    background: #fff;
    color: #111;
    padding: 10px 12px;
    font-size: 15px;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    transform: none;
    transition: opacity 0.2s ease;
    z-index: 20;
}

.amm-approach .approach-item:hover .approach-tooltip {
    opacity: 1;
}

.admin-approach h2 { margin-bottom: 4px; }

.admin-professional {
    width: min(1180px, 95vw);
    margin: 70px auto 0;
    padding: 40px 0 20px;
}

.admin-professional h2 {
    margin: 0 0 20px;
    font-size: 1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 600;
}

.admin-professional .logos {
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-professional .logos img {
    max-height: 60px;
    width: auto;
    opacity: 0.9;
}

.admin-image-cta {
    width: 100%;
    margin: 40px 0 0;
}

.admin-image-cta .hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 420px;
}

.admin-image-cta .hero-overlay {
    margin-top: -130px;
    position: relative;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-image-cta .hero-overlay p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.3;
    color: #111;
}

.admin-image-cta .hero-overlay .cta-button {
    background: #00a650;
    color: white;
    border-color: #00a650;
}

@media (max-width: 900px) {
    .admin-stats { flex-wrap: wrap; gap: 24px; }
    .approach-grid { gap: 20px; }
    .admin-image-cta .hero-overlay { margin-top: 0; flex-direction: column; text-align: center; }
}

/* ================================================
   GLOBAL RESPONSIVE HARDENING (all pages)
================================================ */
@media (max-width: 1120px) {
    .site-header {
        padding: 14px 22px;
        gap: 10px;
    }

    .header-right {
        gap: 18px;
    }

    .home-bottom-links {
        gap: 48px;
        bottom: 28px;
        padding: 0 20px;
    }

    .home-link {
        font-size: clamp(28px, 4.5vw, 42px);
        letter-spacing: 1.3px;
    }

    .home-logo-wrap {
        width: min(500px, 80vw);
    }
}

@media (max-width: 900px) {
    .site-header {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "left right"
            "center center";
        align-items: start;
        row-gap: 10px;
        padding: 12px 14px;
    }

    .header-left { grid-area: left; }
    .header-right {
        grid-area: right;
        gap: 12px;
    }
    .header-center {
        grid-area: center;
        justify-content: flex-start;
    }

    .header-logo {
        height: 52px;
    }

    .header-left .site-title,
    .header-menu ul li a,
    .lang-switch .lang {
        font-size: 9pt;
    }

    .header-menu ul li a {
        line-height: 1.45;
    }

    .lang-switch {
        gap: 0;
    }

    .arch-page {
        width: min(1400px, 94vw);
        padding: 20px 0 64px;
    }

    .arch-menu {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding: 12px 4px;
        gap: 14px;
    }

    .arch-menu a {
        font-size: 12px;
    }

    .progetto-thumb-img {
        height: clamp(250px, 56vh, 620px);
        min-height: 250px;
    }

    .carona-hero-btn {
        cursor: var(--project-cursor, zoom-in);
    }

    .footer-main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 26px 20px;
        padding: 44px 24px 30px;
    }

    .footer-col {
        width: 100%;
    }

    .footer-col--social {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        padding: 14px 24px 18px;
    }

    .contatti-page {
        padding: 40px 20px 44px;
    }

    .contatti-titles {
        height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .contatti-title,
    .contatti-title--arch,
    .contatti-title--amm {
        position: static;
        width: 100%;
        height: auto;
        font-size: clamp(28px, 4.6vw, 35px);
    }

    .contatti-title--amm {
        text-align: left;
    }

    .contatti-main {
        grid-template-columns: 1fr;
        gap: 26px;
        margin-top: 34px;
        padding: 22px 16px;
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .contatti-email-left,
    .contatti-phone-right {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 14px 0 0;
        font-size: clamp(20px, 4.2vw, 30px);
        line-height: 1.15;
        text-align: left;
    }
}

@media (max-width: 640px) {
    body.page-home {
        overflow: auto;
    }

    .site-header--home {
        position: absolute;
    }

    .home-bottom-links {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        bottom: 16px;
    }

    .home-link {
        font-size: clamp(24px, 9vw, 34px);
        line-height: 1.1;
    }

    .home-logo-wrap {
        width: min(420px, 86vw);
        top: 48%;
    }

    .progetto-meta {
        flex-wrap: wrap;
        white-space: normal;
        gap: 8px 14px;
        font-size: 11px;
    }

    .carona-section {
        padding-bottom: 64px;
    }

    .carona-hero-label {
        font-size: 11px;
    }

    .carona-hero-label--tr { top: 14px; right: 14px; }
    .carona-hero-label--bl { bottom: 14px; left: 14px; }
    .carona-hero-label--br { bottom: 14px; right: 14px; }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 32px 16px 22px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 16px 14px;
    }

    .contatti-page {
        padding: 30px 14px 30px;
    }

    .contatti-title,
    .contatti-title--arch,
    .contatti-title--amm {
        font-size: clamp(22px, 7vw, 30px);
        line-height: 1.2;
    }

    .contatti-left,
    .contatti-company,
    .contatti-address,
    .contatti-hours {
        font-size: 13px;
    }

    .contatti-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ================================================
   PIXEL-PERFECT FINISHING LAYER
================================================ */
.site-header {
    padding: 16px clamp(16px, 3vw, 40px);
    align-items: start;
}

.header-center .header-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-logo {
    height: clamp(52px, 5.2vw, 64px);
}

.header-menu ul {
    gap: 1px;
}

.header-menu ul li a,
.lang-switch .lang {
    letter-spacing: 0.08em;
}

.home-bottom-links {
    gap: clamp(30px, 6vw, 100px);
}

.home-link {
    font-size: 20px;
    line-height: 1.05;
}

.home-logo-wrap {
    width: min(420px, 72vw);
}

.arch-page {
    width: min(1400px, 95vw);
    padding-top: 24px;
}

.arch-page-title {
    font-size: clamp(18px, 1.8vw, 20px);
}

.arch-menu {
    gap: 18px;
    padding-top: 13px;
    padding-bottom: 13px;
}

.progetti-list {
    gap: clamp(22px, 2.2vw, 30px);
}

.progetto-item {
    padding-bottom: clamp(18px, 2vw, 24px);
}

.progetto-info .nome {
    line-height: 1;
}

.progetti-load-more {
    transition: background-color 0.2s ease, color 0.2s ease;
}

.progetti-load-more:hover {
    background: #111;
    color: #fff;
}

.carona-strip-close,
.carona-strip-item--text p {
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.carona-strip-track {
    gap: clamp(10px, 1.2vw, 14px);
}

.site-footer {
    font-size: clamp(10px, 0.85vw, 11pt);
}

.footer-main {
    width: min(1440px, 100%);
    margin: 0 auto;
}

.footer-col-title {
    margin-bottom: 20px;
}

.footer-col p,
.footer-col a,
.footer-col--nav a,
.footer-col--social a {
    line-height: 1.75;
}

.contatti-main {
    width: min(1400px, 100%);
}

.contatti-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
}

.contatti-email-left a,
.contatti-phone-right a {
    overflow-wrap: anywhere;
}

.amm-page .section-title {
    margin-bottom: 10px;
}

.amm-hero-wrap,
.amm-cta,
.amm-approach,
.amm-ppp,
.amm-ambiti,
.amm-professional {
    width: min(1180px, 94vw);
}

.ambito-toggle {
    min-height: 50px;
}

@media (max-width: 1200px) {
    .home-logo-wrap {
        width: min(500px, 78vw);
    }

    .progetto-meta {
        gap: 14px;
    }

    .contatti-main {
        padding: 30px;
        gap: 42px;
    }
}

/* ================================================
   FINAL RESPONSIVE OVERRIDES
================================================ */
@media (max-width: 900px) {
    body {
        font-size: 16px;
    }

    .site-header {
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
    }

    .header-left,
    .header-center,
    .header-right {
        min-width: 0;
    }

    .header-left {
        align-items: center;
        padding-top: 0;
    }

    .header-left .site-title,
    .header-menu ul li a,
    .lang-switch .lang {
        font-size: 16px;
        line-height: 1.45;
        letter-spacing: 0.06em;
    }

    .header-left .site-title {
        white-space: normal;
        max-width: 11ch;
    }

    .header-logo {
        height: 42px;
    }

    .header-right {
        gap: 0;
    }

    .header-menu-toggle {
        display: inline-flex;
        color: inherit;
    }

    .header-nav-panel {
        position: absolute;
        top: calc(100% + 8px);
        left: 16px;
        right: 16px;
        display: block;
        padding: 18px 16px 16px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        background: #E7DFDB;
        color: #111;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
        z-index: 40;
    }

    .site-header.is-menu-open .header-nav-panel {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .header-menu ul {
        align-items: stretch;
        gap: 10px;
    }

    .header-menu ul li a {
        padding: 6px 0;
    }

    .lang-switch {
        flex-direction: row;
        gap: 14px;
        padding-top: 16px;
    }

    .home-bottom-links {
        left: 16px;
        right: 16px;
        bottom: 22px;
        gap: 14px;
    }

    .home-link {
        font-size: clamp(28px, 8vw, 42px);
        line-height: 1.05;
    }

    .arch-page,
    .studio-page,
    .contatti-page,
    .amm-page {
        width: min(100%, 100vw);
        overflow-x: clip;
    }

    .arch-menu {
        gap: 12px;
        padding: 12px 0;
    }

    .arch-menu a {
        font-size: 15px;
        line-height: 1.4;
    }

    .progetto-media-shell,
    .progetto-info,
    .progetto-open {
        width: min(100%, 680px);
    }

    .progetto-open,
    .progetti-load-more,
    .cta-btn,
    .contatti-btn {
        min-height: 46px;
    }

    .progetto-carousel {
        width: calc(100vw - 24px);
    }

    .progetto-carousel-track {
        touch-action: pan-x;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
    }

    .progetto-carousel-track::-webkit-scrollbar {
        display: none;
    }

    .progetto-carousel-item {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .progetto-carousel-item--text p,
    .hero-description,
    .amm-ppp-card-text,
    .studio-text,
    .studio-center-text p,
    .contatti-company,
    .contatti-address,
    .contatti-hours {
        font-size: 18px;
        line-height: 1.6;
    }

    .contatti-form label,
    .contatti-form input,
    .contatti-form textarea,
    .footer-col,
    .footer-col a,
    .footer-col p {
        font-size: 16px;
        line-height: 1.5;
    }

    /* nasconde i <br> manuali su mobile: il testo va a capo naturalmente */
    .progetto-carousel-item--text br,
    .hero-description br,
    .amm-ppp-card-text br,
    .studio-text br,
    .studio-center-text br,
    .contatti-company br,
    .contatti-address br,
    .contatti-hours br,
    .sidebar-desc br,
    .col-text-body br,
    .meta-desc br {
        display: none;
    }

    .contatti-main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .contatti-titles {
        padding-left: 16px;
        padding-right: 16px;
    }

    .contatti-email-left,
    .contatti-phone-right {
        position: static;
        padding: 0 16px 18px;
        text-align: left;
    }

    .amm-counters {
        flex-direction: column;
        align-items: stretch;
    }

    .amm-ppp-grid,
    .footer-main {
        grid-template-columns: 1fr;
        display: grid;
    }

    .footer-main {
        gap: 24px;
        padding: 36px 16px 28px;
    }

    .footer-col {
        width: 100%;
    }

    .footer-col nav,
    .footer-col--social {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-bottom {
        padding: 14px 16px 22px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .site-header {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .header-left .site-title {
        font-size: 14px;
        letter-spacing: 0.05em;
    }

    .header-nav-panel {
        left: 12px;
        right: 12px;
    }

    .home-bottom-links {
        gap: 10px;
        bottom: 16px;
    }

    .home-link {
        font-size: clamp(24px, 8.5vw, 34px);
    }

    .arch-page {
        padding-top: 20px;
        padding-bottom: 56px;
    }

    .arch-page-head {
        margin-bottom: 22px;
    }

    .arch-menu a {
        font-size: 14px;
    }

    .progetto-thumb-img {
        min-height: 220px;
    }

    .progetto-thumb-label {
        max-width: calc(100% - 28px);
    }

    .progetto-carousel-item--img,
    .progetto-carousel-item--img.progetto-carousel-item--wide,
    .progetto-carousel-item--img.progetto-carousel-item--narrow,
    .progetto-carousel-item--text,
    .progetto-carousel-item--data {
        width: calc(100vw - 72px);
    }

    .progetto-carousel-close {
        font-size: 11px;
    }

    .contatti-btn,
    .cta-btn,
    .progetti-load-more {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 900px) {
    .site-header {
        padding: 12px 14px;
    }

    .header-logo {
        height: 50px;
    }

    .home-link {
        font-size: clamp(24px, 6.4vw, 34px);
    }

    .arch-page-head {
        margin-bottom: 22px;
    }

    .arch-menu {
        gap: 12px;
    }

    .footer-col-title {
        margin-bottom: 14px;
    }

    .amm-image-overlay p {
        max-width: 28ch;
    }
}

@media (max-width: 680px) {
    .home-bg-overlay {
        height: 120px;
    }

    .home-bottom-links {
        bottom: 14px;
    }

    .carona-hero-img {
        height: clamp(260px, 52vh, 520px);
    }

    .carona-strip-item--text p {
        font-size: clamp(14px, 4.2vw, 18px);
        line-height: 1.32;
    }

    .contatti-main {
        padding: 18px 14px;
    }

    .contatti-btn {
        width: 100%;
    }

    .amm-hero,
    .amm-hero-wrap,
    .amm-cta,
    .amm-approach,
    .amm-ppp,
    .amm-ambiti,
    .amm-professional {
        width: 92vw;
    }
}

@media (max-width: 480px) {
    .site-header {
        row-gap: 8px;
    }

    .header-left .site-title,
    .header-menu ul li a,
    .lang-switch .lang {
        font-size: 8.5pt;
    }

    .home-logo-wrap {
        top: 46%;
    }

    .home-link {
        letter-spacing: 0.04em;
    }

    .arch-menu a {
        font-size: 11px;
    }

    .progetto-info .nome {
        font-size: clamp(18px, 6.5vw, 24px);
    }

    .contatti-title,
    .contatti-title--arch,
    .contatti-title--amm {
        font-size: clamp(20px, 7vw, 28px);
    }

    .contatti-email-left,
    .contatti-phone-right {
        font-size: clamp(16px, 5.4vw, 24px);
    }

    .counter-number {
        font-size: clamp(76px, 22vw, 120px);
    }
}

/* Device profile: 1440 desktop */
@media (min-width: 1366px) and (max-width: 1512px) {
    .site-header {
        padding-left: 34px;
        padding-right: 34px;
    }

    .arch-page,
    .carona-section,
    .amm-hero-wrap,
    .amm-cta,
    .amm-approach,
    .amm-ppp,
    .amm-ambiti,
    .amm-professional,
    .contatti-main,
    .footer-main {
        width: min(1320px, 94vw);
    }

    .home-logo-wrap {
        width: min(560px, 42vw);
    }

    .home-bottom-links {
        bottom: 34px;
    }
}

/* Device profile: 1024 tablet landscape */
@media (min-width: 981px) and (max-width: 1120px) {
    .site-header {
        padding-left: 20px;
        padding-right: 20px;
    }

    .header-right {
        gap: 14px;
    }

    .home-logo-wrap {
        width: min(460px, 58vw);
    }

    .home-link {
        font-size: clamp(26px, 3.4vw, 34px);
    }

    .progetto-thumb-img {
        height: clamp(320px, 56vh, 620px);
    }

    .progetto-info .nome {
        font-size: clamp(24px, 2.8vw, 32px);
    }

    .contatti-main {
        gap: 28px;
        padding: 24px;
    }

    .contatti-email-left,
    .contatti-phone-right {
        font-size: clamp(22px, 2.2vw, 28px);
    }

    .footer-main {
        padding: 44px 28px 30px;
    }
}

/* Device profile: 768 tablet portrait */
@media (min-width: 681px) and (max-width: 840px) {
    .site-header {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "left right"
            "center center";
        row-gap: 8px;
    }

    .header-left { grid-area: left; }
    .header-right { grid-area: right; }
    .header-center {
        grid-area: center;
        justify-content: flex-start;
    }

    .home-logo-wrap {
        width: min(430px, 72vw);
        top: 47%;
    }

    .home-bottom-links {
        bottom: 20px;
        gap: 20px;
    }

    .home-link {
        font-size: 20px;
    }

    .arch-menu {
        gap: 12px;
        padding-left: 2px;
    }

    .carona-strip-item--text {
        width: 70vw;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .contatti-title,
    .contatti-title--arch,
    .contatti-title--amm {
        font-size: clamp(30px, 4vw, 38px);
    }

    .contatti-main {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .amm-counters {
        gap: 12px;
    }
}

/* Device profile: 430 mobile */
@media (max-width: 430px) {
    .site-header {
        padding: 10px 10px;
        row-gap: 6px;
    }

    .header-logo {
        height: 44px;
    }

    .header-menu ul li a,
    .lang-switch .lang,
    .header-left .site-title {
        font-size: 8pt;
    }

    .home-bg-overlay {
        height: 104px;
    }

    .home-logo-wrap {
        width: min(340px, 88vw);
        top: 45%;
    }

    .home-bottom-links {
        bottom: 12px;
        gap: 4px;
    }

    .home-link {
        font-size: clamp(20px, 8vw, 28px);
    }

    .arch-page {
        width: 92vw;
    }

    .arch-menu a {
        font-size: 10px;
        letter-spacing: 0.08em;
    }

    .progetti-load-more {
        width: 100%;
    }

    .carona-hero-label {
        font-size: 10px;
    }

    .carona-strip-close {
        font-size: 11px;
    }

    .contatti-page {
        padding: 22px 10px 24px;
    }

    .contatti-main {
        padding: 14px 10px;
    }

    .contatti-title,
    .contatti-title--arch,
    .contatti-title--amm {
        font-size: clamp(18px, 6.8vw, 24px);
    }

    .contatti-email-left,
    .contatti-phone-right {
        font-size: clamp(14px, 5vw, 20px);
    }

    .footer-main {
        padding: 26px 10px 18px;
    }

    .footer-bottom {
        padding: 10px 10px 12px;
    }

    .counter-number {
        font-size: clamp(72px, 20vw, 102px);
    }

    .ambito-toggle {
        padding: 10px;
    }
}

    /* Final mobile header lock */
    @media (max-width: 900px) {
        .site-header {
            --mobile-logo-scale: 1;
            display: grid !important;
            grid-template-columns: minmax(96px, 1fr) auto minmax(48px, 1fr) !important;
            grid-template-areas: "left center right" !important;
            align-items: start !important;
            column-gap: 10px;
            row-gap: 0 !important;
            padding: 10px 14px !important;
        }

        .header-left {
            grid-area: left !important;
            align-self: start;
            justify-self: start;
            align-items: flex-start !important;
            padding-top: 0 !important;
        }

        .header-center {
            grid-area: center !important;
            align-self: start;
            justify-self: center;
            display: flex !important;
            align-items: flex-start !important;
            justify-content: center !important;
            min-width: 0;
        }

        .header-right {
            grid-area: right !important;
            align-self: start;
            justify-self: end;
            display: flex !important;
            align-items: flex-start !important;
            justify-content: flex-end !important;
            gap: 0 !important;
            min-width: 48px;
        }

        .header-center .header-logo-link {
            display: flex;
            align-items: flex-start;
            justify-content: center;
            line-height: 0;
        }

        .header-left .site-title {
            max-width: 8.5ch !important;
            font-size: 14px !important;
            line-height: 1.15 !important;
        }

        .header-logo {
            height: clamp(20px, 6vw, 32px) !important;
            width: auto;
            transform: scale(var(--mobile-logo-scale));
            transform-origin: center top;
            transition: transform 0.12s linear;
        }

        .header-menu-toggle {
            width: 44px;
            height: 44px;
            align-self: start;
        }
    }

    @media (max-width: 600px) {
        .site-header {
            grid-template-columns: minmax(84px, 1fr) auto minmax(44px, 1fr) !important;
            padding: 10px 12px !important;
        }

        .header-left .site-title {
            max-width: 8ch !important;
            font-size: 13px !important;
        }

        .header-logo {
            height: clamp(18px, 6.2vw, 28px) !important;
        }
    }

    /* Amministrazione mobile alignment */
    @media (max-width: 900px) {
        .amm-page .section-title,
        .amm-page .hero-title,
        .amm-page .hero-description,
        .amm-page .amm-ppp-title,
        .amm-page .amm-ppp-intro,
        .amm-page .amm-ppp-card-title,
        .amm-page .amm-ppp-card-text,
        .amm-page .ambito-title,
        .amm-page .ambito-content,
        .amm-page .amm-image-overlay,
        .amm-page .amm-image-overlay p {
            text-align: center !important;
        }

        .amm-hero-wrap,
        .amm-ppp-head {
            justify-items: center;
        }

        .hero-left,
        .hero-right,
        .amm-ppp-head-left,
        .amm-ppp-head-right {
            justify-content: center !important;
            text-align: center !important;
            width: 100%;
        }

        .hero-right {
            align-items: center;
        }

        .hero-description,
        .amm-ppp-intro,
        .amm-image-overlay {
            margin-left: auto !important;
            margin-right: auto !important;
        }

        .amm-counters {
            align-items: center !important;
        }

        .counter-block {
            justify-content: center !important;
            text-align: center;
            width: 100%;
        }

        .amm-approach {
            text-align: center;
        }

        .approach-items {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .amm-approach .approach-item {
            text-align: center;
            justify-content: center;
        }

        .amm-approach .approach-tooltip,
        .amm-approach .approach-item.second .approach-tooltip,
        .amm-approach .approach-item.third .approach-tooltip {
            left: 50% !important;
            margin-left: 0 !important;
            transform: translateX(-50%);
            text-align: center;
        }

        .amm-ppp-grid {
            justify-items: center;
        }

        .amm-ppp-card {
            text-align: center;
        }

        .amm-professional,
        .logos {
            text-align: center;
            justify-content: center !important;
        }

        .amm-image-overlay {
            left: 50% !important;
            transform: translateX(-50%);
        }

        .amm-image-overlay .cta-btn,
        .amm-page .cta-btn {
            margin-left: auto;
            margin-right: auto;
        }
    }

    @media (max-width: 600px) {
        .amm-page .ambito-toggle {
            justify-content: center;
            text-align: center;
            flex-wrap: wrap;
            gap: 6px 10px;
        }

        .amm-page .ambito-title {
            flex: 0 1 100%;
            margin-left: 0;
            text-align: center !important;
        }

        .amm-page .ambito-content ul {
            padding-left: 0 !important;
            list-style: none !important;
            text-align: center;
        }

        .amm-page .ambito-content li {
            text-align: center !important;
            list-style: none !important;
        }
    }

    @media (max-width: 1024px) {
        .amm-page .approach-items {
            display: none;
        }

        .amm-page .approach-mobile-list {
            display: grid;
            gap: 10px;
            margin-top: 10px;
        }

        .amm-page .approach-mobile-dropdown {
            display: block;
            border: 1px solid #008F3A;
            background: #fff;
        }

        .amm-page .approach-mobile-dropdown[open] {
            background: #fff;
        }

        .amm-page .approach-mobile-summary {
            list-style: none;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 16px 18px;
            cursor: pointer;
            font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
            font-weight: 200;
            font-size: 17px;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: #000;
            background: #fff;
        }

        .amm-page .approach-mobile-summary::-webkit-details-marker {
            display: none;
        }

        .amm-page .approach-mobile-summary-title {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .amm-page .approach-mobile-summary-icon {
            position: relative;
            flex: 0 0 14px;
            width: 14px;
            height: 14px;
        }

        .amm-page .approach-mobile-summary-icon::before,
        .amm-page .approach-mobile-summary-icon::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            width: 14px;
            height: 1px;
            background: #008F3A;
            transform: translateY(-50%);
            transition: transform 0.2s ease, opacity 0.2s ease;
        }

        .amm-page .approach-mobile-summary-icon::after {
            transform: translateY(-50%) rotate(90deg);
        }

        .amm-page .approach-mobile-dropdown[open] .approach-mobile-summary-icon::after {
            opacity: 0;
        }

        .amm-page .approach-mobile-panel {
            border-top: 1px solid rgba(0, 143, 58, 0.18);
            padding: 14px 18px 18px;
        }

        .amm-page .approach-mobile-entry-text,
        .amm-page .approach-mobile-entry-text p {
            margin: 0;
            font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
            font-weight: 200;
            font-size: 15px;
            line-height: 1.45;
            text-transform: none;
            letter-spacing: 0;
            color: #111;
        }
    }

    @media (max-width: 600px) {
        .amm-page .approach-mobile-summary {
            justify-content: center;
            text-align: center;
            position: relative;
            padding-right: 42px;
        }

        .amm-page .approach-mobile-summary-icon {
            position: absolute;
            right: 18px;
            top: 50%;
            transform: translateY(-50%);
        }

        .amm-page .approach-mobile-summary-title,
        .amm-page .approach-mobile-entry-text,
        .amm-page .approach-mobile-entry-text p {
            text-align: center;
        }
    }

    /* Mobile header and footer type lock */
    @media (max-width: 900px) {
        .site-footer .footer-col,
        .site-footer .footer-col p,
        .site-footer .footer-col a,
        .site-footer .footer-col--nav a,
        .site-footer .footer-col--social a,
        .site-footer .footer-copy,
        .site-footer .footer-privacy {
            font-size: 10px !important;
            line-height: 1.4 !important;
        }

        .site-footer .footer-col-title {
            font-size: 10px !important;
            line-height: 1.3 !important;
            letter-spacing: 0.12em !important;
        }

        .site-header .header-left .site-title,
        .site-header--home .header-left .site-title {
            font-size: 12px !important;
            line-height: 1.15 !important;
            letter-spacing: 0.08em !important;
        }
    }

    @media (max-width: 600px) {
        .site-header .header-left .site-title,
        .site-header--home .header-left .site-title {
            font-size: 11px !important;
            line-height: 1.15 !important;
            max-width: 7.5ch !important;
        }
    }

    /* Contatti mobile layout lock */
    @media (max-width: 900px) {
        .contatti-page {
            min-height: auto !important;
            padding: 34px 18px 40px !important;
        }

        .contatti-titles {
            height: auto !important;
            display: grid !important;
            grid-template-columns: 1fr !important;
            gap: 12px !important;
            margin: 0 auto !important;
        }

        .contatti-title,
        .contatti-title--arch,
        .contatti-title--amm {
            position: static !important;
            left: auto !important;
            right: auto !important;
            top: auto !important;
            width: 100% !important;
            height: auto !important;
            font-size: clamp(24px, 6.8vw, 35px) !important;
            line-height: 1.12 !important;
            letter-spacing: -0.03em !important;
            text-align: center !important;
        }

        .contatti-title {
            opacity: 0.35;
        }

        .contatti-title.active {
            opacity: 1;
        }

        .contatti-main {
            grid-template-columns: 1fr !important;
            gap: 24px !important;
            margin-top: 28px !important;
            padding: 20px 16px !important;
            max-width: 100% !important;
            justify-items: center;
        }

        .contatti-left,
        .contatti-right {
            width: 100%;
        }

        .contatti-right {
            text-align: left !important;
        }

        .contatti-left {
            font-size: 13px !important;
            line-height: 1.65 !important;
            text-align: center !important;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .contatti-left-visual {
            grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
            column-gap: clamp(12px, 5vw, 24px);
            width: 100%;
            margin-bottom: 22px;
        }

        .contatti-left-visual__image {
            height: clamp(24px, 7vw, 34px);
            max-width: 34%;
        }

        .contatti-left-visual__image--arch {
            height: clamp(30px, 8vw, 40px);
        }

        .contatti-left-visual__logo {
            width: clamp(62px, 18vw, 96px);
            max-width: 24%;
            margin-left: -72px !important;
        }

        .contatti-company,
        .contatti-address,
        .contatti-hours {
            font-size: 13px !important;
            text-align: center !important;
        }

        .contatti-mobile-contacts {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            margin-top: 14px;
        }

        .contatti-mobile-email,
        .contatti-mobile-phone {
            font-size: clamp(15px, 4.5vw, 20px) !important;
            line-height: 1.2 !important;
            text-align: center !important;
        }

        .contatti-form {
            gap: 14px !important;
            align-items: stretch;
        }

        .form-row {
            grid-template-columns: 1fr !important;
            gap: 10px !important;
        }

        .form-group {
            width: 100%;
            align-items: stretch;
            text-align: left;
        }

        .form-group label {
            font-size: 10px !important;
            text-align: left;
        }

        .form-group input,
        .form-group textarea {
            font-size: 12px !important;
            text-align: left;
            width: 100%;
            padding-top: 8px;
            padding-bottom: 6px;
        }

        .form-group textarea {
            min-height: 110px;
            resize: none;
        }

        .contatti-btn {
            width: auto !important;
            min-width: 148px;
            align-self: flex-start !important;
            justify-content: flex-start;
            text-align: left;
            margin-top: 2px !important;
        }

        .contatti-email-left,
        .contatti-phone-right {
            display: none !important;
        }
    }

    @media (max-width: 600px) {
        .contatti-page {
            padding: 28px 12px 32px !important;
        }

        .contatti-title,
        .contatti-title--arch,
        .contatti-title--amm {
            font-size: clamp(20px, 7vw, 28px) !important;
            line-height: 1.14 !important;
        }

        .contatti-main {
            margin-top: 22px !important;
            padding: 16px 12px !important;
            gap: 20px !important;
        }

        .contatti-left,
        .contatti-company,
        .contatti-address,
        .contatti-hours {
            font-size: 12px !important;
        }

        .contatti-email-left,
        .contatti-phone-right {
            font-size: clamp(13px, 4.8vw, 17px) !important;
        }
    }

    /* Global mobile text centering except Architettura */
    @media (max-width: 900px) {
        body.page-home .home-bottom-links,
        body.page-home .home-link,
        body.page-template-page-amministrazione .amm-page,
        body.page-template-page-amministrazione .amm-page p,
        body.page-template-page-amministrazione .amm-page h1,
        body.page-template-page-amministrazione .amm-page h2,
        body.page-template-page-amministrazione .amm-page h3,
        body.page-template-page-amministrazione .amm-page li,
        body.page-template-page-contatti .contatti-page,
        body.page-template-page-contatti .contatti-page p,
        body.page-template-page-contatti .contatti-page h1,
        body.page-template-page-contatti .contatti-page h2,
        body.page-template-page-contatti .contatti-page h3,
        body.page-template-page-contatti .contatti-page li,
        body.page-template-page-studio .studio-page,
        body.page-template-page-studio .studio-page p,
        body.page-template-page-studio .studio-page h1,
        body.page-template-page-studio .studio-page h2,
        body.page-template-page-studio .studio-page h3,
        body.page-template-page-studio .studio-page li {
            text-align: center !important;
        }

        body.page-template-page-studio .studio-intro,
        body.page-template-page-studio .studio-center-text,
        body.page-template-page-studio .studio-team {
            justify-items: center;
        }

        body.page-template-page-studio .studio-text,
        body.page-template-page-studio .studio-center-text p,
        body.page-template-page-studio .studio-team h2,
        body.page-template-page-studio .team-label {
            margin-left: auto !important;
            margin-right: auto !important;
            text-align: center !important;
        }

        body.page-template-page-contatti .contatti-right,
        body.page-template-page-contatti .contatti-form,
        body.page-template-page-contatti .form-group,
        body.page-template-page-contatti .form-group label,
        body.page-template-page-contatti .form-group input,
        body.page-template-page-contatti .form-group textarea,
        body.page-template-page-contatti .contatti-btn {
            text-align: left !important;
        }
    }

    /* Amministrazione hero mobile left alignment */
    @media (max-width: 900px) {
        .amm-page .amm-hero-wrap {
            justify-items: start !important;
            align-items: start !important;
            padding-left: 12px !important;
            padding-right: 12px !important;
            box-sizing: border-box;
        }

        .amm-page .hero-left,
        .amm-page .hero-right,
        .amm-page .hero-title,
        .amm-page .hero-description,
        .amm-page .hero-description p {
            text-align: left !important;
            justify-content: flex-start !important;
            align-items: flex-start !important;
        }

        .amm-page .hero-left,
        .amm-page .hero-right {
            justify-self: start !important;
            width: 100% !important;
        }

        .amm-page .hero-description {
            margin-left: 0 !important;
            margin-right: auto !important;
            max-width: 100% !important;
        }
    }

    /* Footer title color lock */
    .site-footer .footer-col-title {
        color: #767676 !important;
    }

    /* Contatti form final style lock */
    .contatti-page .contatti-form {
        gap: 16px !important;
        width: 100% !important;
    }

    .contatti-page .contatti-form .form-row {
        gap: 18px !important;
    }

    .contatti-page .contatti-form .form-group label {
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
        font-weight: 100 !important;
        margin-bottom: 6px !important;
    }

    .contatti-page .contatti-form .form-group input,
    .contatti-page .contatti-form .form-group textarea {
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
        font-weight: 100 !important;
        border: none !important;
        border-bottom: 1px solid #111 !important;
        padding: 8px 0 6px !important;
        background: transparent !important;
    }

    .contatti-page .contatti-form .form-group textarea {
        min-height: 120px !important;
    }

    .contatti-page .contatti-form .contatti-btn,
    .contatti-page .contatti-form button.contatti-btn,
    .contatti-page .contatti-form button[type="submit"] {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 14px !important;
        min-width: 156px !important;
        min-height: 46px !important;
        margin-top: 4px !important;
        padding: 12px 28px !important;
        background: #000 !important;
        border: 1px solid #000 !important;
        color: #CAC1BF !important;
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
        font-weight: 100 !important;
        font-size: 11px !important;
        letter-spacing: 0.15em !important;
        text-transform: uppercase !important;
        box-shadow: none !important;
    }

    .contatti-page .contatti-form .contatti-btn:hover,
    .contatti-page .contatti-form button.contatti-btn:hover,
    .contatti-page .contatti-form button[type="submit"]:hover {
        background: #CAC1BF !important;
        border-color: #CAC1BF !important;
        color: #000 !important;
    }

    @media (max-width: 900px) {
        .contatti-page .contatti-form {
            gap: 14px !important;
        }

        .contatti-page .contatti-form .form-row {
            grid-template-columns: 1fr !important;
            gap: 10px !important;
        }

        .contatti-page .contatti-form .contatti-btn,
        .contatti-page .contatti-form button.contatti-btn,
        .contatti-page .contatti-form button[type="submit"] {
            width: auto !important;
            min-width: 148px !important;
            align-self: flex-start !important;
            margin-top: 2px !important;
        }
    }

