@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Playfair+Display:wght@700;800&display=swap');
html {
  font-family: 'Inter', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #fcfbf7;
  color: #232323;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
:root {
  --rosso-accent: #e74c3c;
  --rosso-dark: #c0392b;
  --grigio-light: #f8f9fa;
  --grigio-medium: #e9ecef;
  --nero-soft: #232323;
  --beige: #fcfbf7;
  --blu-link: #0077b5;
  --blu-mediterraneo: #1E5F8B;
  --verde-oliva: #7B8D3F;
  --terracotta: #C86F3C;
  --beige-sabbia: #F4E4BC;
  --bianco-sporco: #FEFCF7;
  --marrone-scuro: #4A3C28;
  --oro-antico: #D4AF37;
  --verde-salvia: #9CAF88;
  --azzurro-cielo: #87CEEB;
  --rosso-pomodoro: #CD5C5C;
}
body {
  background: var(--bianco-sporco);
  color: var(--marrone-scuro);
  font-family: 'Source Sans Pro', 'Nunito', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  font-display: swap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Crimson Text', serif;
  color: var(--marrone-scuro);
  margin-top: 0;
  font-display: swap;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4, h5, h6 { font-family: 'Open Sans', 'Lato', sans-serif; }
a {
  color: var(--blu-mediterraneo);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: var(--terracotta);
}

/* TOP BAR */
.top-bar {
  background: var(--blu-mediterraneo);
  color: var(--bianco-sporco);
  font-size: 0.98em;
  padding: 0.3em 0;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}
.top-date { font-style: italic; }
.top-social a {
  color: var(--oro-antico);
  margin: 0 0.2em;
  font-size: 1.1em;
  transition: color 0.3s;
}
.top-social a:hover { color: var(--azzurro-cielo); }
.top-login {
  color: var(--bianco-sporco);
  margin-left: 1em;
  font-weight: bold;
  font-size: 1em;
  text-decoration: underline;
}

/* HEADER PROFESSIONALE E MOBILE-FIRST */
.logo img, .logo .site-title {
  height: 54px;
  font-size: 2.2rem;
  font-family: 'Playfair Display', serif;
  color: var(--blu-mediterraneo);
  font-weight: bold;
  display: flex;
  align-items: center;
}
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(254,252,247,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px #0001;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7em 2em;
  gap: 1.5em;
}
.main-nav {
  flex: 1 1 auto;
  margin: 0 2em;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2em;
  justify-content: center;
}
.main-nav li { position: relative; }
.main-nav a {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1em;
  color: var(--marrone-scuro);
  padding: 0.5em 0.8em;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}
.main-nav a:hover, .main-nav .current-menu-item a {
  background: var(--blu-mediterraneo);
  color: var(--bianco-sporco);
}
/* Dropdown */
.main-nav ul ul {
  display: none;
  position: absolute;
  left: 0;
  top: 2.5em;
  background: var(--bianco-sporco);
  box-shadow: 0 4px 16px #0002;
  border-radius: 10px;
  min-width: 180px;
  z-index: 10;
}
.main-nav li:hover > ul {
  display: block;
}
.main-nav ul ul li a {
  color: var(--marrone-scuro);
  padding: 0.7em 1.2em;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1em;
}
.cta-btn.cta-small { display: none; }
.search-toggle {
  background: none;
  border: none;
  color: var(--blu-mediterraneo);
  font-size: 1.5em;
  cursor: pointer;
  padding: 0 0.3em;
  transition: color 0.3s;
}
.search-toggle:hover { color: var(--terracotta); }

/* SEARCH OVERLAY */
.search-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(30,95,139,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: fadeIn 0.3s;
}
.search-overlay.active { display: flex; }
.header-search {
  display: flex;
  align-items: center;
  background: var(--beige-sabbia);
  border-radius: 20px;
  padding: 0.2em 0.5em;
  box-shadow: 0 1px 4px #0001;
}
.header-search input {
  border: none;
  background: transparent;
  padding: 0.5em 0.7em;
  font-size: 1.2em;
  color: var(--marrone-scuro);
  outline: none;
}
.header-search button {
  background: none;
  border: none;
  color: var(--blu-mediterraneo);
  font-size: 1.3em;
  cursor: pointer;
  padding: 0 0.5em;
  transition: color 0.3s;
}
.header-search button:hover { color: var(--terracotta); }
.close-search {
  background: none;
  border: none;
  color: var(--bianco-sporco);
  font-size: 2.2em;
  margin-top: 1.5em;
  cursor: pointer;
  transition: color 0.3s;
}
.close-search:hover { color: var(--oro-antico); }

/* MENU MOBILE OFF-CANVAS */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1em;
  z-index: 10001;
}
.hamburger span {
  display: block;
  width: 32px;
  height: 4px;
  background: var(--blu-mediterraneo);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 85vw;
  max-width: 340px;
  height: 100vh;
  background: var(--bianco-sporco);
  box-shadow: -4px 0 24px #0003;
  z-index: 10001 !important;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.active { display: block; transform: translateX(0); }
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2em 1.2em 1em 1.2em;
  gap: 2em;
}
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}
.mobile-nav a {
  font-size: 1.2em;
  color: var(--marrone-scuro);
  font-family: 'Open Sans', sans-serif;
  font-weight: bold;
  padding: 0.5em 0.8em;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}
.mobile-nav a:hover, .mobile-nav .current-menu-item a {
  background: var(--blu-mediterraneo);
  color: var(--bianco-sporco);
}
.mobile-social {
  display: flex;
  gap: 1em;
  margin-top: auto;
}
.mobile-login {
  color: var(--blu-mediterraneo);
  font-weight: bold;
  margin-top: 1em;
  display: block;
}
.close-mobile-menu {
  position: absolute;
  top: 1.2em; right: 1.2em;
  background: none;
  border: none;
  color: var(--blu-mediterraneo);
  font-size: 2.2em;
  cursor: pointer;
  transition: color 0.3s;
}
.close-mobile-menu:hover { color: var(--terracotta); }
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(30,95,139,0.45);
  z-index: 10000 !important;
  transition: opacity 0.3s;
}
.mobile-menu-overlay.active { display: block; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-actions { gap: 0.5em; }
}

/* Utility */
.container { max-width: 1200px; margin: 0 auto; padding: 0 0.7em; }
section { margin-bottom: 1.5em; }

/* FOOTER */
.site-footer {
  background: var(--marrone-scuro);
  color: var(--bianco-sporco);
  padding: 3em 0 1.5em 0;
  font-size: 1.05em;
}
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto 2em auto;
  justify-content: space-between;
}
.footer-col {
  flex: 1 1 200px;
  min-width: 180px;
  margin-bottom: 1.5em;
}
.footer-col h4 {
  color: var(--oro-antico);
  font-family: 'Playfair Display', serif;
  font-size: 1.2em;
  margin-bottom: 0.7em;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 0.5em;
}
.footer-col ul li a {
  color: var(--beige-sabbia);
  transition: color 0.3s;
}
.footer-col ul li a:hover {
  color: var(--oro-antico);
}
.footer-col form {
  display: flex;
  gap: 0.5em;
}
.footer-col input[type="email"] {
  border-radius: 20px 0 0 20px;
  border: none;
  padding: 0.6em 1em;
  font-size: 1em;
  background: var(--beige-sabbia);
  color: var(--marrone-scuro);
}
.footer-col button {
  border-radius: 0 20px 20px 0;
  border: none;
  background: var(--verde-oliva);
  color: var(--bianco-sporco);
  padding: 0.6em 1.2em;
  font-size: 1em;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}
.footer-col button:hover { background: var(--oro-antico); color: var(--marrone-scuro); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #fff2;
  padding-top: 1.2em;
  font-size: 0.98em;
}
.footer-map {
  font-style: italic;
  color: var(--verde-salvia);
  letter-spacing: 0.5px;
}
.footer-cert {
  color: var(--oro-antico);
  font-weight: bold;
  font-size: 1.05em;
}
@media (max-width: 900px) {
  .footer-columns { flex-direction: column; gap: 1.5em; }
  .footer-bottom { flex-direction: column; gap: 0.7em; }
}

/* HOMEPAGE EDITORIALE */
.home-hero {
  margin-bottom: 2.5em;
}
.hero-featured {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  background: linear-gradient(120deg, #1E5F8B 0%, #F4E4BC 100%);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px #0002;
}
.hero-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  opacity: 0.95;
}
.hero-caption {
  position: absolute;
  left: 0; bottom: 0;
  background: linear-gradient(0deg, #1E5F8BCC 80%, transparent 100%);
  color: var(--bianco-sporco);
  padding: 2em 2.5em 1.5em 2.5em;
  max-width: 60%;
}
.hero-cat {
  background: var(--terracotta);
  color: var(--bianco-sporco);
  padding: 0.3em 1em;
  border-radius: 12px;
  font-size: 0.95em;
  font-weight: bold;
  margin-bottom: 0.7em;
  display: inline-block;
}
.hero-title { font-size: 2.2rem; font-family: 'Playfair Display', serif; margin-bottom: 0.5em; }
.hero-excerpt { font-size: 1.1rem; margin-bottom: 1em; }

.home-main-grid {
  display: flex;
  gap: 2.5em;
  margin-bottom: 3em;
}
.main-news { flex: 2 1 0; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2em;
  align-items: stretch;
}
.sidebar {
  flex: 1 1 300px;
  background: var(--beige-sabbia);
  border-radius: 16px;
  padding: 1.5em 1em;
  box-shadow: 0 2px 8px #0001;
  min-width: 260px;
  max-width: 340px;
}
.sidebar-block { margin-bottom: 2em; }
.sidebar-block h3 { color: var(--blu-mediterraneo); font-size: 1.1em; margin-bottom: 0.7em; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { margin-bottom: 0.5em; }
.sidebar-list a { color: var(--marrone-scuro); transition: color 0.3s; }
.sidebar-list a:hover { color: var(--terracotta); }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 0.5em; }
.sidebar-tags a { background: var(--verde-salvia); color: var(--bianco-sporco); border-radius: 10px; padding: 0.2em 0.8em; font-size: 0.98em; }
.sidebar-block form { display: flex; gap: 0.5em; }
.sidebar-block input[type="email"] { border-radius: 20px 0 0 20px; border: none; padding: 0.6em 1em; font-size: 1em; background: var(--bianco-sporco); color: var(--marrone-scuro); }
.sidebar-block button { border-radius: 0 20px 20px 0; border: none; background: var(--verde-oliva); color: var(--bianco-sporco); padding: 0.6em 1.2em; font-size: 1em; cursor: pointer; font-weight: bold; transition: background 0.3s; }
.sidebar-block button:hover { background: var(--oro-antico); color: var(--marrone-scuro); }

.home-sections { margin-top: 3em; }
.home-sections h2 { color: var(--terracotta); font-size: 1.4em; margin-top: 2em; }
.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  margin-bottom: 2em;
}

@media (max-width: 1100px) {
  .home-main-grid { flex-direction: column; gap: 1.5em; }
  .sidebar { max-width: 100%; min-width: 0; }
  .news-grid { grid-template-columns: 1fr; }
  .section-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .hero-caption { max-width: 100%; padding: 1.2em 1em; }
  .home-main-grid { flex-direction: column; }
  .news-grid, .section-grid { grid-template-columns: 1fr; }
  .sidebar { padding: 1em 0.5em; }
}

/* HOMEPAGE MINIMAL E PROFESSIONALE */
.home-hero-minimal {
  margin-bottom: 2.5em;
}
.hero-featured-minimal {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 340px;
  background: #1E5F8B;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 4px 32px #0001;
}
.hero-img-minimal {
  width: 100%;
  height: 340px;
  object-fit: cover;
  opacity: 0.92;
  filter: brightness(0.85);
}
.hero-caption-minimal {
  position: absolute;
  left: 0; bottom: 0;
  background: linear-gradient(0deg, #1E5F8BCC 80%, transparent 100%);
  color: var(--bianco-sporco);
  padding: 2.2em 2.5em 1.7em 2.5em;
  max-width: 60%;
}
.hero-cats { display: flex; gap: 0.5em; margin-bottom: 0.7em; }
.hero-cat-minimal {
  background: var(--terracotta);
  color: var(--bianco-sporco);
  padding: 0.25em 0.9em;
  border-radius: 10px;
  font-size: 0.95em;
  font-weight: bold;
  letter-spacing: 0.5px;
}
.hero-title-minimal {
  font-size: 2.3rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.3em;
  font-weight: bold;
  line-height: 1.1;
}
.hero-meta-minimal {
  font-size: 1em;
  color: var(--verde-salvia);
  margin-bottom: 0.7em;
}
.hero-excerpt-minimal {
  font-size: 1.08rem;
  margin-bottom: 1.1em;
  color: var(--beige-sabbia);
}
.hero-btn {
  background: var(--verde-oliva);
  color: var(--bianco-sporco);
  padding: 0.6em 1.5em;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.3s;
}
.hero-btn:hover { background: var(--oro-antico); color: var(--marrone-scuro); }

.hero-secondary-row {
  display: flex;
  gap: 1.5em;
  margin-top: 1.2em;
  justify-content: flex-start;
}
.hero-secondary-card {
  background: var(--bianco-sporco);
  border-radius: 16px;
  box-shadow: 0 2px 8px #0001;
  overflow: hidden;
  min-width: 220px;
  max-width: 260px;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
.hero-secondary-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}
.hero-secondary-cats {
  position: absolute;
  top: 0.7em;
  left: 0.7em;
  display: flex;
  gap: 0.4em;
  flex-wrap: wrap;
  z-index: 2;
}
.hero-secondary-cat {
  background: var(--terracotta);
  color: var(--bianco-sporco);
  padding: 0.18em 0.7em;
  border-radius: 9px;
  font-size: 0.88em;
  font-weight: bold;
  letter-spacing: 0.4px;
}
.hero-secondary-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.08em;
  color: var(--marrone-scuro);
  font-weight: bold;
  margin: 1em 1em 1em 1em;
  text-decoration: none;
  transition: color 0.3s;
}
.hero-secondary-title:hover { color: var(--blu-mediterraneo); }

/* Griglia minimal notizie */
.minimal-news-grid {
  gap: 2em;
  margin-top: 0.5em;
}
.minimal-section-grid {
  gap: 2em;
}

@media (max-width: 1100px) {
  .hero-caption-minimal { max-width: 100%; padding: 1.2em 1em; }
  .hero-secondary-row { flex-direction: column; gap: 1em; }
}
@media (max-width: 700px) {
  .hero-featured-minimal { min-height: 180px; }
  .hero-img-minimal { height: 180px; }
  .hero-caption-minimal { padding: 1em 0.7em; }
  .hero-title-minimal { font-size: 1.3rem; }
  .hero-secondary-row { flex-direction: column; gap: 0.7em; }
}

/* New section headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5em;
  margin-bottom: 0.3em;
}
.section-title {
  font-size: 1.4em;
  font-family: 'Playfair Display', serif;
  font-weight: bold;
  margin: 0;
}
.section-title.cultura { color: var(--terracotta); }
.section-title.viaggi { color: var(--blu-mediterraneo); }
.section-title.sapori { color: var(--verde-oliva); }
.section-link {
  font-size: 1em;
  color: var(--blu-mediterraneo);
  text-decoration: underline;
  font-weight: bold;
  margin-left: 1em;
  transition: color 0.3s;
}
.section-link:hover { color: var(--terracotta); }
.compact-sections { padding-top: 0.7em; margin-top: 1em; }

/* HERO COMPATTO E IMPATTO */
.compact-hero, .home-hero-minimal { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }
.compact-hero-featured, .hero-featured-minimal { width: 100%; max-width: 100%; border-radius: 18px; overflow: hidden; position: relative; }
.compact-hero-caption, .hero-caption-minimal { background: linear-gradient(90deg, #1E5F8BCC 60%, transparent 100%); }

/* SEZIONE AUTORI TOP */
.top-authors-section { background: var(--beige-sabbia); border-radius: 16px; padding: 1.2em 1em; margin-bottom: 1.2em; display: flex; flex-direction: column; align-items: flex-start; }
.top-authors-title { font-size: 1.1em; color: var(--blu-mediterraneo); font-family: 'Playfair Display', serif; font-weight: bold; margin-bottom: 0.7em; }
.top-authors-list { display: flex; gap: 1.5em; flex-wrap: wrap; }
.top-author { display: flex; flex-direction: column; align-items: center; background: var(--bianco-sporco); border-radius: 12px; padding: 0.7em 1.2em; box-shadow: 0 1px 6px #0001; }
.top-author-name { font-weight: bold; color: var(--marrone-scuro); margin-bottom: 0.2em; }
.top-author-count { font-size: 0.98em; color: var(--verde-salvia); }

/* SEZIONE PIÙ LETTI E TAG */
.top-blocks-section { display: flex; gap: 2em; margin-bottom: 1.2em; }
.top-block { background: var(--beige-sabbia); border-radius: 16px; padding: 1.2em 1em; min-width: 220px; }
@media (max-width: 900px) {
  .top-blocks-section { flex-direction: column; gap: 1em; }
  .top-authors-list { gap: 0.7em; }
}

/* GRIGLIA COMPATTA */
.compact-home-grid { margin-top: 0; gap: 0.8em; }
.compact-news-grid { gap: 0.8em; margin-top: 0; }

@media (max-width: 900px) {
  .compact-hero-caption { max-width: 100%; padding: 1em 0.7em; }
  .compact-hero-title { font-size: 1.1rem; }
}

/* FONT OPTIMIZATION */
body {
  font-family: 'Source Sans Pro', 'Nunito', Arial, sans-serif;
  font-display: swap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Crimson Text', serif;
  font-display: swap;
}

/* GAP OTTIMIZZATI */
.container { max-width: 1200px; margin: 0 auto; padding: 0 0.7em; }
section { margin-bottom: 1.5em; }
.compact-home-grid, .compact-news-grid, .minimal-section-grid { gap: 0.8em; }
.section-header { margin-top: 1.5em; margin-bottom: 0.3em; }
.compact-sections { padding-top: 0.7em; margin-top: 1em; }

/* MICRO-ANIMAZIONI */
.card-articolo, .hero-featured-minimal, .hero-secondary-card {
  transition: box-shadow 0.22s cubic-bezier(.4,0,.2,1), transform 0.22s cubic-bezier(.4,0,.2,1);
}
.card-articolo:hover, .hero-featured-minimal:hover, .hero-secondary-card:hover {
  box-shadow: 0 8px 32px #0002;
  transform: translateY(-3px) scale(1.01);
}
.card-title, .hero-title-minimal {
  transition: color 0.22s cubic-bezier(.4,0,.2,1);
}
.card-articolo:hover .card-title, .hero-featured-minimal:hover .hero-title-minimal {
  color: var(--blu-mediterraneo);
}

/* LAZY LOAD IMAGES */
.card-img, .hero-img-minimal, .hero-secondary-img {
  loading: lazy;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  background: #eaeaea;
  min-height: 110px;
}

/* UNIVERSAL SINGLE POST LAYOUT FIX */
main.single-post-main, .single-post-main, main.single, main.single-post, article.single, .single-content, .post, .entry-content {
  max-width: 760px;
  margin: 2.5em auto 2em auto;
  background: var(--bianco-sporco);
  border-radius: 18px;
  box-shadow: 0 2px 12px #0001;
  padding: 2.2em 2em 2em 2em;
  box-sizing: border-box;
}
main.single-post-main > *, .single-content > *, .entry-content > * {
  margin-bottom: 1.3em;
}
main.single-post-main p, .single-content p, .entry-content p {
  font-size: 1.13em;
  line-height: 1.7;
  color: var(--marrone-scuro);
  margin-bottom: 1.2em;
}
main.single-post-main h1, main.single-post-main h2, main.single-post-main h3, main.single-post-main h4, main.single-post-main h5, main.single-post-main h6,
.single-content h1, .single-content h2, .single-content h3, .single-content h4, .single-content h5, .single-content h6,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {
  color: var(--blu-mediterraneo);
  font-family: 'Playfair Display', serif;
  margin-top: 1.7em;
  margin-bottom: 0.5em;
  line-height: 1.2;
}
main.single-post-main img, .single-content img, .entry-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.5em 0;
  display: block;
  height: auto;
}
main.single-post-main ul, main.single-post-main ol, .single-content ul, .single-content ol, .entry-content ul, .entry-content ol {
  margin-left: 2em;
  margin-bottom: 1.2em;
}
main.single-post-main blockquote, .single-content blockquote, .entry-content blockquote {
  border-left: 4px solid var(--terracotta);
  background: var(--beige-sabbia);
  color: var(--marrone-scuro);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  border-radius: 10px;
}
@media (max-width: 900px) {
  main.single-post-main, .single-post-main, main.single, main.single-post, article.single, .single-content, .post, .entry-content {
    padding: 1.2em 0.7em;
  }
}

/* SEO/PROFESSIONAL SINGLE POST */
.seo-single-main {
  max-width: 900px;
  margin: 2.5em auto 2em auto;
  background: var(--bianco-sporco);
  border-radius: 18px;
  box-shadow: 0 2px 12px #0001;
  padding: 0 0 2em 0;
}
.single-featured-img-wrap {
  width: 100%;
  margin: 0;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background: none;
}
.single-featured-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
  max-height: 420px;
}
.single-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: center;
  font-size: 1em;
  color: var(--verde-salvia);
  background: none;
  border-radius: 0;
  padding: 1.1em 2em 0.2em 2em;
  margin-bottom: 0.2em;
  font-weight: 400;
}
.single-meta-bar span { margin-right: 0.2em; }
.single-meta-cats span {
  background: none;
  color: var(--terracotta);
  border: 1px solid var(--terracotta);
  border-radius: 8px;
  padding: 0.1em 0.7em;
  font-size: 0.97em;
  margin-right: 0.15em;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.single-meta-cats span:hover {
  background: var(--terracotta);
  color: var(--bianco-sporco);
}
.single-meta-tags a, .single-meta-tags span {
  background: none;
  color: var(--verde-salvia);
  border: 1px solid var(--verde-salvia);
  border-radius: 8px;
  padding: 0.1em 0.7em;
  font-size: 0.97em;
  margin-right: 0.15em;
  text-decoration: none;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.single-meta-tags a:hover {
  background: var(--verde-salvia);
  color: var(--bianco-sporco);
}
.seo-single-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  color: var(--marrone-scuro);
  margin: 2.1em 0 1.1em 0;
  padding: 0 2em;
  text-align: left;
  line-height: 1.15;
}
.seo-single-content {
  font-size: 1.13em;
  line-height: 1.7;
  color: var(--marrone-scuro);
  padding: 0 2em;
  margin-top: 1.5em;
  text-align: left;
}
.seo-single-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.5em 0;
  display: block;
  height: auto;
}
.seo-single-content h2, .seo-single-content h3, .seo-single-content h4 {
  color: var(--blu-mediterraneo);
  font-family: 'Playfair Display', serif;
  margin-top: 2.2em;
  margin-bottom: 0.7em;
  text-align: left;
}
.seo-single-content blockquote {
  border-left: 4px solid var(--terracotta);
  background: var(--beige-sabbia);
  color: var(--marrone-scuro);
  padding: 1em 1.5em;
  margin: 2em 0;
  font-style: italic;
  border-radius: 10px;
}
.seo-single-content ul, .seo-single-content ol {
  margin-left: 2em;
  margin-bottom: 1.2em;
}
.single-author-box {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  background: var(--beige-sabbia);
  border-radius: 12px;
  margin: 2.5em 2em 0 2em;
  padding: 1.2em 1.5em;
  box-shadow: 0 1px 6px #0001;
}
.single-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.single-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}
.single-author-name {
  font-weight: 600;
  color: var(--marrone-scuro);
  font-size: 1.1em;
}
.single-author-bio {
  color: var(--verde-salvia);
  font-size: 0.98em;
}
@media (max-width: 900px) {
  .seo-single-main { padding: 0 0 1em 0; }
  .single-meta-bar, .seo-single-title, .seo-single-content { padding-left: 0.7em; padding-right: 0.7em; }
  .single-author-box { margin-left: 0.7em; margin-right: 0.7em; }
}

/* --- SINGLE PAGE MAGAZINE --- */
.article-main {
  max-width: 900px;
  margin: 2.5em auto 2em auto;
  background: var(--bianco-sporco);
  border-radius: 18px;
  box-shadow: 0 2px 12px #0001;
  padding: 0 0 2em 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
.breadcrumb {
  font-size: 0.98em;
  color: var(--verde-salvia);
  margin: 0 2em 0.7em 2em;
  padding-top: 1.2em;
}
.breadcrumb-list {
  list-style: none;
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}
.breadcrumb-list li:after {
  content: '›';
  margin: 0 0.3em;
  color: var(--terracotta);
}
.breadcrumb-list li:last-child:after { content: none; }
.article-header {
  padding: 0 2em;
  margin-bottom: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.article-category {
  display: inline-block;
  color: #fff;
  font-weight: 600;
  font-size: 1em;
  border-radius: 8px;
  padding: 0.2em 1em;
  margin-bottom: 0.2em;
  letter-spacing: 0.02em;
}
.article-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--marrone-scuro);
  margin: 0.5em 0 0.2em 0;
  line-height: 1.15;
  max-width: 95%;
}
.article-excerpt {
  font-size: 1.18em;
  color: var(--verde-salvia);
  margin-bottom: 0.2em;
  font-style: italic;
}
.article-meta {
  font-size: 0.98em;
  color: var(--verde-salvia);
  display: flex;
  gap: 0.7em;
  align-items: center;
}
.article-meta a { color: var(--verde-salvia); text-decoration: underline dotted; }
.article-share {
  margin-top: 0.5em;
  display: flex;
  gap: 0.5em;
}
.share-btns a {
  display: inline-block;
  background: var(--beige-sabbia);
  color: var(--blu-mediterraneo);
  border-radius: 6px;
  padding: 0.3em 0.7em;
  font-size: 1em;
  font-weight: 600;
  transition: background .2s, color .2s, box-shadow .2s;
  box-shadow: 0 1px 4px #0001;
  text-decoration: none;
}
.share-btns a:hover {
  background: var(--blu-mediterraneo);
  color: #fff;
}
.article-featured-img {
  width: 100%;
  margin: 0;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background: none;
  display: flex;
  flex-direction: column;
}
.article-featured-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
  max-height: 420px;
}
.img-caption {
  font-size: 0.98em;
  color: var(--verde-salvia);
  background: none;
  margin: 0.2em 2em 0 2em;
  text-align: left;
}
.article-content {
  font-size: 1.13em;
  line-height: 1.6;
  color: var(--marrone-scuro);
  padding: 0 2em;
  margin-top: 1.5em;
  text-align: left;
}
.article-content h2, .article-content h3 {
  color: var(--blu-mediterraneo);
  font-family: 'Playfair Display', serif;
  margin-top: 2.2em;
  margin-bottom: 0.7em;
  text-align: left;
}
.article-content blockquote {
  border-left: 4px solid var(--terracotta);
  background: var(--beige-sabbia);
  color: var(--marrone-scuro);
  padding: 1em 1.5em;
  margin: 2em 0;
  font-style: italic;
  border-radius: 10px;
}
.article-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.5em 0;
  display: block;
  height: auto;
}
.article-content ul, .article-content ol {
  margin-left: 2em;
  margin-bottom: 1.2em;
}
.toc {
  background: var(--beige-sabbia);
  border-radius: 10px;
  padding: 1em 1.5em;
  margin: 1.5em 0 2em 0;
  font-size: 1em;
  color: var(--verde-salvia);
  box-shadow: 0 1px 4px #0001;
}
.toc ul { margin: 0.5em 0 0 1.2em; }
.toc li { margin-bottom: 0.2em; }
.toc a { color: var(--blu-mediterraneo); text-decoration: underline; }
.article-sidebar {
  margin: 2.5em 2em 0 2em;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}
.newsletter-box, .ad-banner, .social-feed {
  background: var(--beige-sabbia);
  border-radius: 10px;
  padding: 1.2em 1.5em;
  color: var(--verde-salvia);
  font-size: 1.05em;
  text-align: center;
  box-shadow: 0 1px 4px #0001;
}
.related-footer {
  margin: 2.5em 0 0 0;
  background: var(--beige-sabbia);
  border-radius: 10px;
  padding: 1.2em 1.5em;
  box-shadow: 0 1px 4px #0001;
}
.related-footer h3 {
  color: var(--blu-mediterraneo);
  font-size: 1.1em;
  margin-bottom: 0.7em;
}
.related-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em;
}
.related-footer li a {
  color: var(--marrone-scuro);
  background: #fff;
  border-radius: 6px;
  padding: 0.2em 0.8em;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.related-footer li a:hover {
  background: var(--blu-mediterraneo);
  color: #fff;
}
.article-footer {
  margin: 2.5em 0 0 0;
  padding: 0 2em;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  font-size: 1em;
}
.article-tags a, .article-tags span {
  background: none;
  color: var(--verde-salvia);
  border: 1px solid var(--verde-salvia);
  border-radius: 8px;
  padding: 0.1em 0.7em;
  font-size: 0.97em;
  margin-right: 0.15em;
  text-decoration: none;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.article-tags a:hover {
  background: var(--verde-salvia);
  color: var(--bianco-sporco);
}
.article-author-box {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  background: var(--beige-sabbia);
  border-radius: 12px;
  padding: 1.2em 1.5em;
  box-shadow: 0 1px 6px #0001;
}
.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}
.author-name {
  font-weight: 600;
  color: var(--marrone-scuro);
  font-size: 1.1em;
}
.author-bio {
  color: var(--verde-salvia);
  font-size: 0.98em;
}
@media (max-width: 900px) {
  .article-main { padding: 0 0 1em 0; }
  .breadcrumb, .article-header, .article-footer, .article-content, .img-caption, .article-sidebar { padding-left: 0.7em; padding-right: 0.7em; }
  .article-sidebar, .related-footer { margin-left: 0.7em; margin-right: 0.7em; }
}
html { scroll-behavior: smooth; }

/* HEADER ARTICOLO */
.article-header {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 20px;
}
.breadcrumb {
  font-size: 14px;
  margin-bottom: 20px;
  color: #666;
}
.category-badge {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 24px;
}
.article-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 16px;
  font-family: 'Georgia', serif;
}
.article-excerpt {
  font-size: 20px;
  line-height: 1.5;
  color: #555;
  margin-bottom: 32px;
  font-weight: 400;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.meta-item {
  font-size: 14px;
  color: #666;
}
.social-share {
  margin-left: auto;
  display: flex;
  gap: 12px;
}
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: transform 0.2s;
}
.share-btn:hover {
  transform: translateY(-2px);
}
/* PROGRESS BAR */
#reading-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e74c3c, #c0392b);
  width: 0;
  z-index: 9999;
  transition: width 0.2s;
}
/* FEATURED IMAGE */
.featured-image-container {
  position: relative;
  margin: 56px 0 56px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  background: #f8f9fa;
}
.featured-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
  background: #eaeaea;
}
.image-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: white;
  padding: 32px 20px 16px;
  font-size: 15px;
  text-shadow: 0 1px 4px #0008;
}
/* CONTENT LAYOUT */
.article-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.article-content {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  font-family: 'Georgia', serif;
}
.article-content p {
  margin-bottom: 24px;
}
.article-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 40px 0 20px;
  color: #1a1a1a;
}
.article-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 16px;
  color: #2c3e50;
}
.quote-highlight {
  border-left: 4px solid #e74c3c;
  padding: 24px;
  margin: 32px 0;
  background: #f8f9fa;
  font-style: italic;
  font-size: 20px;
  border-radius: 0 8px 8px 0;
}
/* SIDEBAR */
.article-sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
}
.sidebar-widget {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid #f0f0f0;
}
.widget-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
}
.related-post {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.related-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}
.related-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #333;
}
/* FOOTER ARTICOLO */
.article-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #f0f0f0;
}
.article-tags {
  margin-bottom: 40px;
}
.tag {
  display: inline-block;
  background: #f8f9fa;
  color: #555;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin: 0 8px 8px 0;
  text-decoration: none;
  transition: all 0.2s;
}
.tag:hover {
  background: #e74c3c;
  color: white;
}
.author-box {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 16px;
  padding: 32px;
  margin: 40px 0;
  display: flex;
  gap: 24px;
  align-items: center;
}
.author-large-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}
.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.related-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.related-card:hover {
  transform: translateY(-4px);
}
/* FLOATING SHARE */
.floating-share {
  position: fixed;
  top: 40%;
  left: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floating-share .share-btn {
  margin-bottom: 8px;
}
/* NEWSLETTER POPUP */
.newsletter-popup {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9999;
  display: none;
  align-items: flex-end;
  justify-content: center;
  min-height: 100vh;
}
.newsletter-popup.active {
  display: flex;
}
.popup-content {
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 40px 32px 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  position: relative;
  min-width: 320px;
  max-width: 90vw;
}
#close-popup {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: #888;
  cursor: pointer;
}
.popup-content h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.popup-content form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.popup-content input[type="email"] {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #eee;
  font-size: 16px;
}
.popup-content button[type="submit"] {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.popup-content button[type="submit"]:hover {
  background: #c0392b;
}
/* BACK TO TOP */
#back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  border: none;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1001;
}
#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
/* RESPONSIVE */
@media (max-width: 768px) {
  .article-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .social-share {
    margin-left: 0;
  }
  .author-box {
    flex-direction: column;
    text-align: center;
  }
  .floating-share {
    display: none;
  }
}
@media (max-width: 900px) {
  .article-header, .article-container {
    max-width: 100vw;
  }
  .featured-image {
    height: 260px;
  }
  .featured-image-container {
    margin: 32px 0 32px 0;
    border-radius: 10px;
  }
}

/* HERO FULL BLEED */
.hero-article {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: 420px;
  margin-bottom: 0;
  z-index: 1;
}
.hero-image-wrap {
  position: relative;
  width: 100vw;
  height: 52vw;
  max-height: 520px;
  min-height: 260px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background: #eaeaea;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,rgba(30,30,30,0.05) 0%,rgba(30,30,30,0.45) 80%,rgba(30,30,30,0.75) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-meta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  color: #fff;
  padding: 0 16px;
}
@media (max-width: 900px) {
  .hero-meta {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    padding-bottom: 36px;
    background: linear-gradient(0deg, rgba(30,30,30,0.65) 0%, rgba(30,30,30,0.15) 100%);
  }
}
.hero-overlay {
  pointer-events: none;
  z-index: 2;
}
.hero-category {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  padding: 8px 22px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  display: inline-block;
  margin-bottom: 22px;
  pointer-events: auto;
}
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.13;
  color: #fff;
  margin-bottom: 18px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.18);
  pointer-events: auto;
}
.hero-excerpt {
  font-size: 22px;
  line-height: 1.5;
  color: #f8f9fa;
  margin-bottom: 32px;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0,0,0,0.18);
  pointer-events: auto;
}
.hero-info {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 0;
  pointer-events: auto;
}
.hero-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff3;
}
.hero-date, .hero-readtime {
  color: #f8f9fa;
  font-size: 15px;
  opacity: 0.92;
}
.hero-share {
  display: flex;
  gap: 10px;
  margin-left: 12px;
}
.hero-share a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  transition: background 0.2s, transform 0.2s;
  pointer-events: auto;
}
.hero-share a:hover {
  background: #e74c3c;
  color: #fff;
  transform: translateY(-2px) scale(1.08);
}
.hero-caption {
  margin-top: 18px;
  color: #f8f9fa;
  font-size: 15px;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0,0,0,0.18);
  pointer-events: auto;
}
/* BREADCRUMB PRO */
.breadcrumb-pro {
  max-width: 1320px;
  margin: 0 auto 0.5em auto;
  padding: 32px 32px 0 32px;
  font-size: 15px;
  color: #888;
  letter-spacing: 0.02em;
}
.breadcrumb-pro a { color: #c0392b; text-decoration: underline dotted; }
.breadcrumb-pro li:after { color: #e74c3c; }
/* MAIN CONTENT GRID */
.main-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
  margin-top: -60px;
}
.main-article {
  font-size: 19px;
  line-height: 1.8;
  color: #232323;
  font-family: 'Georgia', serif;
  padding: 48px 0 0 0;
  max-width: 720px;
}
.main-article p {
  margin-bottom: 28px;
}
.main-article h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 48px 0 24px;
  color: #1a1a1a;
  font-family: 'Playfair Display', Georgia, serif;
}
.main-article h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 36px 0 18px;
  color: #2c3e50;
}
.quote-highlight {
  border-left: 4px solid #e74c3c;
  padding: 28px;
  margin: 40px 0;
  background: #f8f9fa;
  font-style: italic;
  font-size: 22px;
  border-radius: 0 10px 10px 0;
}
/* SIDEBAR PRO */
.main-sidebar {
  position: sticky;
  top: 32px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sidebar-widget {
  background: #fff;
  border-radius: 14px;
  padding: 28px 22px;
  margin-bottom: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid #f0f0f0;
}
.widget-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 22px;
  color: #1a1a1a;
}
.related-post {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0f0f0;
}
.related-thumb {
  width: 90px;
  height: 64px;
  object-fit: cover;
  border-radius: 7px;
}
.related-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #333;
  font-family: 'Inter', Arial, sans-serif;
}
/* FOOTER ARTICOLO PRO */
.footer-article {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 2px solid #f0f0f0;
  background: #fff;
  border-radius: 0 0 18px 18px;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}
.footer-tags {
  margin-bottom: 44px;
}
.tag {
  display: inline-block;
  background: #f8f9fa;
  color: #555;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  margin: 0 10px 10px 0;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'Inter', Arial, sans-serif;
}
.tag:hover {
  background: #e74c3c;
  color: #fff;
}
.footer-author-box {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 18px;
  padding: 36px 32px;
  margin: 44px 0 0 0;
  display: flex;
  gap: 32px;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  min-height: 120px;
}
.footer-author-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff3;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.footer-author-name {
  font-weight: 700;
  color: #232323;
  font-size: 1.3em;
  font-family: 'Playfair Display', Georgia, serif;
  margin-bottom: 0.2em;
}
.footer-author-bio {
  color: #666;
  font-size: 1.05em;
  font-family: 'Inter', Arial, sans-serif;
  margin-top: 0.2em;
}
@media (max-width: 900px) {
  .footer-author-box {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 24px 10px;
  }
  .footer-author-avatar { width: 60px; height: 60px; }
}
/* GRIGLIA CORRELATI PRO */
.footer-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 44px;
}
.related-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 120px;
}
.related-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 12px 32px rgba(0,0,0,0.13);
}
.related-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
  margin-bottom: 0.7em;
}
.related-title {
  font-size: 1.08em;
  font-weight: 600;
  color: #1a1a1a;
  font-family: 'Inter', Arial, sans-serif;
  margin: 0.5em 1em 1em 1em;
  line-height: 1.3;
  transition: color 0.18s;
}
.related-title a {
  color: inherit;
  text-decoration: none;
}
.related-title a:hover {
  color: var(--rosso-accent);
  text-decoration: underline;
}
/* SEZIONE COMMENTI PRO */
#comments, .comments-area {
  margin-top: 60px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 36px 32px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
#comments h2, .comments-area h2, #reply-title {
  font-size: 2em;
  font-family: 'Playfair Display', Georgia, serif;
  color: #232323;
  margin-bottom: 1em;
  font-weight: 700;
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2em 0;
}
.comment {
  margin-bottom: 2em;
  padding-bottom: 1em;
  border-bottom: 1px solid #ececec;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.comment .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #f8f9fa;
}
.comment-content {
  flex: 1;
  font-size: 1.08em;
  color: #232323;
  font-family: 'Inter', Arial, sans-serif;
}
.comment-meta {
  font-size: 0.98em;
  color: #888;
  margin-bottom: 0.3em;
}
#respond {
  margin-top: 2em;
}
#reply-title {
  font-size: 1.3em;
  margin-bottom: 0.7em;
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ececec;
  font-size: 1em;
  font-family: 'Inter', Arial, sans-serif;
  background: #f8f9fa;
  transition: border 0.2s;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
  border: 1.5px solid var(--rosso-accent);
  outline: none;
}
.comment-form input[type="submit"] {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Inter', Arial, sans-serif;
}
.comment-form input[type="submit"]:hover {
  background: #c0392b;
}
@media (max-width: 900px) {
  #comments, .comments-area {
    padding: 18px 6px;
  }
  .footer-related-grid {
    gap: 14px;
  }
}

/* TOC MAGAZINE PRO */
.toc {
  background: var(--grigio-light);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 40px 0 44px 0;
  font-size: 1.08em;
  color: #444;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #ececec;
  position: sticky;
  top: 32px;
  z-index: 10;
}
.toc strong {
  font-size: 1.1em;
  color: var(--rosso-accent);
  font-family: 'Playfair Display', Georgia, serif;
}
.toc ul {
  margin: 1em 0 0 0;
  padding: 0;
  list-style: none;
}
.toc li {
  margin-bottom: 0.5em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.toc li:before {
  content: counter(section, decimal-leading-zero) ".";
  counter-increment: section;
  color: var(--rosso-accent);
  font-weight: 700;
  margin-right: 0.4em;
}
.toc a {
  color: #2c3e50;
  text-decoration: underline dotted;
  transition: color 0.2s;
  font-weight: 600;
}
.toc a:hover {
  color: var(--rosso-accent);
}
@media (max-width: 900px) {
  .toc {
    position: static;
    padding: 18px 12px;
    margin: 24px 0 28px 0;
    font-size: 1em;
  }
}

/* MICRO-INTERAZIONI MAGAZINE PRO */
.related-card, .sidebar-widget, .tag, #back-to-top {
  transition: box-shadow 0.25s, transform 0.22s, background 0.22s, color 0.22s;
}
.related-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.13);
  transform: translateY(-6px) scale(1.04);
}
.sidebar-widget:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  transform: translateY(-2px) scale(1.01);
}
.tag:hover {
  background: var(--rosso-accent);
  color: #fff;
  transform: scale(1.08);
}
#back-to-top:hover {
  background: var(--rosso-dark);
  transform: scale(1.12) translateY(-4px);
}
.related-title a, .widget-title a {
  transition: color 0.18s, text-decoration 0.18s;
}
.related-title a:hover, .widget-title a:hover {
  color: var(--rosso-accent);
  text-decoration: underline;
}

/* HERO IMAGE SUPPORTO VERTICALI */
.hero-image-wrap, .hero-image {
  max-width: 100vw;
  object-fit: cover;
  min-height: 320px;
}
@media (max-width: 900px) {
  .hero-image-wrap, .hero-image {
    height: auto;
    min-height: 160px;
  }
}

.main-article {
  max-width: 800px;
  margin: 0 auto;
}
.main-article img, .article-content img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-top: 2em;
  margin-bottom: 2em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.main-article figure, .article-content figure {
  margin: 2em 0;
  text-align: left;
}
.main-article figcaption, .article-content figcaption {
  font-size: 0.98em;
  color: #888;
  margin-top: 0.5em;
  font-style: italic;
  line-height: 1.4;
}

/* Container principale contenuto */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden;
}
/* Tutte le immagini negli articoli */
.article-content img {
  max-width: 100% !important;
  height: auto !important;
  width: auto !important;
  display: block;
  margin: 32px auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}
.article-content img:hover {
  transform: scale(1.02);
}
/* Immagini con caption */
.wp-caption {
  max-width: 100% !important;
  margin: 32px auto !important;
  text-align: center;
}
.wp-caption img {
  margin: 0 !important;
  width: 100% !important;
  height: auto !important;
}
.wp-caption-text {
  font-size: 14px;
  color: #666;
  margin-top: 12px;
  font-style: italic;
  line-height: 1.4;
  padding: 0 16px;
}
/* Allineamenti WordPress */
.alignleft {
  float: left;
  margin: 0 24px 24px 0;
  max-width: 45%;
}
.alignright {
  float: right;
  margin: 0 0 24px 24px;
  max-width: 45%;
}
.aligncenter {
  display: block;
  margin: 32px auto;
  text-align: center;
}
.alignnone {
  display: block;
  margin: 32px auto;
}
/* Clearfix dopo immagini float */
.article-content::after {
  content: "";
  display: table;
  clear: both;
}
/* Dimensioni responsive */
@media (max-width: 768px) {
  .alignleft,
  .alignright {
    float: none;
    display: block;
    margin: 24px auto;
    max-width: 100%;
  }
  .article-content {
    padding: 0 16px;
  }
}
/* Gallery WordPress */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  margin: 0 !important;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 16px;
  font-size: 12px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
/* Lightbox CSS */
.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.image-lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}
.lightbox-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 24px;
  cursor: pointer;
  background: rgba(0,0,0,0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 480px) {
  .article-content img {
    margin: 20px auto;
    border-radius: 4px;
  }
}
@media (min-width: 481px) and (max-width: 768px) {
  .article-content img {
    margin: 28px auto;
  }
}
@media (min-width: 769px) {
  .article-content img {
    margin: 32px auto;
  }
}

/* --- MOBILE-FIRST UNIVERSALE PER ARTICOLI (REVISIONE) --- */
* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; padding: 0; overflow-x: hidden; }

/* Container principali: layout DESKTOP di default */
.article-container, .main-content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.main-article, .article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  font-size: 19px;
  line-height: 1.8;
  color: #232323;
  font-family: 'Georgia', serif;
}

/* Sidebar desktop */
.article-sidebar, .main-sidebar {
  position: sticky;
  top: 32px;
  height: fit-content;
  padding: 24px;
}

/* --- MOBILE: sotto i 1024px --- */
@media (max-width: 1023px) {
  .article-container, .main-content-grid {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    padding: 0 !important;
    max-width: 100vw !important;
  }
  .main-article, .article-content {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 16px !important;
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }
  .article-sidebar, .main-sidebar {
    position: static !important;
    width: 100% !important;
    margin-top: 32px !important;
    padding: 16px !important;
  }
  .sidebar-widget {
    margin-bottom: 16px !important;
    padding: 16px !important;
  }
}

/* Tipografia mobile-first */
.main-article p, .article-content p {
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin-bottom: 20px !important;
  padding: 0 !important;
  word-wrap: break-word !important;
}
.main-article h1, .main-article h2, .main-article h3,
.article-content h1, .article-content h2, .article-content h3 {
  word-wrap: break-word !important;
  hyphens: auto !important;
  color: #1a1a1a;
  font-family: 'Playfair Display', serif;
}
.main-article h2, .article-content h2 {
  font-size: 20px !important;
  line-height: 1.4 !important;
  margin: 24px 0 16px 0 !important;
}
.main-article h3, .article-content h3 {
  font-size: 18px !important;
  line-height: 1.4 !important;
  margin: 20px 0 12px 0 !important;
}

/* Immagini mobile-first */
.main-article img, .article-content img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 16px 0 !important;
  padding: 0 !important;
  border-radius: 8px !important;
  object-fit: cover !important;
}

/* Featured image mobile */
.featured-image-container, .hero-image-wrap {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.featured-image, .hero-image {
  width: 100% !important;
  height: 250px !important;
  object-fit: cover !important;
  display: block !important;
}
@media (min-width: 480px) and (max-width: 1023px) {
  .featured-image, .hero-image {
    height: 300px !important;
    border-radius: 8px !important;
    margin: 16px;
    width: calc(100% - 32px) !important;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .main-article, .article-content {
    padding: 24px;
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px !important;
  }
  .featured-image, .hero-image {
    height: 400px !important;
  }
}

/* Animazioni ridotte su mobile */
@media (max-width: 768px) {
  * { animation-duration: 0.1s !important; transition-duration: 0.1s !important; }
  .main-article img:hover, .article-content img:hover { transform: none !important; }
  .share-btn:hover { transform: none !important; }
  body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important; }
}

/* Debug responsive (rimuovi in produzione) */
/*
body::before {
  content: "Mobile: " screen-size;
  position: fixed;
  top: 0;
  left: 0;
  background: red;
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  z-index: 9999;
}
@media (min-width: 480px) { body::before { content: "Small: 480px+"; } }
@media (min-width: 768px) { body::before { content: "Medium: 768px+"; } }
@media (min-width: 1024px) { body::before { content: "Large: 1024px+"; } }
*/

/* === GOOGLE DISCOVERY HERO === */
.article-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 40px;
}
.hero-background {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6) contrast(1.1);
}
.hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
  z-index: 2;
}
.hero-category {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}
.hero-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  font-family: 'Georgia', serif;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.hero-excerpt {
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.4;
  opacity: 0.95;
  margin-bottom: 24px;
  font-weight: 300;
}
.hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  opacity: 0.9;
}
.author-hero {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar-hero {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.social-share-hero {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.share-btn-hero {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 18px;
}
.share-btn-hero:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* === BREADCRUMB === */
.breadcrumb-container {
  background: #f8f9fa;
  padding: 12px 0;
  border-bottom: 1px solid #e9ecef;
}
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 14px;
}
.breadcrumb a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: #0056b3;
  text-decoration: underline;
}
.breadcrumb-separator {
  margin: 0 8px;
  color: #6c757d;
}

/* === CONTENUTO DISCOVERY === */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Georgia', serif;
  font-size: 19px;
  line-height: 1.7;
  color: #2c3e50;
}
.article-content p {
  margin-bottom: 28px;
  text-align: justify;
  hyphens: auto;
}
.article-content p:first-of-type {
  font-size: 22px;
  font-weight: 400;
  color: #34495e;
  margin-bottom: 32px;
  position: relative;
  padding-left: 24px;
}
.article-content p:first-of-type::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  border-radius: 2px;
}
.article-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin: 48px 0 24px 0;
  line-height: 1.3;
  position: relative;
  padding-bottom: 12px;
}
.article-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  border-radius: 2px;
}
.article-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: #34495e;
  margin: 36px 0 18px 0;
  line-height: 1.4;
}

/* === GRASSETTO DISCOVERY === */
.article-content-modern strong,
.article-content-modern b {
  font-weight: 700 !important;
  color: #2c3e50 !important;
  background: linear-gradient(120deg, #fff3cd 0%, #fff3cd 100%);
  background-repeat: no-repeat;
  background-size: 100% 40%;
  background-position: 0 75%;
  padding: 2px 4px;
  border-radius: 3px;
  position: relative;
}
.article-content-modern .highlight,
.article-content-modern strong.highlight {
  background: linear-gradient(120deg, #ffeb3b 0%, #ffc107 100%);
  color: #1a1a1a !important;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(255, 193, 7, 0.3);
}

/* === LINK DISCOVERY === */
.article-content-modern a {
  color: #007bff !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  position: relative !important;
  padding: 2px 4px !important;
  border-radius: 4px !important;
  transition: all 0.3s ease !important;
  background: linear-gradient(120deg, transparent 0%, rgba(0, 123, 255, 0.1) 100%) !important;
}
.article-content-modern a:hover {
  background: linear-gradient(120deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0.2) 100%) !important;
  color: #0056b3 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2) !important;
}
.article-content-modern a::after {
  content: '↗' !important;
  font-size: 12px !important;
  margin-left: 4px !important;
  opacity: 0.7 !important;
}
.article-content-modern a[href^="/"]:not([href*="://"]):after {
  content: '→' !important;
}
.article-content-modern a[href*=".pdf"]:after,
.article-content-modern a[href*=".doc"]:after,
.article-content-modern a[href*=".zip"]:after {
  content: '⬇' !important;
}

/* === CITAZIONI DISCOVERY === */
.article-content-modern blockquote,
.article-content-modern .quote {
  position: relative;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-left: 5px solid #ff6b6b;
  padding: 24px 32px;
  margin: 32px 0;
  font-size: 20px;
  font-style: italic;
  color: #495057;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.article-content-modern blockquote::before {
  content: '"';
  font-size: 60px;
  color: #ff6b6b;
  position: absolute;
  top: -10px;
  left: 12px;
  font-family: Georgia, serif;
  opacity: 0.5;
}
.article-content-modern blockquote p {
  margin: 0;
  position: relative;
  z-index: 1;
}

/* === LISTE DISCOVERY === */
.article-content ul,
.article-content ol {
  margin: 28px 0;
  padding-left: 0;
}
.article-content li {
  list-style: none;
  position: relative;
  padding: 8px 0 8px 32px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.article-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #ff6b6b;
  font-weight: bold;
  font-size: 16px;
}
.article-content ol {
  counter-reset: list-counter;
}
.article-content ol li {
  counter-increment: list-counter;
}
.article-content ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* === MOBILE DISCOVERY === */
@media (max-width: 768px) {
  .article-hero {
    height: 50vh;
    min-height: 300px;
  }
  .hero-title {
    font-size: 24px;
  }
  .hero-meta {
    flex-direction: column;
    gap: 12px;
  }
  .article-content {
    padding: 20px 16px;
    font-size: 17px;
  }
  .article-content strong {
    display: inline-block;
    margin: 2px 0;
  }
}

@media (max-width: 600px) {
  .article-hero {
    height: auto;
    min-height: 420px;
    padding: 32px 0 24px 0;
    align-items: flex-start;
  }
  .hero-content {
    padding: 0 8px;
    max-width: 100vw;
  }
  .hero-category {
    margin-bottom: 18px;
    font-size: 11px;
    padding: 7px 16px;
  }
  .hero-title {
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.25;
    word-break: break-word;
  }
  .hero-excerpt {
    font-size: 15px;
    margin-bottom: 18px;
  }
  .hero-meta {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 18px !important;
    margin-bottom: 12px;
  }
  .author-hero {
    gap: 10px !important;
  }
  .author-avatar-hero {
    width: 32px;
    height: 32px;
  }
  .social-share-hero {
    gap: 8px;
    margin-top: 10px;
  }
  .share-btn-hero {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

.hero-meta-block {
  max-width: 800px;
  margin: 0 auto 24px auto;
  padding: 16px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
@media (max-width: 600px) {
  .hero-meta-block {
    background: rgba(255,255,255,0.85);
    border-radius: 12px;
    margin-top: -32px;
    margin-bottom: 18px;
    padding: 12px 8px 8px 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    max-width: 98vw;
  }
  .hero-meta {
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
  }
  .author-hero {
    gap: 8px !important;
  }
  .author-avatar-hero {
    width: 28px;
    height: 28px;
  }
  .social-share-hero {
    gap: 6px;
    margin-top: 6px;
  }
  .share-btn-hero {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
}

.meta-card {
  max-width: 420px;
  margin: -32px auto 32px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding: 18px 18px 10px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: center;
}
.meta-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eee;
}
.meta-author {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.meta-name {
  font-weight: 700;
  color: #222;
  font-size: 15px;
}
.meta-date {
  font-size: 13px;
  color: #666;
  opacity: 0.85;
}
.meta-social {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  justify-content: center;
}
.meta-social .share-btn-hero {
  width: 30px;
  height: 30px;
  font-size: 14px;
  border-radius: 50%;
  background: #f8f9fa;
  color: #007bff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.meta-social .share-btn-hero:hover {
  background: #007bff;
  color: #fff;
}
@media (max-width: 600px) {
  .meta-card {
    max-width: 98vw;
    margin: -24px auto 18px auto;
    padding: 12px 6px 8px 6px;
    border-radius: 12px;
    gap: 8px;
  }
  .meta-avatar {
    width: 32px;
    height: 32px;
  }
  .meta-social {
    gap: 7px;
  }
  .meta-social .share-btn-hero {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
}

/* --- LAYOUT MODERNO DISCOVERY --- */
.article-hero-modern {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 auto 0 auto;
  max-width: 900px;
  padding: 0 0 32px 0;
}
.hero-content-modern {
  width: 100%;
  padding: 0 0 18px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-category-modern {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 7px 18px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 18px;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}
.hero-title-modern {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.13;
  color: #181818;
  margin-bottom: 10px;
  margin-top: 0;
}
.hero-excerpt-modern {
  font-size: 1.18rem;
  color: #444;
  margin-bottom: 18px;
  font-weight: 400;
  line-height: 1.4;
}
.meta-row-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #222;
  margin-bottom: 0;
}
.meta-avatar-modern {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eee;
}
.meta-name-modern {
  font-weight: 700;
  color: #222;
  font-size: 15px;
}
.meta-date-modern {
  font-size: 14px;
  color: #666;
  opacity: 0.85;
}
.hero-image-modern-wrap {
  width: 100%;
  margin: 18px 0 0 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  background: #f8f9fa;
}
.hero-image-modern {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  max-height: 420px;
}
.vertical-social {
  position: fixed;
  top: 180px;
  left: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vertical-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #007bff;
  font-size: 20px;
  margin-bottom: 8px;
  transition: background 0.2s, color 0.2s;
}
.vertical-share-btn:hover {
  background: #0056b3;
  color: #fff;
}
.article-content-modern {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 19px;
  line-height: 1.7;
  color: #222;
}
@media (max-width: 900px) {
  .article-hero-modern, .article-content-modern {
    max-width: 98vw;
    padding: 0 8px 32px 8px;
  }
  .vertical-social {
    display: none;
  }
}
@media (max-width: 600px) {
  .hero-title-modern {
    font-size: 1.5rem;
  }
  .meta-row-modern {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 14px;
  }
  .hero-image-modern-wrap {
    border-radius: 10px;
    margin-top: 12px;
  }
  .hero-image-modern {
    border-radius: 10px;
    max-height: 220px;
  }
  .article-content-modern {
    padding: 24px 4px;
    font-size: 17px;
  }
}

.card-cats-bottom {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 10px;
  z-index: 2;
  flex-wrap: wrap;
}
.card-cat-badge {
  background: linear-gradient(135deg, #e07a5f, #c86f3c);
  color: #fff;
  padding: 7px 18px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(200, 111, 60, 0.13);
  display: inline-block;
  transition: background 0.2s, color 0.2s;
  line-height: 1.1;
}
.card-cat-badge:hover {
  background: linear-gradient(135deg, #c86f3c, #e07a5f);
  color: #fff;
}
@media (max-width: 600px) {
  .card-cats-bottom {
    left: 8px;
    bottom: 8px;
    gap: 6px;
  }
  .card-cat-badge {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 14px;
  }
}

.related-articles-pro {
  max-width: 900px;
  margin: 48px auto 0 auto;
  padding: 0 0 32px 0;
}
.related-title-pro {
  font-size: 1.3rem;
  color: #c86f3c;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.related-cards-pro {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.related-card-pro {
  display: flex;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1 1 340px;
  max-width: 420px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.related-card-pro:hover {
  box-shadow: 0 8px 32px rgba(200,111,60,0.13);
  transform: translateY(-3px) scale(1.02);
}
.related-thumb-pro {
  width: 120px;
  height: 100px;
  object-fit: cover;
  border-radius: 0;
  flex-shrink: 0;
  background: #eee;
}
.related-info-pro {
  padding: 16px 18px 12px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.related-card-title-pro {
  font-size: 1.08rem;
  font-weight: 700;
  color: #232323;
  margin: 0 0 6px 0;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.related-meta-pro {
  font-size: 0.98em;
  color: #9CAF88;
  margin-bottom: 6px;
}
.related-excerpt-pro {
  font-size: 0.99em;
  color: #555;
  margin: 0;
  line-height: 1.4;
  text-overflow: ellipsis;
  overflow: hidden;
}
@media (max-width: 900px) {
  .related-cards-pro {
    flex-direction: column;
    gap: 18px;
  }
  .related-card-pro {
    max-width: 100%;
    flex-direction: row;
  }
  .related-thumb-pro {
    width: 90px;
    height: 80px;
  }
}
@media (max-width: 600px) {
  .related-articles-pro {
    padding: 0 0 18px 0;
  }
  .related-info-pro {
    padding: 12px 10px 10px 10px;
  }
  .related-thumb-pro {
    width: 70px;
    height: 60px;
  }
}

  