:root{
  --bg:#ffffff;
  --text:#111827;
  --muted:#4b5563;
  --line:rgba(17,24,39,.12);
  --soft:rgba(17,24,39,.04);
  --accent:#1f3a8a;
  --accent2:#c8a24a;
  --radius:18px;
  --shadow:0 10px 24px rgba(17,24,39,.08);
  --max:1120px;
}
.list{
  margin: 0;
  padding-left: 18px;
}

.list li{
  margin: 0 0 10px;
  line-height: 1.6;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--text);
  line-height:1.6;
  background-image:
    linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.22)),
    url('../bg-law.jpg');
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
}

a{color:var(--accent)}
.container{max-width:var(--max);margin:0 auto;padding:0 18px}
.section{padding:56px 0}
.section--soft{background:var(--soft)}

h1,h2,h3{line-height:1.15}
h1{font-size:clamp(2rem,3vw,3rem);margin:0 0 10px}
h2{font-size:clamp(1.35rem,2vw,1.8rem);margin:22px 0 10px}
h3{font-size:1.1rem;margin:0 0 8px}
p{margin:0 0 14px}
.small{font-size:.95rem;color:var(--muted)}
.hr{height:1px;background:var(--line);margin:18px 0}
.list{padding-left:18px;margin:0}
.list li{margin:6px 0}

/* Header */
.header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.95);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.nav{display:flex;align-items:center;justify-content:space-between;padding:14px 0;gap:14px}
.brand{
  display:flex;
  align-items:center;
  gap:16px;
  text-decoration:none;
}
.brand strong{
  font-size:1.25rem;
  font-weight:900;
  letter-spacing:.3px;
  color:var(--accent);
}
.brand span{
  display:block;
  font-size:.85rem;
  color:var(--muted);
  font-weight:600;
}
.logo{
  width:64px;
  height:64px;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(200,162,74,.55);
  box-shadow:0 10px 20px rgba(0,0,0,.10);
  display:flex;
  align-items:center;
  justify-content:center;
}

.logo img{
  max-width:80%;
  max-height:80%;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;

padding:6px;display:block}
.brand strong{letter-spacing:.2px}
.menu{display:flex;gap:12px;align-items:center}
.menu a{
  text-decoration:none;font-weight:800;font-size:.98rem;
  color:var(--text);opacity:.9;padding:8px 10px;border-radius:12px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 4px;
}
.menu a:hover{background:var(--soft);opacity:1}
.lang{
  border:1px solid var(--line);border-radius:999px;
  padding:6px 10px;text-decoration:none;font-weight:900;
  font-size:.9rem;background:rgba(255,255,255,0.9);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.burger{
  display:none;border:1px solid var(--line);background:#fff;
  border-radius:12px;padding:8px 10px;font-weight:900;
}
.mobile-panel{display:none;padding:0 0 14px}
.mobile-panel a{
  display:block;padding:10px 12px;border-radius:12px;
  text-decoration:none;font-weight:900;
}
.mobile-panel a:hover{background:var(--soft)}
@media (max-width:860px){
  .menu{display:none}
  .burger{display:inline-flex}
  .mobile-panel.open{display:block}
}

/* Hero */
.section--hero{
  padding:72px 0 54px;
  position:relative;
  overflow:hidden;
  min-height:520px;
  display:flex;
  align-items:center;
}
.section--hero > .container{position:relative}
.hero-grid{display:grid;gap:22px;grid-template-columns:1.15fr .85fr;align-items:start}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
@media (max-width:960px){
  .section--hero{min-height:0;display:block}
  .hero-grid{grid-template-columns:1fr}
}
@media (max-width:520px){
  .section--hero{padding:56px 0 36px}
}

.badge{
  display:inline-flex;gap:8px;align-items:center;
  padding:6px 10px;border:1px solid rgba(255,255,255,.22);
  border-radius:999px;font-size:.92rem;
  color:rgba(255,255,255,.96);
  background:rgba(255,255,255,.10);
  text-shadow:0 2px 10px rgba(0,0,0,.35);
}

.breadcrumb{
  font-size:.95rem;
  color:rgba(255,255,255,.90);
  margin:0 0 14px;
  text-shadow:0 2px 10px rgba(0,0,0,.35);
}
.breadcrumb a{
  color:rgba(255,255,255,.96);
  text-decoration:none;
}
.breadcrumb a:hover{text-decoration:underline}

.section--hero .container > h1,
.section--hero .container > p.small,
.section--hero .container > .small,
.section--hero .hero-grid > div:first-child > h1,
.section--hero .hero-grid > div:first-child > p,
.section--hero .hero-grid > div:first-child > p.small,
.section--hero .hero-grid > div:first-child > .small{
  color:rgba(255,255,255,.96) !important;
  text-shadow:0 2px 12px rgba(0,0,0,.42);
}
.section--hero .hero-grid > div:first-child > p,
.section--hero .hero-grid > div:first-child > p.small,
.section--hero .hero-grid > div:first-child > .small{
  font-weight:500;
}
.section--hero .hero-grid > div:first-child > h1{
  font-weight:900;
}
/* Claim sotto il titolo hero */
.section--hero .hero-grid > div:first-child > p,
.section--hero .hero-grid > div:first-child > p.small,
.section--hero .hero-grid > div:first-child > .small{
  display:inline-block;
  background:rgba(0,0,0,.25);
  padding:10px 16px 10px 20px;
  border-radius:10px;
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
  color:#fff !important;
  font-weight:500;
  position:relative;
  text-shadow:0 2px 10px rgba(0,0,0,.45);
}

/* linea dorata */
.section--hero .hero-grid > div:first-child > p::before,
.section--hero .hero-grid > div:first-child > p.small::before,
.section--hero .hero-grid > div:first-child > .small::before{
  content:"";
  position:absolute;
  left:8px;
  top:50%;
  transform:translateY(-50%);
  width:3px;
  height:70%;
  background:#c8a24a;
  border-radius:2px;
}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 14px;border-radius:14px;border:1px solid transparent;
  background:var(--accent);color:#fff;text-decoration:none;font-weight:900;
}
.btn:hover{filter:brightness(.98)}
.btn--secondary{
  background:#fff;
  color:var(--text);
  border-color:var(--line);
}
.btn--secondary:hover{background:var(--soft)}

.hero-card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;background:#fff;box-shadow:var(--shadow);
}
@media (min-width:961px){
  .hero-card.hero-card--offset{margin-top:74px}
}

/* KPI / cards */
.kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:12px}
.kpi{
  border:1px solid var(--line);
  border-radius:14px;padding:12px;background:#fff;
}
.kpi strong{display:block;font-size:1.05rem;color:var(--text)}
.kpi span{color:var(--muted);font-size:.92rem}

.grid{display:grid;gap:16px}
.grid--3{grid-template-columns:repeat(3,1fr)}
.grid--2{grid-template-columns:repeat(2,1fr)}
@media (max-width:980px){
  .grid--3,.grid--2{grid-template-columns:1fr}
}

.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  background:rgba(255,255,255,.94);
  text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
  border-color:rgba(17,24,39,.18);
}
.card:focus-visible{outline:3px solid rgba(31,58,138,.35);outline-offset:3px}
.card .cta{font-weight:900;color:var(--accent);display:inline-flex;gap:8px;align-items:center}

.topic-img{
  width:100%;
  aspect-ratio:16/9;
  max-height:280px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--line);
  background:linear-gradient(135deg, rgba(31,58,138,.12), rgba(200,162,74,.10));
}
@media (max-width:520px){ .topic-img{max-height:220px} }
.topic-body{margin-top:12px}

.portrait-img{
  width:100%;
  height:auto;
  object-fit:contain;
  border-radius:14px;
  border:1px solid var(--line);
  background:linear-gradient(135deg, rgba(31,58,138,.12), rgba(200,162,74,.10));
  filter:contrast(1.05) saturate(1.05);
}
@media (max-width:520px){ .portrait-img{height:auto} }

/* Section headings outside cards */
.section > .container > h1,
.section > .container > h2,
.section > .container > p.small,
.section > .container > .small,
.section > .container > header > h1,
.section > .container > header > h2,
.section > .container > header > p.small,
.section > .container > header > .small{
  color:rgba(255,255,255,.96) !important;
  text-shadow:0 2px 12px rgba(0,0,0,.42);
}
.section > .container > p.small,
.section > .container > .small,
.section > .container > header > p.small,
.section > .container > header > .small{
  font-weight:500;
}

/* Keep text inside white boxes dark */
.card, .card *,
.hero-card, .hero-card *,
.kpi, .kpi *,
.faq, .faq *,
.cta-box, .cta-box *,
.featured-cta, .featured-cta *{
  color:var(--text) !important;
  text-shadow:none !important;
}
.card .small,
.hero-card .small,
.kpi span,
.faq p.small,
.cta-box p.small,
.featured-cta .small{
  color:var(--muted) !important;
}
.hero-card a,
.card a,
.featured-cta a,
.faq a,
.cta-box a{
  color:var(--accent) !important;
}
/* fix: keep button text visible inside white sections */
.hero-card .btn,
.hero-card .btn:visited,
.card .btn,
.card .btn:visited,
.featured-cta .btn,
.featured-cta .btn:visited,
.cta-box .btn,
.cta-box .btn:visited,
.cookie .btn,
.cookie .btn:visited{
  color:#fff !important;
}

/* secondary white buttons keep dark text */
.hero-card .btn--secondary,
.hero-card .btn--secondary:visited,
.card .btn--secondary,
.card .btn--secondary:visited,
.featured-cta .btn--secondary,
.featured-cta .btn--secondary:visited,
.cta-box .btn--secondary,
.cta-box .btn--secondary:visited{
  color:var(--text) !important;
}
.btn, .btn *{text-shadow:none !important}

/* FAQ / CTA box */
.faq{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px 14px;
  margin:10px 0;
  background:#fff;
}
.faq summary{cursor:pointer;font-weight:900}
.cta-box{
  margin-top:18px;
  padding:18px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
}

/* Featured CTA */
.featured-cta{
  margin-top:18px;
  padding:18px;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.92);
  box-shadow:var(--shadow);
  text-align:center;
}
.featured-cta h3{margin-bottom:6px}
.featured-cta .btn,
.featured-cta .btn.btn--secondary{
  background:var(--accent) !important;
  color:#fff !important;
  border-color:transparent !important;
  opacity:1 !important;
}
.featured-cta .btn:hover{filter:brightness(.98)}

/* Footer */
.footer{border-top:1px solid var(--line);padding:22px 0;background:#fff}
.footer a{text-decoration:none}
.footer a:hover{text-decoration:underline}
.footer-compact{
  display:flex;align-items:center;justify-content:center;
  gap:12px;flex-wrap:wrap;
}
.footer-compact a{font-weight:700}
@media (min-width:700px){
  .footer-compact{justify-content:space-between}
}

/* Forms */
.form{display:grid;gap:12px;max-width:720px}
.field{display:grid;gap:6px}
input, textarea{
  font:inherit;padding:12px 12px;border-radius:14px;
  border:1px solid var(--line);background:#fff;
}
textarea{min-height:140px;resize:vertical}
.checkline{display:flex;gap:10px;align-items:flex-start}
.checkline input{margin-top:5px}

.form-consent{
  border-top:1px solid var(--line);
  padding-top:12px;
  font-size:12.5px;
  color:rgba(17,24,39,.92);
}
.form-consent input{margin-top:3px}
.form-consent .small{color:rgba(17,24,39,.78)}
.form-consent a{color:var(--accent)}

/* Privacy page readability */
.card h2{margin-top:18px}
.card h2:first-child{margin-top:0}

/* Cookie banner */
.cookie{
  position:fixed;left:16px;right:16px;bottom:16px;z-index:100;
  max-width:var(--max);margin:0 auto;border:1px solid var(--line);
  border-radius:18px;background:#fff;box-shadow:var(--shadow);
  padding:12px;display:none;
}
.cookie.open{display:block}
.cookie-row{
  display:flex;gap:12px;align-items:flex-start;
  justify-content:space-between;flex-wrap:wrap;
}
.cookie p{margin:0}
.cookie-actions{display:flex;gap:10px;flex-wrap:wrap}
.cookie .btn{
  padding:9px 12px;border-radius:14px;opacity:1 !important;
}
body.cookie-open{padding-bottom:120px}
@media (max-width:520px){
  body.cookie-open{padding-bottom:160px}
}
/* cookie banner buttons fix */
.cookie .btn--secondary{
  background:#fff !important;
  color:var(--text) !important;
  border:1px solid var(--line) !important;
}

.cookie .btn--secondary:hover{
  background:var(--soft) !important;
}

.cookie .btn{
  color:#fff !important;
}
/* FIX definitivo bottone "Rifiuta" cookie banner */
.cookie .btn.btn--secondary,
.cookie .btn.btn--secondary:link,
.cookie .btn.btn--secondary:visited{
  background: #fff !important;
  color: #111827 !important;
  border: 1px solid rgba(17,24,39,.12) !important;
  opacity: 1 !important;
}

.cookie .btn.btn--secondary:hover{
  background: rgba(17,24,39,.04) !important;
  color: #111827 !important;
}

.cookie .btn.btn--secondary *{
  color: #111827 !important;
  text-shadow: none !important;
}
/* COOKIE BANNER BUTTON FIX */

.cookie .btn{
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
}

.cookie .btn--secondary{
  background: #fff !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
}

.cookie .btn--secondary:hover{
  background: var(--soft) !important;
}

/* Blog Hero Section - NO Background */
.section--hero {
    margin: 20px 0;
    padding: 40px;
}

.section--hero .breadcrumb {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    display: inline-block;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section--hero .breadcrumb a {
    color: #0073b1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.section--hero .breadcrumb a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Applica lo stesso blu a tutti i titoli delle pagine blog */
.main-content h1,
.blog-article__content h1,
.blog-article h1 {
    color: #2c4f7c !important; /* Blu più scuro e meno brillante - RGB: 44,79,124 */
}

/* Applica anche alle pagine EN */
.blog-en .section--hero h1,
.blog-en .section--hero .small {
    color: #2c4f7c !important; /* Blu più scuro e meno brillante - RGB: 44,79,124 */
}

.blog-en .main-content h1,
.blog-en .blog-article__content h1,
.blog-en .blog-article h1 {
  color: #2c4f7c !important; /* Blu più scuro e meno brillante - RGB: 44,79,124 */
}

/* Forza anche per tutti i .small dentro section--hero */
.section--hero > .container > .small {
    color: #2c4f7c !important; /* Blu più scuro e meno brillante - RGB: 44,79,124 */
}

/* Blog Grid Container - NO Background */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

/* Blog Pagination - NO Background */
.blog-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-pagination-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.blog-pagination .btn {
  padding: 10px 20px;
  margin: 0 8px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.blog-pagination .btn--primary {
  background: var(--accent);
  color: #000000 !important; /* Testo nero per visibilità */
  border: none;
}

.blog-pagination .btn--primary:hover {
  background: #172e6d;
  transform: translateY(-2px);
}

.blog-pagination .btn--secondary {
  background: #f8f9fa;
  color: var(--accent);
  border: 1px solid #dee2e6;
}

.blog-pagination .btn--secondary:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.pagination-info {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.linkedin-btn {
  background: #0077b5 !important;
  color: white !important;
  border: none !important;
}

.linkedin-btn:hover {
  background: #005885 !important;
}

/* Blog Article Content - White Background */
.blog-article__content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-article__content h2 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073b1;
}

.blog-article__content h3 {
    color: #34495e;
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 15px 0;
}

.blog-article__content p {
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.blog-article__content ul,
.blog-article__content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-article__content li {
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.blog-article__content strong {
    color: #0073b1;
    font-weight: 600;
}

.blog-article__content em {
    color: #7f8c8d;
    font-style: italic;
}

/* Blog Article Meta - White Background */
.blog-article__meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 20px 0;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: fit-content;
}

.blog-article__meta .date {
    color: #2c3e50;
    font-size: 15px;
    font-weight: 600;
}

.blog-article__meta .category {
    background: #0073b1;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-article__meta .author {
    color: #34495e;
    font-size: 14px;
    font-weight: 500;
}

/* Blog Navigation - White Background */
.blog-article__navigation {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-article__navigation .btn {
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-article__navigation .btn--secondary {
    background: #f8f9fa;
    color: #0073b1;
    border: 1px solid #dee2e6;
}

.blog-article__navigation .btn--secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Blog Grid - Fixed Size */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

/* Firefox-specific fixes for blog cards */
@-moz-document url-prefix() {
    .blog-pillow__title {
        margin: 0 0 2px 0 !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        line-height: 1.0 !important;
        display: block !important;
    }
    
    .blog-pillow__title * {
        margin: 0 !important;
        padding: 0 !important;
        font-size: inherit !important;
        font-weight: inherit !important;
        line-height: inherit !important;
    }
    
    .blog-pillow h3,
    .blog-pillow h3 * {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        line-height: 1.0 !important;
    }
}

/* Universal reset for blog cards - Firefox fix */
.blog-pillow h1,
.blog-pillow h2,
.blog-pillow h3,
.blog-pillow h4,
.blog-pillow h5,
.blog-pillow h6 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    line-height: 1.0 !important;
    display: block !important;
}

.blog-pillow h1 *,
.blog-pillow h2 *,
.blog-pillow h3 *,
.blog-pillow h4 *,
.blog-pillow h5 *,
.blog-pillow h6 * {
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

/* Blog Pillow Card - White Background - Ultra Compact */
.blog-pillow {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-pillow:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.blog-pillow__image {
  height: 140px; /* Ridotto drasticamente da 160px */
  overflow: hidden;
}

.blog-pillow__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-pillow:hover .blog-pillow__image img {
  transform: scale(1.05);
}

.blog-pillow__content {
  padding: 8px; /* Ridotto drasticamente da 12px */
  background: rgba(255, 255, 255, 0.95);
}

.blog-pillow__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px !important; /* Spazio adeguato */
  font-size: 0.85rem !important; /* Dimensione standard sito */
}

.blog-pillow__category {
  background: var(--accent);
  color: white;
  padding: 2px 6px !important; /* Dimensione standard sito */
  border-radius: 8px; /* Dimensione standard sito */
  font-size: 0.7rem !important; /* Dimensione standard sito */
  font-weight: 500;
}

.blog-pillow__date {
  color: var(--muted);
  font-size: 0.75rem !important; /* Dimensione standard sito */
}

.blog-pillow__title {
  margin: 0 0 6px 0 !important; /* Forzato */
  font-size: 1rem !important; /* Forzato - dimensione standard sito */
  font-weight: 600 !important; /* Forzato */
  line-height: 1.2 !important; /* Forzato */
}

.blog-pillow__title a {
  color: var(--text) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: color 0.3s ease;
}

.blog-pillow__title a:hover {
  color: var(--accent) !important;
}

.blog-pillow__description {
  color: var(--muted);
  font-size: 0.9rem !important; /* Dimensione standard sito */
  line-height: 1.3 !important; /* Leggibilità migliore */
  margin: 0 0 8px 0 !important; /* Spazio adeguato */
}

.blog-pillow__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px !important; /* Spazio adeguato */
  border-top: 1px solid var(--line);
}

.blog-pillow__author {
  color: var(--muted);
  font-size: 0.8rem !important; /* Dimensione standard sito */
  font-weight: 500;
}

.blog-pillow__link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem !important; /* Dimensione standard sito */
  transition: all 0.3s ease;
}

.blog-pillow__link:hover {
  color: #172e6d;
  transform: translateX(2px);
}

.blog-pillow__footer .btn--primary {
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  font-size: 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.blog-pillow__footer .btn--primary:hover {
  background: #1e2f6f;
}

/* Blog Article Page Styles */
.blog-article {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.blog-article__header {
    margin-bottom: 32px;
    text-align: center;
}

.blog-article__header h1 {
    margin-bottom: 16px;
    color: var(--text);
}

.blog-article__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--muted);
    flex-wrap: wrap;
}

.blog-article__category {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-article__image {
    margin-bottom: 32px;
    text-align: center;
}

.blog-article__image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.blog-article__content {
    margin-bottom: 32px;
    line-height: 1.7;
}

.blog-article__content h2 {
    margin: 32px 0 16px;
    color: var(--accent);
}

.blog-article__content h3 {
    margin: 24px 0 12px;
    color: var(--text);
}

.blog-article__content p {
    margin-bottom: 16px;
}

.blog-article__navigation {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.blog-article__navigation .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-article__navigation .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Blog Pagination - Fixed Layout */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.blog-pagination .btn {
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  margin: 0;
  min-width: auto;
  white-space: nowrap;
}

.blog-pagination .btn--primary {
  background: var(--accent);
  color: #000000 !important; /* Testo nero per visibilità */
}

.blog-pagination .btn--primary:hover {
  background: #172e6d;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.blog-pagination .btn--secondary {
  background: var(--soft);
  color: var(--text);
  border: 1px solid var(--line);
}

.blog-pagination .btn--secondary:hover {
  background: var(--line);
  transform: translateY(-2px);
}

.blog-pagination .btn[style*="background: #f8f9fa"] {
  background: #f8f9fa !important;
  color: #0073b1 !important;
  border: 1px solid #dee2e6 !important;
}

.blog-pagination .btn[style*="background: #f8f9fa"]:hover {
  background: #e9ecef !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pagination-info {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  margin: 0 16px;
}

/* Blog Pagination Links Container */
.blog-pagination-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.blog-pagination-links .btn {
  margin: 0;
}

/* LinkedIn Button Special Style */
.blog-pagination .linkedin-btn {
  background: #0077b5 !important;
  color: white !important;
  border: none !important;
  padding: 12px 20px !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

.blog-pagination .linkedin-btn:hover {
  background: #005885 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0,119,181,0.3) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-pagination {
    flex-direction: column;
    gap: 16px;
  }
  
  .blog-pagination .btn {
    width: 100%;
    justify-content: center;
    max-width: 300px;
  }
  
  .blog-pagination-links {
    flex-direction: column;
    width: 100%;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .blog-pillow {
    max-width: 100%;
  }
  
  .blog-pillow__content {
    padding: 16px;
  }
  
  .blog-pillow__title {
    font-size: 1rem;
  }
  
  .blog-pillow__description {
    font-size: 0.85rem;
  }
  
  .blog-pillow__meta {
    font-size: 0.8rem;
  }
  
  .blog-pillow__category {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
  
  .blog-pillow__date {
    font-size: 0.75rem;
  }
  
  .blog-pillow__author {
    font-size: 0.75rem;
  }
  
  .blog-pillow__link {
    font-size: 0.8rem;
  }
  
  .blog-pagination {
    flex-direction: column;
    gap: 16px;
  }
  
  .blog-pagination-links {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .blog-pagination .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
  
  .pagination-info {
    order: -1;
    margin-bottom: 8px;
  }
}

/* Blog category filters sync IT/EN */
.blog-category-filters{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  margin:6px 0 28px;
}
.blog-category-filters .chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.95);
  border:1px solid rgba(15,23,42,.10);
  color:#1f2a44;
  text-decoration:none;
  font-weight:500;
  line-height:1;
  white-space:nowrap;
  box-shadow:0 4px 14px rgba(15,23,42,.06);
}
.blog-category-filters .chip.is-active{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}
@media (max-width:768px){
  .blog-category-filters{gap:10px;margin:0 0 22px}
  .blog-category-filters .chip{min-height:38px;padding:9px 14px;font-size:14px}
}


/* Blog hero isolated fix */

/* =========================================================
   LeFLEX - Rebuilt internal page hero/article system
   Clean replacement for old aggressive global hero rules
   Covers: Blog, Blog-EN, Chi siamo, About, Contatti/Contacts,
   Aree/Areas, internal area pages, Privacy pages, blog articles.
   ========================================================= */

:root{
  --lfx-hero-title-bg: rgba(255,255,255,.95);
  --lfx-hero-title-border: #e0e0e0;
  --lfx-hero-title-text: #2c4f7c;
  --lfx-hero-title-shadow: 0 10px 34px rgba(0,0,0,.12);
  --lfx-hero-subtitle-shadow: 0 6px 20px rgba(0,0,0,.08);
}

/* Base hero keeps existing background system but uses cleaner spacing */
.section.section--hero{
  padding: 72px 0 54px;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.section.section--hero > .container,
.lfx-about-hero .lfx-about-hero__inner,
.blog-hero-fix .blog-hero-inner{
  position: relative;
}

/* Home hero stays independent */
.section.section--hero .hero-grid{
  display: grid;
  gap: 22px;
  grid-template-columns: 1.15fr .85fr;
  align-items: start;
}

/* Shared breadcrumb pill for internal pages */
.section.section--hero > .container > .breadcrumb,
.lfx-about-hero .breadcrumb,
.blog-hero-fix .breadcrumb,
.main-content > .section:first-child > .container > .breadcrumb{
  display: inline-block;
  margin: 0 0 18px;
  padding: 10px 16px;
  font-size: .95rem;
  color: var(--lfx-hero-title-text) !important;
  text-shadow: none !important;
  background: rgba(255,255,255,.95);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.section.section--hero > .container > .breadcrumb a,
.lfx-about-hero .breadcrumb a,
.blog-hero-fix .breadcrumb a,
.main-content > .section:first-child > .container > .breadcrumb a{
  color: #1493ff !important;
  text-decoration: none;
}

.section.section--hero > .container > .breadcrumb a:hover,
.lfx-about-hero .breadcrumb a:hover,
.blog-hero-fix .breadcrumb a:hover,
.main-content > .section:first-child > .container > .breadcrumb a:hover{
  text-decoration: underline;
}

/* Shared title pill system for internal heroes */
.section.section--hero > .container > h1,
.lfx-about-title-pill > h1,
.blog-title-pill > h1,
.main-content > .section:first-child > .container > h1{
  display: table;
  width: auto;
  max-width: min(100%, 1100px);
  margin: 0 auto 18px;
  padding: 22px 34px;
  text-align: center;
  color: var(--lfx-hero-title-text) !important;
  text-shadow: none !important;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.5px;
  font-weight: 800;
  background: var(--lfx-hero-title-bg);
  border-radius: 22px;
  border: 2px solid var(--lfx-hero-title-border);
  box-shadow: var(--lfx-hero-title-shadow);
}

/* Shared subtitle pill for internal heroes that actually have one */
.section.section--hero > .container > p.small,
.section.section--hero > .container > .small,
.lfx-about-subtitle-pill > .small,
.blog-subtitle-pill > .small{
  display: table;
  width: auto;
  max-width: min(100%, 980px);
  margin: 0 auto;
  padding: 16px 26px;
  text-align: center;
  color: var(--lfx-hero-title-text) !important;
  text-shadow: none !important;
  font-size: 1.08rem !important;
  line-height: 1.55;
  font-weight: 500;
  background: rgba(255,255,255,.95);
  border-radius: 18px;
  border: 1px solid var(--lfx-hero-title-border);
  box-shadow: var(--lfx-hero-subtitle-shadow);
}

/* Align dedicated wrappers cleanly without affecting pages that do not use them */
.lfx-about-hero .lfx-about-hero__inner,
.blog-hero-fix .blog-hero-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lfx-about-hero .breadcrumb,
.blog-hero-fix .breadcrumb{
  align-self: flex-start;
}

/* Contacts and similar pages look better with subtitle pill slightly narrower */
.section.section--hero > .container > h1 + p.small,
.section.section--hero > .container > h1 + .small{
  max-width: min(100%, 940px);
}

/* Article pages in blog/blog-en: first section title cleaned up, not oversized */
.main-content > .section:first-child > .container > h1{
  margin-bottom: 14px;
  padding: 18px 28px;
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  border-radius: 20px;
}

.main-content > .section:first-child > .container > .breadcrumb{
  margin-bottom: 16px;
}

/* Keep article meta readable after rebuilt title system */
.blog-article__meta{
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

/* Home page protection: restore original hero feel and prevent pills there */
.section.section--hero .hero-grid > div:first-child > h1{
  display: block;
  width: auto;
  max-width: none;
  margin: 0 0 12px;
  padding: 0;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: rgba(255,255,255,.96) !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.42) !important;
  font-size: clamp(2rem,3vw,3rem);
  font-weight: 900;
}

.section.section--hero .hero-grid > div:first-child > p.small,
.section.section--hero .hero-grid > div:first-child > .small{
  display: inline-block;
  width: auto;
  max-width: 720px;
  margin: 0;
  padding: 10px 16px 10px 20px;
  text-align: left;
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.45) !important;
  font-size: 1rem !important;
  line-height: 1.45;
  font-weight: 500;
  background: rgba(0,0,0,.25);
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  position: relative;
}

.section.section--hero .hero-grid > div:first-child > p.small::before,
.section.section--hero .hero-grid > div:first-child > .small::before{
  content:"";
  position:absolute;
  left:8px;
  top:50%;
  transform:translateY(-50%);
  width:3px;
  height:70%;
  background:#c8a24a;
  border-radius:2px;
}

/* Mobile */
@media (max-width: 960px){
  .section.section--hero{
    min-height: 0;
    display: block;
  }
  .section.section--hero .hero-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px){
  .section.section--hero > .container > .breadcrumb,
  .lfx-about-hero .breadcrumb,
  .blog-hero-fix .breadcrumb,
  .main-content > .section:first-child > .container > .breadcrumb{
    margin-bottom: 16px;
    padding: 9px 14px;
  }

  .section.section--hero > .container > h1,
  .lfx-about-title-pill > h1,
  .blog-title-pill > h1,
  .main-content > .section:first-child > .container > h1{
    padding: 18px 24px;
    border-radius: 20px;
    max-width: 96%;
  }

  .section.section--hero > .container > p.small,
  .section.section--hero > .container > .small,
  .lfx-about-subtitle-pill > .small,
  .blog-subtitle-pill > .small{
    max-width: 96%;
    padding: 14px 18px;
    border-radius: 16px;
  }

  .lfx-about-hero .breadcrumb,
  .blog-hero-fix .breadcrumb{
    align-self: center;
  }
}

@media (max-width: 520px){
  .section.section--hero{
    padding: 56px 0 36px;
  }

  .section.section--hero > .container > h1,
  .lfx-about-title-pill > h1,
  .blog-title-pill > h1,
  .main-content > .section:first-child > .container > h1{
    padding: 16px 20px;
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .section.section--hero > .container > p.small,
  .section.section--hero > .container > .small,
  .lfx-about-subtitle-pill > .small,
  .blog-subtitle-pill > .small{
    font-size: 1rem !important;
    line-height: 1.45;
  }
}


/* === Unified internal hero style: clean, white, no pillows === */
.section.section--hero > .container,
.lfx-about-hero .lfx-about-hero__inner,
.blog-hero-fix .blog-hero-inner,
.main-content > .section:first-child > .container{
  position:relative;
  text-align:left;
}

.section.section--hero > .container > .breadcrumb,
.lfx-about-hero .breadcrumb,
.blog-hero-fix .breadcrumb,
.main-content > .section:first-child > .container > .breadcrumb{
  display:block;
  margin:0 0 14px;
  padding:0;
  background:none;
  border:0;
  border-radius:0;
  box-shadow:none;
  color:rgba(255,255,255,.88) !important;
  text-shadow:0 2px 10px rgba(0,0,0,.26) !important;
  font-size:.98rem;
  font-weight:400;
}

.section.section--hero > .container > .breadcrumb a,
.lfx-about-hero .breadcrumb a,
.blog-hero-fix .breadcrumb a,
.main-content > .section:first-child > .container > .breadcrumb a{
  color:rgba(255,255,255,.98) !important;
  text-decoration:none;
}

.section.section--hero > .container > .breadcrumb a:hover,
.lfx-about-hero .breadcrumb a:hover,
.blog-hero-fix .breadcrumb a:hover,
.main-content > .section:first-child > .container > .breadcrumb a:hover{
  text-decoration:underline;
}

.section.section--hero > .container > h1,
.lfx-about-title-pill > h1,
.blog-title-pill > h1,
.main-content > .section:first-child > .container > h1{
  display:block;
  width:auto;
  max-width:min(100%, 980px);
  margin:0 0 12px;
  padding:0;
  text-align:left;
  background:none;
  border:0;
  border-radius:0;
  box-shadow:none;
  color:rgba(255,255,255,.98) !important;
  text-shadow:0 3px 16px rgba(0,0,0,.30) !important;
  font-size:clamp(2.35rem,4vw,3.9rem);
  line-height:1.08;
  letter-spacing:-.4px;
  font-weight:500;
}

.section.section--hero > .container > p.small,
.section.section--hero > .container > .small,
.lfx-about-subtitle-pill > .small,
.blog-subtitle-pill > .small,
.main-content > .section:first-child > .container > p.small,
.main-content > .section:first-child > .container > .small{
  display:block;
  width:auto;
  max-width:min(100%, 880px);
  margin:0;
  padding:0;
  text-align:left;
  background:none;
  border:0;
  border-radius:0;
  box-shadow:none;
  color:rgba(255,255,255,.92) !important;
  text-shadow:0 2px 12px rgba(0,0,0,.26) !important;
  font-size:1.08rem !important;
  line-height:1.55;
  font-weight:400;
}

.lfx-about-hero .lfx-about-hero__inner,
.blog-hero-fix .blog-hero-inner{
  display:block;
  text-align:left;
}

.lfx-about-hero .breadcrumb,
.blog-hero-fix .breadcrumb{
  align-self:auto;
}

.section.section--hero > .container > h1 + p.small,
.section.section--hero > .container > h1 + .small{
  max-width:min(100%, 880px);
}

.main-content > .section:first-child > .container > h1{
  margin-bottom:10px;
  font-size:clamp(2rem,3.3vw,3rem);
}

/* Keep home hero untouched */
.section.section--hero .hero-grid > div:first-child > h1{
  color:rgba(255,255,255,.96) !important;
  text-shadow:0 2px 12px rgba(0,0,0,.42) !important;
  font-weight:900;
}

.section.section--hero .hero-grid > div:first-child > p.small,
.section.section--hero .hero-grid > div:first-child > .small{
  color:#fff !important;
  text-shadow:0 2px 10px rgba(0,0,0,.45) !important;
  font-weight:500;
  background:rgba(0,0,0,.25);
  padding:10px 16px 10px 20px;
  border-radius:10px;
}

@media (max-width: 768px){
  .section.section--hero > .container > h1,
  .lfx-about-title-pill > h1,
  .blog-title-pill > h1,
  .main-content > .section:first-child > .container > h1{
    font-size:clamp(2rem,7.2vw,2.9rem);
    margin-bottom:10px;
  }

  .section.section--hero > .container > p.small,
  .section.section--hero > .container > .small,
  .lfx-about-subtitle-pill > .small,
  .blog-subtitle-pill > .small,
  .main-content > .section:first-child > .container > p.small,
  .main-content > .section:first-child > .container > .small{
    font-size:1rem !important;
    line-height:1.5;
  }
}




/* === Final internal-page heading standard: match consulenza-online title exactly === */
body::before{
  background: linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.22)), var(--hero-bg) center/cover no-repeat fixed !important;
}

/* Internal hero containers only - homepage hero remains independent because it has no direct h1 */
.section.section--hero > .container,
.lfx-about-hero .lfx-about-hero__inner,
.blog-hero-fix .blog-hero-inner,
.main-content > .section:first-child > .container{
  text-align:left !important;
}

/* Breadcrumb: plain text, no pillow */
.section.section--hero > .container > .breadcrumb,
.lfx-about-hero .breadcrumb,
.blog-hero-fix .breadcrumb,
.main-content > .section:first-child > .container > .breadcrumb{
  display:block !important;
  margin:0 0 14px !important;
  padding:0 !important;
  background:none !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  text-shadow:none !important;
  font-size:.98rem !important;
  line-height:1.35 !important;
  font-weight:400 !important;
  letter-spacing:0 !important;
  color:var(--muted) !important;
}

.section.section--hero > .container > .breadcrumb a,
.lfx-about-hero .breadcrumb a,
.blog-hero-fix .breadcrumb a,
.main-content > .section:first-child > .container > .breadcrumb a{
  color:var(--accent) !important;
  text-decoration:none !important;
  font-weight:400 !important;
}

.section.section--hero > .container > .breadcrumb a:hover,
.lfx-about-hero .breadcrumb a:hover,
.blog-hero-fix .breadcrumb a:hover,
.main-content > .section:first-child > .container > .breadcrumb a:hover{
  text-decoration:underline !important;
}

/* Titles: exactly like the clean consulenza-online page - no box, no shadow, no fake bold */
.section.section--hero > .container > h1,
.lfx-about-title-pill > h1,
.blog-title-pill > h1,
.main-content > .section:first-child > .container > h1{
  display:block !important;
  width:auto !important;
  max-width:none !important;
  margin:0 0 10px !important;
  padding:0 !important;
  text-align:left !important;
  background:none !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  text-shadow:none !important;
  font-size:clamp(2rem,3vw,3rem) !important;
  line-height:1.15 !important;
  letter-spacing:0 !important;
  font-weight:400 !important;
}

/* Subtitles: same clean style, no pillow */
.section.section--hero > .container > p.small,
.section.section--hero > .container > .small,
.lfx-about-subtitle-pill > .small,
.blog-subtitle-pill > .small,
.main-content > .section:first-child > .container > p.small,
.main-content > .section:first-child > .container > .small{
  display:block !important;
  width:auto !important;
  max-width:820px !important;
  margin:0 !important;
  padding:0 !important;
  text-align:left !important;
  background:none !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  text-shadow:none !important;
  font-size:1rem !important;
  line-height:1.6 !important;
  font-weight:400 !important;
  letter-spacing:0 !important;
  color:var(--muted) !important;
}

/* Remove legacy special wrappers' box behavior if still present */
.lfx-about-title-pill,
.blog-title-pill,
.lfx-about-subtitle-pill,
.blog-subtitle-pill{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  background:none !important;
  border:0 !important;
  box-shadow:none !important;
}

/* Do not affect homepage hero copy */
.section.section--hero .hero-grid > div:first-child > h1{
  font-weight:900 !important;
}

.section.section--hero .hero-grid > div:first-child > p.small,
.section.section--hero .hero-grid > div:first-child > .small{
  font-weight:500 !important;
}

@media (max-width: 768px){
  .section.section--hero > .container > h1,
  .lfx-about-title-pill > h1,
  .blog-title-pill > h1,
  .main-content > .section:first-child > .container > h1{
    font-size:clamp(2rem,7vw,2.75rem) !important;
  }

  .section.section--hero > .container > .breadcrumb,
  .lfx-about-hero .breadcrumb,
  .blog-hero-fix .breadcrumb,
  .main-content > .section:first-child > .container > .breadcrumb{
    font-size:.95rem !important;
  }
}


/* === FINAL AUTHORITATIVE INTERNAL PAGE HEADINGS === */
/* Master reference: consulenza-online / online-consultation */

main > .section:first-child{
  padding:56px 0 26px !important;
}

main > .section:first-child > .container,
.main-content > .section:first-child > .container{
  text-align:left !important;
}

main > .section:first-child > .container > .breadcrumb,
.main-content > .section:first-child > .container > .breadcrumb{
  display:block !important;
  margin:0 0 14px !important;
  padding:0 !important;
  background:none !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  color:var(--muted) !important;
  text-shadow:none !important;
  font-size:.95rem !important;
  font-weight:400 !important;
  line-height:1.45 !important;
}

main > .section:first-child > .container > .breadcrumb a,
.main-content > .section:first-child > .container > .breadcrumb a{
  color:var(--accent) !important;
  text-decoration:none !important;
  font-weight:400 !important;
}

main > .section:first-child > .container > .breadcrumb a:hover,
.main-content > .section:first-child > .container > .breadcrumb a:hover{
  text-decoration:underline !important;
}

main > .section:first-child > .container > h1,
main > .section:first-child > .container > header > h1,
.main-content > .section:first-child > .container > h1,
.main-content > .section:first-child > .container > header > h1,
.blog-title-pill > h1,
.lfx-about-title-pill > h1{
  display:block !important;
  margin:0 0 10px !important;
  padding:0 !important;
  max-width:none !important;
  background:none !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  color:var(--text) !important;
  text-shadow:none !important;
  font-size:clamp(2rem,3vw,3rem) !important;
  line-height:1.15 !important;
  letter-spacing:0 !important;
  font-weight:400 !important;
  text-align:left !important;
}

main > .section:first-child > .container > p.small,
main > .section:first-child > .container > .small,
main > .section:first-child > .container > header > p.small,
main > .section:first-child > .container > header > .small,
.main-content > .section:first-child > .container > p.small,
.main-content > .section:first-child > .container > .small,
.main-content > .section:first-child > .container > header > p.small,
.main-content > .section:first-child > .container > header > .small,
.blog-subtitle-pill > .small,
.lfx-about-subtitle-pill > .small{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  max-width:860px !important;
  background:none !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  color:var(--muted) !important;
  text-shadow:none !important;
  font-size:1rem !important;
  line-height:1.6 !important;
  font-weight:400 !important;
  text-align:left !important;
}

/* Neutralize legacy hero wrappers if still present */
.blog-title-pill,.blog-subtitle-pill,.lfx-about-title-pill,.lfx-about-subtitle-pill,.blog-hero-inner,.lfx-about-hero__inner{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  background:none !important;
  border:0 !important;
  box-shadow:none !important;
  text-align:left !important;
}

/* Keep homepage hero unchanged */
.section.section--hero .hero-grid > div:first-child > h1{
  color:rgba(255,255,255,.96) !important;
  text-shadow:0 2px 12px rgba(0,0,0,.42) !important;
  font-weight:900 !important;
}
.section.section--hero .hero-grid > div:first-child > p.small,
.section.section--hero .hero-grid > div:first-child > .small{
  color:#fff !important;
  text-shadow:0 2px 10px rgba(0,0,0,.45) !important;
  font-weight:500 !important;
}

@media (max-width:768px){
  main > .section:first-child{padding:42px 0 18px !important;}
  main > .section:first-child > .container > h1,
  main > .section:first-child > .container > header > h1,
  .main-content > .section:first-child > .container > h1,
  .main-content > .section:first-child > .container > header > h1,
  .blog-title-pill > h1,
  .lfx-about-title-pill > h1{
    font-size:clamp(2rem,7vw,2.6rem) !important;
  }
}


/* === FINAL OVERRIDE: internal page headings like consultation, white and left-aligned === */
body{
  background-image:
    linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.22)),
    url('../bg-law.jpg') !important;
  background-size:cover !important;
  background-position:center !important;
  background-attachment:fixed !important;
}

body::before{
  content:none !important;
  background:none !important;
}

/* Internal pages only: first section inside main. Homepage is unaffected because its hero has no direct breadcrumb/h1/header in the container. */
main > .section:first-child > .container{
  text-align:left !important;
}

main > .section:first-child > .container > .breadcrumb{
  display:block !important;
  margin:0 0 12px !important;
  padding:0 !important;
  background:none !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  text-shadow:none !important;
  color:#ffffff !important;
  font-size:.98rem !important;
  line-height:1.35 !important;
  font-weight:400 !important;
  letter-spacing:0 !important;
}

main > .section:first-child > .container > .breadcrumb a{
  color:#ffffff !important;
  text-decoration:none !important;
  font-weight:400 !important;
}

main > .section:first-child > .container > .breadcrumb a:hover{
  text-decoration:underline !important;
}

main > .section:first-child > .container > h1,
main > .section:first-child > .container > header > h1{
  display:block !important;
  width:auto !important;
  max-width:none !important;
  margin:0 0 10px !important;
  padding:0 !important;
  background:none !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  text-shadow:none !important;
  text-align:left !important;
  color:#ffffff !important;
  font-size:clamp(2rem,3vw,3rem) !important;
  line-height:1.15 !important;
  letter-spacing:0 !important;
  font-weight:700 !important;
}

main > .section:first-child > .container > p.small,
main > .section:first-child > .container > .small,
main > .section:first-child > .container > header > p.small,
main > .section:first-child > .container > header > .small{
  display:block !important;
  width:auto !important;
  max-width:820px !important;
  margin:0 !important;
  padding:0 !important;
  background:none !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  text-shadow:none !important;
  text-align:left !important;
  color:#ffffff !important;
  font-size:1rem !important;
  line-height:1.6 !important;
  font-weight:400 !important;
  letter-spacing:0 !important;
}

/* Neutralize any leftover legacy wrappers used in old fixes */
.lfx-about-title-pill,
.blog-title-pill,
.lfx-about-subtitle-pill,
.blog-subtitle-pill,
.blog-hero-fix .blog-hero-inner,
.lfx-about-hero .lfx-about-hero__inner{
  text-align:left !important;
  background:none !important;
  border:0 !important;
  box-shadow:none !important;
}

.lfx-about-title-pill > h1,
.blog-title-pill > h1,
.lfx-about-subtitle-pill > .small,
.blog-subtitle-pill > .small{
  color:#ffffff !important;
  background:none !important;
  border:0 !important;
  box-shadow:none !important;
  text-shadow:none !important;
}

@media (max-width: 768px){
  main > .section:first-child > .container > h1,
  main > .section:first-child > .container > header > h1{
    font-size:clamp(1.8rem,7vw,2.5rem) !important;
  }

  main > .section:first-child > .container > p.small,
  main > .section:first-child > .container > .small,
  main > .section:first-child > .container > header > p.small,
  main > .section:first-child > .container > header > .small{
    font-size:.98rem !important;
  }
}


/* Blog EN reserved access lock */
.blog-admin-lock{
  position:fixed;
  right:18px;
  bottom:18px;
  width:18px !important;
  height:18px !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
  color:rgba(255,255,255,.18);
  opacity:.18;
  z-index:9999;
  text-decoration:none;
  transition:opacity .25s ease, transform .25s ease, color .25s ease;
  pointer-events:auto;
}

.blog-admin-lock svg{
  width:18px !important;
  height:18px !important;
  min-width:18px;
  min-height:18px;
  max-width:18px;
  max-height:18px;
  display:block !important;
  flex:none;
}

.blog-admin-lock:hover{
  opacity:.55;
  color:rgba(255,255,255,.55);
  transform:scale(1.12);
}
/* Lock admin sopra footer/cookie */
.admin-lock{
  position: fixed;
  right: 18px;
  bottom: 72px; /* era troppo basso */
  width: 18px;
  height: 18px;
  opacity: .14;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .25s ease, transform .25s ease;
}

.admin-lock svg{
  width: 100%;
  height: 100%;
  display: block;
}

.admin-lock:hover{
  opacity: .30;
  transform: scale(1.12);
}
.admin-lock{
  position: fixed;
  right: 18px;
  bottom: max(96px, env(safe-area-inset-bottom));
  width: 18px;
  height: 18px;
  opacity: .14;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .25s ease, transform .25s ease;
}
/* ADMIN LOCK FINAL OVERRIDE */
a.admin-lock,
.admin-lock{
  position: fixed !important;
  right: 18px !important;
  bottom: 110px !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: .16 !important;
  z-index: 2147483647 !important;
  text-decoration: none !important;
  pointer-events: auto !important;
}

a.admin-lock svg,
.admin-lock svg{
  width: 18px !important;
  height: 18px !important;
  display: block !important;
}

a.admin-lock:hover,
.admin-lock:hover{
  opacity: .30 !important;
  transform: scale(1.12) !important;
}
/* BLOG-EN lock finale */
a.blog-admin-lock,
.blog-admin-lock{
  position: fixed !important;
  right: 18px !important;
  bottom: 110px !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: .14 !important;
  z-index: 2147483647 !important;
  text-decoration: none !important;
  pointer-events: auto !important;
  color: rgba(255,255,255,.72) !important;
}

a.blog-admin-lock svg,
.blog-admin-lock svg{
  width: 18px !important;
  height: 18px !important;
  display: block !important;
}

a.blog-admin-lock:hover,
.blog-admin-lock:hover{
  opacity: .45 !important;
  transform: scale(1.12) !important;
}
.main-content > .section:first-of-type .container > h1 {
  color: #fff !important;font-size:clamp(2rem,3vw,3rem) !important;
  line-height:1.15 !important;
  letter-spacing:0 !important;
  font-weight:700 !important;
}
}
/* BLOG breadcrumb bianco SOLO nelle pagine articoli */
body .main-content > .section:first-child > .container > .breadcrumb {
  color: #ffffff !important;
}

body .main-content > .section:first-child > .container > .breadcrumb a {
  color: #ffffff !important;
}
/* testo breadcrumb completo (anche dopo il link) */
body .main-content > .section:first-child > .container > .breadcrumb {
  color: #ffffff !important;
}