/*
Theme Name: Centro Europeo Medico Legale
Theme URI: https://centroeuropeomedicolegale.com/
Author: Centro Europeo Medico Legale
Description: Tema istituzionale personalizzato per il Centro Europeo Medico Legale.
Version: 1.0.11
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: ceml
*/

:root {
  --ink: #0a2745;
  --deep: #062d33;
  --green: #0b4544;
  --gold: #c89f48;
  --paper: #f5f1e9;
  --white: #fffdf8;
  --muted: #677077;
  --line: rgba(10, 39, 69, .16);
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "Libre Caslon Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; z-index: 999; top: 8px; left: 8px; padding: .7rem 1rem; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { height: 148px; display: grid; grid-template-columns: minmax(440px, 500px) 1fr auto; align-items: center; gap: 1.6rem; padding: .3rem clamp(1rem, 3vw, 3.5rem); background: rgba(255,253,248,.97); position: relative; z-index: 30; border-bottom: 1px solid rgba(11,49,80,.08); }
.brand { width: 475px; display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: .8rem; color: var(--ink); text-decoration: none; }
.brand-symbol { width: 112px; height: auto; }
.brand-copy { min-width: 0; display: grid; align-content: center; line-height: 1; }
.brand-name, .brand-subname { font-family: var(--serif); text-transform: uppercase; white-space: nowrap; }
.brand-name { font-size: 1.55rem; letter-spacing: .015em; }
.brand-subname { margin-top: .2rem; color: var(--gold); font-size: 1.28rem; letter-spacing: .13em; }
.brand-rule { height: 1px; margin: .38rem 0 .3rem; background: var(--gold); }
.brand-values { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.brand-values b { color: var(--gold); font-weight: 700; }
.brand-motto { margin-top: .42rem; font-family: var(--serif); font-size: .9rem; line-height: 1.15; white-space: nowrap; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(.9rem, 1.35vw, 1.45rem); }
.main-nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .055em; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--gold); }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; padding: .9rem 1.3rem; border: 1px solid transparent; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; font-weight: 600; cursor: pointer; transition: .25s ease; }
.button-header, .button-primary { color: white; background: var(--deep); border-color: var(--deep); }
.button-header { padding: 1rem 1.45rem; font-size: .8rem; }
.button-header:hover, .button-primary:hover { background: #114f50; border-color: #114f50; transform: translateY(-1px); }
.button-ghost { color: white; border-color: rgba(255,255,255,.65); background: rgba(4,29,35,.15); }
.button-ghost:hover { background: white; color: var(--deep); }
.button-gold { background: var(--gold); color: #071f2a; }

.hero { position: relative; min-height: clamp(680px, calc(100svh - 148px), 860px); overflow: hidden; color: white; display: flex; align-items: center; background: #061f2d; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,27,35,.18) 0%, rgba(4,27,35,.68) 28%, rgba(4,27,35,.56) 53%, rgba(4,27,35,.08) 82%), linear-gradient(0deg, rgba(4,27,35,.34), transparent 38%); }
.hero-content { position: relative; z-index: 2; width: min(690px, 56vw); margin-left: clamp(22rem, 27vw, 34rem); padding: 6rem 0; }
.eyebrow { margin: 0 0 1rem; color: var(--gold); font-size: clamp(.78rem, .74rem + .1vw, .86rem); font-weight: 600; line-height: 1.4; letter-spacing: .23em; text-transform: uppercase; }
.eyebrow.light { color: #f2d28d; }
.hero h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; line-height: 1.04; }
.hero h1 { margin: 0 0 1.4rem; font-size: clamp(3.35rem, 6vw, 6.4rem); text-shadow: 0 2px 18px rgba(0,0,0,.2); }
.hero-lead { padding-top: 1.15rem; border-top: 1px solid rgba(255,255,255,.55); max-width: 410px; font-family: var(--serif); font-size: clamp(1.18rem, 1.8vw, 1.65rem); line-height: 1.35; }
.hero-actions { display: flex; gap: .8rem; margin-top: 2rem; }
.section { padding: clamp(4rem, 7vw, 7.5rem) clamp(1.2rem, 4.5vw, 5.5rem); }
.section-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: end; margin-bottom: 3.2rem; }
.section-intro h2, .editorial h2, .insights h2, .contact h2, .rome-band h2 { margin: 0; font-size: clamp(2.5rem, 4.2vw, 4.7rem); }
.section-intro > p { margin: 0; padding: 0 0 .6rem 2rem; border-left: 1px solid var(--line); max-width: 620px; font-family: var(--serif); font-size: 1.25rem; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-card { min-width: 0; padding: 2.2rem 1.35rem; border-right: 1px solid var(--line); background: rgba(255,255,255,.28); transition: .25s ease; display: flex; flex-direction: column; }
.service-card:first-child { border-left: 1px solid var(--line); }
.service-card:hover { background: var(--white); transform: translateY(-5px); box-shadow: 0 18px 40px rgba(10,39,69,.08); }
.service-card svg { width: 44px; height: 44px; margin-bottom: 1.6rem; fill: none; stroke: #0b5270; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { min-height: 0; margin: 0 0 .55rem; font-family: var(--serif); font-size: clamp(1.38rem, 1.35vw, 1.58rem); line-height: 1.15; }
.service-card p { min-height: 0; margin: 0 0 1.6rem; color: #394a54; font-size: .9rem; }
.service-card > a { margin-top: auto; }
.service-card a, .text-link, .insights article a { display: inline-flex; gap: .55rem; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; font-weight: 600; }

.foundations { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 0; padding-top: 0; }
.foundation-lead, .foundation-card { padding: clamp(2rem, 4vw, 4.5rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.foundation-lead { padding-left: 0; }
.foundation-lead h2 { margin: 0 0 1.7rem; font-size: clamp(2.5rem, 4.2vw, 4.8rem); }
.foundation-lead > p:not(.eyebrow) { max-width: 720px; font-family: var(--serif); font-size: 1.15rem; }
.foundation-card { position: relative; border-left: 1px solid var(--line); background: rgba(255,255,255,.24); }
.foundation-card h3 { margin: 0 0 1.2rem; font-family: var(--serif); font-size: clamp(1.8rem, 2.6vw, 2.7rem); font-weight: 400; line-height: 1.08; }
.foundation-card p:last-child { color: #394a54; }

.editorial { display: grid; grid-template-columns: 1.15fr .88fr 1.12fr; min-height: 490px; }
.editorial-photo { background: linear-gradient(rgba(7,38,47,.12), rgba(7,38,47,.42)), url('assets/hero-roma-giustizia.webp') 8% center/auto 125% no-repeat; }
.editorial-copy, .editorial-center { padding: clamp(2.4rem, 5vw, 5rem); }
.editorial-copy { background: var(--white); }
.editorial-copy h2 { font-size: clamp(2.5rem, 4vw, 4rem); }
.editorial-copy > p:not(.eyebrow) { font-family: var(--serif); font-size: 1.15rem; }
.editorial-copy ul { padding: 0; margin: 1.6rem 0; list-style: none; }
.editorial-copy li { margin: .45rem 0; }
.editorial-copy li::before { content: "✓"; display: inline-grid; place-items: center; width: 1.1rem; height: 1.1rem; margin-right: .55rem; border: 1px solid var(--ink); border-radius: 50%; font-size: .68rem; }
.editorial-center { position: relative; overflow: hidden; background: var(--deep); color: white; display: flex; flex-direction: column; justify-content: center; }
.editorial-center > img { position: absolute; right: -6rem; bottom: -9rem; width: 450px; opacity: .055; filter: grayscale(1) brightness(4); }
.editorial-center > *:not(img) { position: relative; z-index: 1; }
.editorial-center h2 { font-size: clamp(2.2rem, 3vw, 3.5rem); }
.editorial-center p:not(.eyebrow) { max-width: 440px; font-family: var(--serif); font-size: 1.15rem; }
.editorial-center .button { align-self: flex-start; margin-top: 1rem; }

.expertise { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 7vw, 8rem); background: #fffdf8; }
.expertise-heading { position: sticky; top: 2rem; align-self: start; }
.expertise-heading h2 { margin: 0 0 1.6rem; font-size: clamp(2.6rem, 4vw, 4.5rem); }
.expertise-heading > p:last-child { max-width: 560px; font-family: var(--serif); font-size: 1.2rem; }
.expertise-list { border-top: 1px solid var(--line); }
.expertise-list details { border-bottom: 1px solid var(--line); }
.expertise-list details[id] { scroll-margin-top: 1.5rem; }
.expertise-list details:target { background: rgba(200,159,72,.07); }
.expertise-list summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .8rem; padding: 1.5rem 0; color: var(--ink); cursor: pointer; list-style: none; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.85rem); }
.expertise-list summary::-webkit-details-marker { display: none; }
.expertise-list summary::after { content: "+"; color: var(--gold); font-family: var(--sans); font-size: 1.8rem; font-weight: 300; }
.expertise-list details[open] summary::after { content: "−"; }
.expertise-body { padding: 0 0 2rem; color: #334852; }
.expertise-body p { max-width: 820px; }
.expertise-body ul { padding-left: 1.2rem; }
.expertise-body li { margin: .55rem 0; }
.expertise-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 1.4rem 0; }
.expertise-columns h3 { margin: 0 0 .8rem; color: var(--ink); font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }

.protection { display: grid; grid-template-columns: .95fr 1.05fr; color: white; background: linear-gradient(135deg, #062d33, #0a4350); }
.protection-intro { padding: clamp(3.5rem, 7vw, 7.5rem); border-right: 1px solid rgba(255,255,255,.16); }
.protection-intro h2 { margin: 0 0 1.5rem; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5.5rem); font-weight: 400; line-height: 1.04; }
.protection-intro > p:not(.eyebrow) { max-width: 650px; font-family: var(--serif); font-size: 1.25rem; }
.protection-intro .button { margin-top: 1.2rem; }
.protection-areas { display: grid; grid-template-columns: repeat(2, 1fr); align-items: stretch; }
.protection-areas article { padding: clamp(2.5rem, 4.5vw, 5rem) clamp(2rem, 3.5vw, 4rem); border-right: 1px solid rgba(255,255,255,.15); display: flex; flex-direction: column; justify-content: center; }
.protection-areas article:last-child { border-right: 0; }
.protection-areas h3 { margin: 0 0 1.2rem; font-family: var(--serif); font-size: clamp(1.8rem, 2.7vw, 3rem); font-weight: 400; line-height: 1.05; }
.protection-areas p { color: rgba(255,255,255,.8); }
.protection-areas .light-link { margin-top: 1.2rem; color: #f2d28d; font-size: .78rem; }

.rome-band { min-height: 470px; padding: 5rem clamp(2rem, 9vw, 10rem); color: white; display: flex; align-items: center; background: linear-gradient(90deg, rgba(4,28,35,.94), rgba(4,28,35,.58) 48%, rgba(4,28,35,.1)), url('assets/hero-roma-giustizia.webp') center 72%/cover no-repeat; }
.rome-band > div { max-width: 560px; }
.rome-band h2 { font-size: clamp(4rem, 8vw, 8rem); text-transform: uppercase; }
.rome-band p:not(.eyebrow) { margin: .5rem 0 2rem; font-family: var(--serif); font-size: 1.4rem; }
.sede-addresses { display: grid; gap: .65rem; margin: 0 0 2rem; font-style: normal; }
.sede-addresses a { display: grid; width: fit-content; color: white; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: .2em; }
.sede-addresses a:hover, .sede-addresses a:focus-visible { color: #f2d28d; }
.sede-addresses span { margin-bottom: .08rem; color: #f2d28d; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.insights { display: grid; grid-template-columns: 1.05fr repeat(4, 1fr); gap: 0; }
.insights-heading { padding-right: 2rem; }
.insights-heading h2 { font-size: clamp(2.5rem, 3.5vw, 4rem); }
.insights article { min-height: 230px; padding: 2rem 1.4rem; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.article-date { margin: 0 0 .6rem; color: var(--gold); text-transform: uppercase; font-size: .74rem; font-weight: 600; letter-spacing: .1em; }
.insights article h3 { margin: 0 0 1.2rem; min-height: 66px; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; line-height: 1.25; }

.contact { display: grid; grid-template-columns: .85fr 1.15fr; background: #0a3137; color: white; }
.contact-copy, .contact-form { padding: clamp(3rem, 6vw, 6.5rem); }
.contact-copy { background: linear-gradient(145deg, #0b3d42, #07262c); }
.contact-copy p:not(.eyebrow) { max-width: 520px; font-family: var(--serif); font-size: 1.3rem; }
.contact-facts { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.25); display: flex; gap: 1.3rem; flex-wrap: wrap; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.contact-facts a { color: white; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: .2em; }
.contact-facts a:hover, .contact-facts a:focus-visible { color: #f2d28d; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact-form label { display: grid; gap: .45rem; color: #e9efe9; font-size: .77rem; letter-spacing: .06em; text-transform: uppercase; }
.contact-form label:nth-of-type(3), .contact-form label:nth-of-type(4), .contact-form .privacy, .contact-form .button, .contact-form .form-note, .form-result { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.42); border-radius: 0; padding: .75rem .1rem; background: transparent; color: white; font: inherit; outline: 0; }
.contact-form select { color-scheme: dark; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--gold); }
.contact-form .privacy { display: flex; align-items: flex-start; gap: .6rem; text-transform: none; letter-spacing: 0; }
.contact-form .privacy input { width: auto; margin-top: .25rem; }
.contact-form .privacy a { color: #f2d28d; text-underline-offset: .18em; }
.contact-form .button { width: fit-content; border: 0; }
.form-note { margin: -.4rem 0 0; color: rgba(255,255,255,.65); font-size: .76rem; }
.form-result { padding: 1rem; background: rgba(255,255,255,.08); border-left: 3px solid var(--gold); white-space: pre-line; }
.form-result.success { color: #fff; }
.form-result.error { color: #ffe1dc; border-left-color: #e88a76; }
.ceml-honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }

/* CookieAdmin: barra compatta e meno invasiva. */
.cookieadmin_law_container.cookieadmin_box {
  right: 1rem !important;
  bottom: 1rem !important;
  left: 1rem !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}
.cookieadmin_law_container.cookieadmin_box .cookieadmin_consent_inside {
  display: grid !important;
  grid-template-columns: minmax(280px, 1fr) auto auto !important;
  grid-template-areas: "cookie-title cookie-buttons cookie-brand" "cookie-text cookie-buttons cookie-brand" !important;
  align-items: center !important;
  column-gap: 1.35rem !important;
  padding: 1rem 1.2rem !important;
  border: 1px solid rgba(10,39,69,.18) !important;
  border-radius: 0 !important;
  box-shadow: 0 12px 32px rgba(4,29,35,.16) !important;
}
.cookieadmin_law_container.cookieadmin_box #cookieadmin_notice_title {
  grid-area: cookie-title !important;
  margin: 0 0 .15rem !important;
  color: var(--ink) !important;
  font: 600 .92rem/1.2 var(--sans) !important;
}
.cookieadmin_law_container.cookieadmin_box .cookieadmin_notice_con {
  grid-area: cookie-text !important;
}
.cookieadmin_law_container.cookieadmin_box #cookieadmin_notice {
  max-width: 800px !important;
  margin: 0 !important;
  font: 400 .76rem/1.4 var(--sans) !important;
}
.cookieadmin_law_container.cookieadmin_box .cookieadmin_consent_btns {
  grid-area: cookie-buttons !important;
  display: flex !important;
  gap: .45rem !important;
  align-items: center !important;
  margin: 0 !important;
}
.cookieadmin_law_container.cookieadmin_box .cookieadmin_btn {
  width: auto !important;
  min-width: 105px !important;
  margin: 0 !important;
  padding: .62rem .8rem !important;
  border-radius: 0 !important;
  font: 600 .7rem/1.15 var(--sans) !important;
  white-space: nowrap !important;
}
.cookieadmin_law_container.cookieadmin_box .cookieadmin-poweredby {
  grid-area: cookie-brand !important;
  margin: 0 !important;
  opacity: .72 !important;
}

.content-shell { width: min(980px, calc(100% - 2.4rem)); margin: 0 auto; padding: clamp(3.5rem, 7vw, 7rem) 0; }
.content-shell h1 { margin: 0 0 1.8rem; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5.2rem); font-weight: 400; line-height: 1.05; }
.content-shell h2, .content-shell h3 { font-family: var(--serif); font-weight: 400; }
.content-shell .entry-meta { color: var(--gold); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.content-shell .entry-content { font-family: Georgia, serif; font-size: 1.08rem; color: #263c49; }
.content-shell .entry-content > * { max-width: 760px; }
.content-shell .entry-content img { max-width: 100%; height: auto; }
.posts-list article { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.posts-list h2 { margin: .4rem 0; font-size: 2rem; }
.posts-list h2 a { text-decoration: none; }
.navigation.pagination { margin-top: 2rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body.admin-bar .site-header { margin-top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { margin-top: 46px; } }

footer { display: grid; grid-template-columns: 1.3fr 1fr .7fr auto; gap: 2.4rem; align-items: center; padding: 2.4rem clamp(1.2rem, 4.5vw, 5.5rem) 1.6rem; color: white; background: #042b31; }
.footer-brand { width: 350px; max-width: 100%; display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: center; gap: .7rem; color: white; text-decoration: none; }
.footer-brand-symbol { width: 82px; height: auto; }
.footer-brand .brand-name { color: white; font-size: 1.25rem; }
.footer-brand .brand-subname { font-size: 1.02rem; }
.footer-brand .brand-values { color: white; font-size: .68rem; letter-spacing: .11em; }
.footer-brand .brand-rule { margin: .3rem 0 .26rem; }
footer blockquote { margin: 0; color: #e7dcc3; font-family: var(--serif); font-style: italic; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .75rem; }
.footer-links a { text-decoration: none; }
.copyright { grid-column: 1 / -1; margin: .4rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.58); font-size: .72rem; }

@media (max-width: 1500px) {
  .site-header { grid-template-columns: 400px 1fr auto; gap: 1rem; padding-inline: 1.6rem; }
  .brand { width: 390px; grid-template-columns: 90px minmax(0, 1fr); gap: .65rem; }
  .brand-symbol { width: 90px; }
  .brand-name { font-size: 1.28rem; }
  .brand-subname { font-size: 1.05rem; }
  .brand-values { font-size: .66rem; letter-spacing: .11em; }
  .brand-motto { font-size: .78rem; }
  .main-nav { gap: .75rem; }
  .main-nav a { font-size: .78rem; }
  .button-header { padding: .9rem 1.1rem; font-size: .72rem; }
}

@media (max-width: 1180px) {
  .site-header { height: 118px; grid-template-columns: 320px 1fr auto; gap: 1rem; }
  .brand { width: 315px; grid-template-columns: 72px minmax(0, 1fr); gap: .5rem; }
  .brand-symbol { width: 72px; }
  .brand-name { font-size: 1.06rem; }
  .brand-subname { font-size: .88rem; letter-spacing: .1em; }
  .brand-values { font-size: .57rem; letter-spacing: .08em; }
  .brand-motto { font-size: .68rem; }
  .main-nav { gap: .8rem; }
  .main-nav a { font-size: .75rem; }
  .button-header { display: none; }
  .hero-content { margin-left: 30vw; width: min(650px, 60vw); }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card:nth-child(3) { border-right: 1px solid var(--line); }
  .service-card h3, .service-card p { min-height: auto; }
  .foundations { grid-template-columns: 1fr 1fr; }
  .foundation-lead { grid-column: 1 / -1; padding-right: 0; }
  .foundation-card:nth-child(2) { border-left: 0; }
  .insights { grid-template-columns: repeat(2, 1fr); }
  .insights-heading { grid-column: 1 / -1; margin-bottom: 2rem; }
  .insights article:nth-child(2), .insights article:nth-child(4) { border-left: 0; }
  .protection { grid-template-columns: 1fr; }
  .protection-intro { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .site-header { height: 104px; grid-template-columns: 1fr auto; padding: .35rem 1rem; }
  .brand { width: 365px; max-width: calc(100vw - 78px); grid-template-columns: 80px minmax(0, 1fr); gap: .6rem; }
  .brand-symbol { width: 80px; }
  .brand-name { font-size: 1.18rem; }
  .brand-subname { font-size: .98rem; }
  .brand-values { font-size: .65rem; letter-spacing: .1em; }
  .brand-motto { font-size: .76rem; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 104px; left: 0; right: 0; padding: 1.2rem; background: var(--white); box-shadow: 0 18px 30px rgba(0,0,0,.12); flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .7rem; font-size: .92rem; }
  .hero { min-height: 690px; align-items: flex-end; }
  .hero-image { object-position: 54% center; }
  .hero-overlay { background: linear-gradient(0deg, rgba(4,27,35,.94), rgba(4,27,35,.35) 76%); }
  .hero-content { width: 100%; margin: 0; padding: 7rem 1.25rem 4rem; }
  .hero h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .section-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-intro > p { padding: 1rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(odd) { border-left: 1px solid var(--line); }
  .foundations, .expertise { grid-template-columns: 1fr; }
  .foundation-lead, .foundation-card { padding: 3rem 1.4rem; }
  .foundation-card { border-left: 0; border-top: 0; }
  .expertise-heading { position: static; }
  .expertise-body { padding-left: 0; }
  .expertise-columns { grid-template-columns: 1fr; gap: .7rem; }
  .protection-areas { grid-template-columns: 1fr; }
  .protection-areas article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .editorial { grid-template-columns: 1fr; }
  .editorial-photo { min-height: 370px; background-size: auto 160%; }
  .editorial-copy, .editorial-center { padding: 3.5rem 1.4rem; }
  .rome-band { min-height: 440px; padding: 4rem 1.4rem; background-position: 62% center; }
  .contact { grid-template-columns: 1fr; }
  .contact-copy, .contact-form { padding: 3.5rem 1.4rem; }
  footer { grid-template-columns: 1fr; }
  .cookieadmin_law_container.cookieadmin_box {
    right: .65rem !important;
    bottom: .65rem !important;
    left: .65rem !important;
  }
  .cookieadmin_law_container.cookieadmin_box .cookieadmin_consent_inside {
    grid-template-columns: 1fr !important;
    grid-template-areas: "cookie-title" "cookie-text" "cookie-buttons" "cookie-brand" !important;
    gap: .65rem !important;
    padding: .9rem !important;
  }
  .cookieadmin_law_container.cookieadmin_box .cookieadmin_consent_btns {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    width: 100% !important;
  }
  .cookieadmin_law_container.cookieadmin_box .cookieadmin_btn { min-width: 0 !important; }
  .cookieadmin_law_container.cookieadmin_box .cookieadmin-poweredby { justify-self: center !important; }
}

@media (max-width: 540px) {
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .service-grid, .insights { grid-template-columns: 1fr; }
  .service-card { border-left: 1px solid var(--line); }
  .insights article { border-left: 0; border-top: 1px solid var(--line); }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form label { grid-column: 1 / -1; }
  .site-header .brand { width: calc(100vw - 70px); max-width: none; grid-template-columns: 66px minmax(0, 1fr); gap: .42rem; }
  .brand-symbol { width: 66px; }
  .brand-name { font-size: .94rem; }
  .brand-subname { font-size: .78rem; letter-spacing: .07em; }
  .brand-values { font-size: .54rem; letter-spacing: .055em; }
  .brand-motto { margin-top: .28rem; font-size: .63rem; }
  .footer-brand { width: min(350px, 100%); grid-template-columns: 76px minmax(0, 1fr); gap: .6rem; }
  .footer-brand-symbol { width: 76px; }
  .footer-brand .brand-name { font-size: 1.15rem; }
  .footer-brand .brand-subname { font-size: .94rem; }
  .footer-brand .brand-values { font-size: .62rem; }
  .cookieadmin_law_container.cookieadmin_box .cookieadmin_consent_btns { grid-template-columns: 1fr 1fr !important; }
  .cookieadmin_law_container.cookieadmin_box .cookieadmin_accept_btn { grid-column: 1 / -1 !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
