* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

:root {
    --bg: #f3f0ea;
    --bg-soft: #e8e2d8;
    --paper: #fbfaf7;
    --ink: #252523;
    --muted: #69665f;
    --line: #d4cec3;
    --accent: #1385b6;
    --accent-dark: #0d6288;
    --white: #ffffff;
    --max: 1480px;
    --radius: 2px;
}

html { scroll-behavior: smooth; }

body, html {
    width: 100%;
    min-height: 100%;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    background: var(--paper);
    color: var(--ink);
}

body { overflow-x: hidden; }
body.menu-open { overflow: hidden; }

.hidden { opacity: 0; }
.visible { opacity: 1; }
.chiudi { clear: both; height: 0; }
.sizing { box-sizing: border-box; }

img { display: block; max-width: 100%; }

a {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease, background-color .25s ease, border-color .25s ease, opacity .25s ease, transform .25s ease;
}

.content {
    width: min(calc(100% - 48px), var(--max));
    margin: 0 auto;
    position: relative;
}

.flexdiv { display: flex; }
.flexdivcenter { align-items: center; }
.flexdivacapo { flex-flow: row wrap; justify-content: space-between; }
.flexdivacapoleft { flex-flow: row wrap; }

.section-space { padding: 120px 0; }
.eyebrow {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .93rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 22px;
}
.eyebrow--light { color: rgba(255,255,255,.76); }

.section-heading {
    margin-bottom: 58px;
}
.section-heading--split {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 80px;
    align-items: end;
}
.section-heading h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(3.2rem, 5vw, 5.8rem);
    font-weight: 500;
    line-height: .92;
    letter-spacing: -.025em;
    text-transform: uppercase;
}
.section-heading p {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.75;
    max-width: 560px;
}
.section-heading--light h2 { color: var(--white); }
.section-heading--light p { color: rgba(255,255,255,.64); }
.section-heading__action .text-link { margin-top: 22px; }

.btn {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    padding: 0 28px;
    border: 1px solid transparent;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.btn span { font-size: 1.2rem; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--accent); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.text-link span { font-size: 1.2rem; color: var(--accent); }
.text-link:hover { color: var(--accent); }

/* Header */
.top {
    position: fixed;
    inset: 0 0 auto 0;
    height: 84px;
    z-index: 1000;
    background: rgba(251,250,247,.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(37,37,35,.08);
}
.top__inner {
    width: min(calc(100% - 48px), 1580px);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 34px;
}
.logo { flex: 0 0 auto; width: 190px; }
.logo a { display: block; }
.logo img { width: 100%; height: auto; }

.menutop { margin-left: auto; }
.menutop ul { display: flex; align-items: center; gap: 30px; }
.menutop a {
    position: relative;
    display: inline-block;
    padding: 31px 0 29px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #4e4b46;
}
.menutop a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 20px;
    height: 1px;
    background: var(--accent);
    transition: right .25s ease;
}
.menutop a:hover,
.menutop a.active { color: var(--accent); }
.menutop a:hover::after,
.menutop a.active::after { right: 0; }

.top__cta {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    background: var(--ink);
    color: var(--white);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.top__cta:hover { background: var(--accent); }
.menu-toggle { display: none; }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    z-index: 3000;
    top: 0;
    right: 0;
    width: min(440px, 90vw);
    height: 100vh;
    padding: 28px;
    background: var(--ink);
    color: var(--white);
    transform: translateX(105%);
    transition: transform .35s ease;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-backdrop {
    position: fixed;
    z-index: 2990;
    inset: 0;
    background: rgba(0,0,0,.5);
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
}
.mobile-menu-backdrop.is-open { opacity: 1; visibility: visible; }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 50px; }
.mobile-menu__logo { width: 175px; background: var(--white); padding: 8px 10px; }
.mobile-menu__close { border: 0; background: none; color: var(--white); font-size: 2.4rem; line-height: 1; cursor: pointer; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav > a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.7rem;
    text-transform: uppercase;
}
.mobile-menu__nav > a.active { color: #5bc4ef; }
.mobile-menu__nav .mobile-menu__cta {
    margin-top: 28px;
    border: 0;
    background: var(--accent);
    padding: 17px 18px;
    font-family: 'Manrope', sans-serif;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-align: center;
}

/* Hero */
.home-hero {
    margin-top: 84px;
    height: calc(100vh - 84px);
    min-height: 650px;
    position: relative;
}
.hero-slide {
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
}
.hero-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(18,18,17,.78) 0%, rgba(18,18,17,.54) 44%, rgba(18,18,17,.1) 78%);
}
.hero-slide__content {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-slide__copy { max-width: 850px; padding-top: 30px; }
.hero-slide h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(5rem, 9vw, 9.4rem);
    font-weight: 500;
    line-height: .82;
    letter-spacing: -.035em;
    text-transform: uppercase;
    color: var(--white);
}
.hero-slide p {
    max-width: 690px;
    margin-top: 34px;
    color: rgba(255,255,255,.82);
    font-size: 1.05rem;
    line-height: 1.75;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 38px; }
.hero-slide__index {
    position: absolute;
    right: 0;
    bottom: 50px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: rgba(255,255,255,.45);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .8rem;
    letter-spacing: .28em;
}
.home-hero .slick-list,
.home-hero .slick-track { height: 100%; }
.home-hero .slick-dots {
    left: 50%;
    bottom: 25px;
    width: min(calc(100% - 48px), var(--max));
    transform: translateX(-50%);
    text-align: left;
}
.home-hero .slick-dots li { width: 38px; height: 3px; margin: 0 4px 0 0; }
.home-hero .slick-dots li button { width: 38px; height: 3px; padding: 0; background: rgba(255,255,255,.35); }
.home-hero .slick-dots li.slick-active button { background: var(--white); }
.home-hero .slick-dots li button:before { display: none; }

/* About */
.intro-section { background: var(--bg); }
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: 86px;
    align-items: center;
}
.about-image { position: relative; min-height: 560px; overflow: hidden; background: var(--bg-soft); }
.about-image img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.about-image__tag {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 17px 22px;
    background: var(--ink);
    color: var(--white);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.about-copy { padding-right: 5%; }
.rich-text { color: var(--muted); line-height: 1.85; }
.rich-text p { margin-bottom: 18px; }
.about-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 42px 0 34px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.about-facts > div { padding: 26px 18px 25px 0; border-right: 1px solid var(--line); }
.about-facts > div:last-child { border-right: 0; padding-left: 18px; }
.about-facts > div:nth-child(2) { padding-left: 18px; }
.about-facts strong {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.55rem;
    font-weight: 500;
    line-height: 1;
    color: var(--ink);
}
.about-facts span { display: block; margin-top: 8px; color: var(--muted); font-size: .72rem; }

/* Services */
.services-section { background: var(--ink); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255,255,255,.13);
    border-left: 1px solid rgba(255,255,255,.13);
}
.service-card {
    min-height: 330px;
    position: relative;
    padding: 30px;
    border-right: 1px solid rgba(255,255,255,.13);
    border-bottom: 1px solid rgba(255,255,255,.13);
    color: var(--white);
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 100% 0 0 0;
    background: var(--accent);
    transition: inset .35s ease;
}
.service-card:hover::before { inset: 0; }
.service-card > * { position: relative; z-index: 2; }
.service-card__number { display: block; color: rgba(255,255,255,.42); font-size: .7rem; letter-spacing: .16em; }
.service-card__icon { height: 56px; margin-top: 55px; display: flex; align-items: center; }
.service-card__icon img { max-width: 56px; max-height: 45px; filter: brightness(0) invert(1); opacity: .9; }
.service-card__body { margin-top: 26px; max-width: 330px; }
.service-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1;
}
.service-card__text { margin-top: 14px; color: rgba(255,255,255,.58); font-size: .78rem; line-height: 1.7; }
.service-card:hover .service-card__text { color: rgba(255,255,255,.82); }
.service-card__arrow { position: absolute; top: 26px; right: 28px; font-size: 1.35rem; }

/* Divisions */
.divisions-section { background: var(--paper); }
.division-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.division-card {
    min-height: 460px;
    position: relative;
    padding: 52px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}
.division-card::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -140px;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: .12;
    transition: transform .5s ease;
}
.division-card:hover::before { transform: scale(1.15); }
.division-card--communication { background: #d9d3c9; color: var(--ink); }
.division-card--pharma { background: #1f2726; color: var(--white); }
.division-card__kicker { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .55; }
.division-card h3 {
    margin-top: 12px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(3.8rem, 6vw, 6.8rem);
    font-weight: 500;
    line-height: .86;
    text-transform: uppercase;
}
.division-card p { max-width: 500px; margin-top: 26px; line-height: 1.7; opacity: .68; }
.division-card__link { margin-top: 32px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.division-card__link b { margin-left: 14px; color: var(--accent); }

/* Projects */
.projects-section { background: var(--bg); }
.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 170px;
    gap: 14px;
}
.project-card {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.project-card--1 { grid-column: span 7; grid-row: span 3; }
.project-card--2 { grid-column: span 5; grid-row: span 2; }
.project-card--3 { grid-column: span 5; grid-row: span 2; }
.project-card--4 { grid-column: span 4; grid-row: span 2; }
.project-card--5 { grid-column: span 4; grid-row: span 2; }
.project-card--6 { grid-column: span 4; grid-row: span 2; }
.project-card--7 { grid-column: span 5; grid-row: span 2; }
.project-card--8 { grid-column: span 7; grid-row: span 2; }
.project-card--9 { display: none; }
.project-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.62));
    transition: background .3s ease;
}
.project-card:hover .project-card__overlay { background: rgba(19,133,182,.68); }
.project-card__label {
    position: absolute;
    left: 24px;
    bottom: 22px;
    color: var(--white);
    font-size: .71rem;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.project-card__label b { margin-left: 8px; }
.project-card__arrow {
    position: absolute;
    top: 20px;
    right: 22px;
    color: var(--white);
    font-size: 1.4rem;
}

/* Prefooter and footer */
.prefooter-cta { background: var(--accent); color: var(--white); padding: 72px 0; }
.prefooter-cta__inner { display: flex; justify-content: space-between; gap: 40px; align-items: center; }
.prefooter-cta .eyebrow { margin-bottom: 10px; color: rgba(255,255,255,.68); }
.prefooter-cta h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 500;
    text-transform: uppercase;
    line-height: .95;
}
.bottom { background: #1d1d1b; color: var(--white); padding: 78px 0 70px; }
.footer-grid { display: grid; grid-template-columns: 1.55fr .7fr .7fr 1fr; gap: 70px; }
.footer-logo { display: inline-block; width: 210px; background: var(--white); padding: 9px 12px; }
.footer-brand p { max-width: 430px; margin-top: 26px; color: rgba(255,255,255,.55); line-height: 1.7; }
.footer-col strong { display: block; margin-bottom: 24px; font-size: .73rem; letter-spacing: .15em; text-transform: uppercase; }
.footer-col li { margin: 11px 0; }
.footer-col a, .footer-contact p { color: rgba(255,255,255,.58); font-size: .84rem; line-height: 1.75; }
.footer-col a:hover { color: var(--white); }
.copyright { background: #151513; color: rgba(255,255,255,.43); padding: 19px 0; font-size: .7rem; }
.copyright__inner { display: flex; justify-content: space-between; gap: 20px; }
.copyright a { color: rgba(255,255,255,.58); }
.copyright a:hover { color: var(--white); }
.copyright span { margin: 0 8px; }

/* Internal pages */
.sli-slide-page {
    position: relative !important;
    margin-top: 84px;
    width: 100%;
    height: 440px;
}
.sli-slide-page .slick-list,
.sli-slide-page .slick-track { height: 100%; }
.slidecont {
    position: relative !important;
    width: 100%;
    height: 100% !important;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.nero {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(20,20,19,.72), rgba(20,20,19,.2));
    display: flex;
    align-items: center;
}
.captionslide { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; color: var(--white); }
.titcaptionpage {
    max-width: 900px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(4rem, 7vw, 7rem);
    font-weight: 500;
    line-height: .9;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.submenu {
    width: min(calc(100% - 48px), var(--max));
    margin: 0 auto;
    padding: 20px 0 18px;
    border-bottom: 1px solid var(--line) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 26px;
}
.submenu a {
    position: relative;
    padding: 7px 0;
    color: #5d5953;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.submenu a:hover,
.submenu a.subactive { color: var(--accent); }
.submenu a.subactive::after {
    content: '';
    position: absolute;
    height: 2px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent);
}

.padding70 { padding: 90px 0 110px; }
.titcont {
    width: 100%;
    margin-bottom: 38px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.6rem, 4vw, 4.3rem);
    font-weight: 500;
    line-height: 1;
    text-align: left;
    text-transform: uppercase;
}
.titcont::after { display: none; }
.titolo h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(3.2rem, 5vw, 5rem);
    font-weight: 500;
    line-height: .95;
    text-transform: uppercase;
}
.sottotitolo h2 {
    margin-top: 12px;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
}
.principale { width: 100%; padding-top: 38px; }
.principaleleft { width: 48%; margin: 42px 5% 20px 0; float: left; }
.descrizione {
    font-size: .95rem;
    line-height: 1.85;
    color: var(--muted);
    padding-top: 35px;
}
.descrizioneleft { width: 47%; float: right; padding-top: 42px; }
.descrizione p { margin-bottom: 18px; }
.descrizione a { color: var(--accent); }
.descrizione a:hover { color: var(--ink); }
.descrizione ul, .desccat ul { padding: 15px 0 15px 20px; }
.descrizione li, .desccat li { list-style: disc; margin: 6px 0; }
.desccat { color: var(--muted); line-height: 1.8; max-width: 1050px; }
.desccat h3 { font-size: 1rem; font-weight: 400; }

.menubox {
    width: calc(25% - 20px);
    height: auto;
    min-height: 315px;
    margin: 10px;
    float: left;
    color: var(--ink);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    text-transform: uppercase;
}
.menubox_img {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    margin-bottom: 14px;
    transition: transform .3s ease, filter .3s ease;
}
a:hover .menubox_img { filter: brightness(.8); }

.contentgall {
    width: 100%;
    margin: 45px auto 0;
    padding-top: 25px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.contentgall a { width: 100%; height: 250px; margin: 0; overflow: hidden; }
.imggall {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform .35s ease;
}
.contentgall a:hover .imggall { transform: scale(1.04); }
.imggall::before { content: ''; position: absolute; inset: 0; background: rgba(19,133,182,0); transition: .3s; }
.contentgall a:hover .imggall::before { background: rgba(19,133,182,.62); }
.imggall p { position: relative; z-index: 2; width: 100%; text-align: center; color: var(--white); opacity: 0; transition: .3s; }
.contentgall a:hover .imggall p { opacity: 1; }

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
    width: 100%;
    max-width: 650px;
    padding: 13px 14px;
    margin-top: 5px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    font-family: inherit;
    border-radius: 0;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
input[type="submit"], button[type="submit"] {
    border: 0;
    padding: 14px 26px;
    background: var(--ink);
    color: var(--white);
    font-family: inherit;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}
input[type="submit"]:hover, button[type="submit"]:hover { background: var(--accent); }
.error { border-color: #c83c3c !important; }
label.error { border: 0 !important; color: #c83c3c; }
.form_sx { line-height: 1.5; }

/* Old menu class kept harmless for compatibility */
.menu_comparsa { display: none; }

/* =========================================================
   PAGINE INTERNE - RESTYLING 2026
   ========================================================= */
.internal-page { background: var(--paper); }
.page-hero {
    position: relative;
    height: 62vh;
    min-height: 510px;
    max-height: 720px;
    margin-top: 86px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}
.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(24,24,23,.78) 0%, rgba(24,24,23,.50) 48%, rgba(24,24,23,.18) 100%);
}
.page-hero__inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 64px;
    color: var(--white);
}
.page-hero__copy { max-width: 950px; }
.page-hero h1 {
    max-width: 940px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(4.6rem, 8vw, 8rem);
    font-weight: 500;
    line-height: .86;
    letter-spacing: -.025em;
    text-transform: uppercase;
}
.page-hero__copy p {
    max-width: 680px;
    margin-top: 24px;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255,255,255,.85);
}
.page-hero__mark {
    margin-bottom: 8px;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .22em;
    writing-mode: vertical-rl;
    opacity: .72;
}
.submenu {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(14px);
}
.submenu__inner {
    width: min(calc(100% - 48px), var(--max));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 28px;
}
.submenu a {
    padding: 20px 0 18px;
    font-size: .67rem;
    letter-spacing: .10em;
}
.category-intro__text { max-width: 650px; }
.section-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 60px;
}
.section-card {
    position: relative;
    min-height: 430px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: var(--ink);
    color: var(--white);
}
.section-card__media {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transition: transform .55s cubic-bezier(.2,.75,.2,1), filter .35s ease;
}
.section-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.72));
}
.section-card__meta,
.section-card__title,
.section-card__arrow { position: relative; z-index: 2; }
.section-card__meta {
    position: absolute;
    top: 24px;
    left: 25px;
    font-size: .65rem;
    letter-spacing: .15em;
    opacity: .75;
}
.section-card__title {
    max-width: 85%;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
}
.section-card__arrow {
    position: absolute;
    right: 25px;
    bottom: 23px;
    font-size: 1.3rem;
}
.section-card:hover { color: var(--white); }
.section-card:hover .section-card__media { transform: scale(1.045); filter: brightness(.88); }

.page-content__head {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
    align-items: end;
    gap: 70px;
    margin-bottom: 58px;
    padding-bottom: 38px;
    border-bottom: 1px solid var(--line);
}
.page-content__head .eyebrow { grid-column: 1 / -1; margin-bottom: -42px; }
.page-content__head h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(3.3rem, 5.6vw, 5.7rem);
    font-weight: 500;
    line-height: .9;
    letter-spacing: -.02em;
    text-transform: uppercase;
}
.page-content__head > p {
    max-width: 570px;
    padding-bottom: 8px;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
}
.page-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
    gap: clamp(45px, 7vw, 110px);
    align-items: start;
}
.page-detail--text-only { grid-template-columns: minmax(0, 920px); }
.page-detail__media { position: sticky; top: 115px; margin: 0; }
.page-detail__media img {
    display: block;
    width: 100%;
    min-height: 520px;
    max-height: 720px;
    object-fit: cover;
}
.page-detail__media figcaption {
    padding-top: 12px;
    color: var(--muted);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
}
.page-detail__copy {
    padding-top: 4px;
    font-size: 1rem;
    line-height: 1.9;
}
.rich-text div[style*="text-align: justify"] { text-align: left !important; }
.rich-text p, .rich-text div { margin-bottom: 19px; }
.rich-text strong { color: var(--ink); font-weight: 700; }
.rich-text ul { margin: 22px 0 28px; padding: 0; border-top: 1px solid var(--line); }
.rich-text li {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 14px 10px 14px 28px;
    border-bottom: 1px solid var(--line);
}
.rich-text li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 22px;
    width: 7px;
    height: 7px;
    background: var(--accent);
}
.company-links { margin-top: 100px; padding-top: 30px; border-top: 1px solid var(--line); }
.section-cards--company { grid-template-columns: repeat(4, 1fr); margin-top: 28px; }
.section-cards--company .section-card { min-height: 320px; }

.page-gallery { padding-top: 30px; background: #e9e6e0; }
.page-gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 120px;
    gap: 14px;
}
.gallery-card { position: relative; display: block; overflow: hidden; grid-column: span 4; grid-row: span 3; }
.gallery-card:nth-child(6n+1), .gallery-card:nth-child(6n+5) { grid-column: span 7; grid-row: span 4; }
.gallery-card:nth-child(6n+2), .gallery-card:nth-child(6n+6) { grid-column: span 5; grid-row: span 4; }
.gallery-card__image {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transition: transform .5s cubic-bezier(.2,.75,.2,1);
}
.gallery-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(19,133,182,0);
    transition: background .3s ease;
}
.gallery-card__zoom {
    position: absolute;
    z-index: 2;
    right: 18px;
    top: 18px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--white);
    color: var(--ink);
    opacity: 0;
    transform: translateY(-8px);
    transition: .3s ease;
}
.gallery-card:hover .gallery-card__image { transform: scale(1.04); }
.gallery-card:hover::after { background: rgba(19,133,182,.16); }
.gallery-card:hover .gallery-card__zoom { opacity: 1; transform: translateY(0); }

.quote-form-wrap {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: clamp(45px, 7vw, 100px);
    margin-top: 95px;
    padding-top: 60px;
    border-top: 1px solid var(--line);
}
.quote-form-intro h3 {
    margin: 10px 0 22px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.7rem, 4vw, 4.2rem);
    font-weight: 500;
    line-height: .95;
    text-transform: uppercase;
}
.quote-form-intro p { color: var(--muted); line-height: 1.75; }
.quote-form-panel { padding: 34px; background: var(--white); border: 1px solid var(--line); }
.quote-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
.form-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.form-field--wide { grid-column: 1 / -1; }
.quote-form input[type="text"], .quote-form input[type="email"], .quote-form textarea {
    max-width: none;
    margin: 0;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid #c8c4bd;
    background: transparent;
}
.quote-form textarea { min-height: 125px; }
.form-privacy { padding-top: 8px; }
.form-privacy label { display: flex; gap: 11px; align-items: flex-start; text-transform: none; letter-spacing: 0; line-height: 1.55; font-weight: 500; }
.form-privacy input { margin-top: 4px; flex: 0 0 auto; }
.form-submit { padding-top: 5px; }
.form-submit input[type="submit"] { min-width: 210px; }
.quote-uploader { margin-bottom: 26px; }
.form-status, .form-message { margin-top: 20px; padding: 15px 18px; background: #f2f0ec; }
.form-message { border-left: 3px solid var(--accent); color: var(--ink); }

/* Contatti: più respiro al testo e ai link */
.page-id-227 .page-detail--text-only { grid-template-columns: minmax(0, 720px); }
.page-id-227 .page-detail__copy { font-size: 1.05rem; }
.page-id-227 .page-detail__copy a { display: inline-block; margin: 2px 0 6px; font-weight: 700; }

/* Privacy */
.page-id-253 .page-detail--text-only { grid-template-columns: minmax(0, 1000px); }
.page-id-253 .page-detail__copy { font-size: .9rem; }

/* Comunicazione: impaginazione editoriale dedicata */
.category-intro--communication { padding-top: 82px; }
.communication-intro {
    display: grid;
    grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
    gap: clamp(65px, 9vw, 150px);
    align-items: start;
    padding-bottom: 78px;
    border-bottom: 1px solid var(--line);
}
.communication-intro__heading {
    position: sticky;
    top: 125px;
    align-self: start;
}
.communication-intro__heading h2 {
    max-width: 560px;
    margin: 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(4.2rem, 6.4vw, 7rem);
    font-weight: 500;
    line-height: .86;
    letter-spacing: -.025em;
    text-transform: uppercase;
}
.communication-intro__heading > p {
    max-width: 430px;
    margin-top: 30px;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.75;
}
.communication-intro__text {
    max-width: 760px;
    padding-top: 1px;
    font-size: 1.04rem;
    line-height: 1.9;
}
.communication-intro__text > div:first-child,
.communication-intro__text > p:first-child { margin-top: 0; }
.section-cards--communication { margin-top: 72px; }


/* =========================================================
   Refinement 2026-08 - readability and detail pages
   ========================================================= */
body, html { font-size: 17px; }

/* Keep utility/navigation text readable even when it uses compact rem values. */
.menutop a { font-size: .78rem; }
.top__cta { font-size: .75rem; }
.submenu a { font-size: .75rem; }
.btn, .text-link { font-size: .82rem; }
.footer-col strong { font-size: .8rem; }
.footer-col a, .footer-contact p { font-size: .9rem; }
.copyright { font-size: .76rem; }

/* Lift internal hero typography away from the lower edge. */
.page-hero__inner { padding-bottom: 155px; }
.page-hero__copy { transform: none; }

/* Detail pages: remove the old large left image and use a stronger editorial intro. */
.page-intro-grid {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
    gap: clamp(55px, 8vw, 130px);
    align-items: start;
    margin: 12px 0 70px;
    padding: 52px 0 56px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.page-intro-grid__lead .eyebrow { margin-bottom: 16px; }
.page-intro-grid__lead h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.8rem, 4.5vw, 4.8rem);
    font-weight: 500;
    line-height: .94;
    letter-spacing: -.02em;
    text-transform: uppercase;
}
.page-intro-grid__text {
    max-width: 760px;
    padding-top: 7px;
}
.page-intro-grid__text p {
    margin: 0;
    color: var(--muted);
    font-size: 1.16rem;
    line-height: 1.78;
}
.page-detail--clean {
    display: block;
    max-width: 980px;
    font-size: 1.06rem;
    line-height: 1.9;
}
.page-detail--clean p,
.page-detail--clean div { max-width: 900px; }

/* Gallery support text and labels were visually too small. */
.page-gallery .section-heading p { font-size: 1.05rem; }
.section-card__meta { font-size: .73rem; }
.service-card__number { font-size: .77rem; }
.service-card__text { font-size: .86rem; }
.project-card__label { font-size: .8rem; }


/* Detail page intro refinement */
.page-intro-generic {
    max-width: 980px;
    margin: 10px 0 70px;
    padding: 48px 0 52px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.page-intro-generic .eyebrow {
    display: block;
    margin-bottom: 18px;
}
.page-intro-generic p {
    max-width: 880px;
    margin: 0;
    color: var(--muted);
    font-size: 1.16rem;
    line-height: 1.78;
}


/* Refinement 2026-08 - hero editorial alignment */
@media screen and (min-width: 768px) {
    .page-hero__inner {
        position: relative;
        align-items: stretch;
        padding-top: 0;
        padding-bottom: 0;
    }
    .page-hero__copy {
        position: absolute;
        left: 0;
        bottom: clamp(120px, 14vh, 165px);
        max-width: min(950px, 78%);
        transform: none;
    }
    .page-hero__mark {
        position: absolute;
        right: 0;
        bottom: 62px;
        margin-bottom: 0;
    }
}

/* Home slider navigation */
.home-hero { position: relative; overflow: hidden; }
.home-hero .slick-list { overflow: hidden; }
.home-hero .slick-slide { outline: 0; }
.home-slider-arrow {
    position: absolute;
    z-index: 8;
    top: 50%;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    border: 1px solid rgba(255,255,255,.58);
    border-radius: 50%;
    background: rgba(18,18,18,.18);
    color: #fff;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.home-slider-arrow:hover {
    background: rgba(18,18,18,.55);
    border-color: rgba(255,255,255,.95);
}
.home-slider-arrow--prev { left: 28px; }
.home-slider-arrow--next { right: 28px; }
.home-slider-arrow--prev:hover { transform: translateX(-3px); }
.home-slider-arrow--next:hover { transform: translateX(3px); }

@media (max-width: 1100px) {
    .home-slider-arrow--prev { left: 16px; }
    .home-slider-arrow--next { right: 16px; }
}
