/* ===================================================
   style.css — Emanuele Prisco
   Font: Montserrat (loaded via WebFontLoader)
   Color palette: Italian flag-inspired, professional
   Covers: homepage + single article/post pages
   =================================================== */

/* --------------------------------------------------
   0. CSS Variables & Reset
   -------------------------------------------------- */
:root {
  --color-primary:    #1a3a6e;   /* deep navy blue */
  --color-accent:     #c8102e;   /* Italian-flag red */
  --color-gold:       #c8a84b;   /* warm gold */
  --color-dark:       #111827;
  --color-mid:        #374151;
  --color-muted:      #6b7280;
  --color-light:      #f3f4f6;
  --color-white:      #ffffff;
  --color-border:     #e5e7eb;

  --font-main:        'Montserrat', sans-serif;

  --header-height:    80px;
  --max-width:        1200px;
  --section-pad:      80px 24px;
  --radius:           6px;
  --transition:       0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-mid);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary);
}

ul {
  list-style: none;
}

/* --------------------------------------------------
   1. Layout Wrappers
   -------------------------------------------------- */
.whole-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.elementor-container,
.elementor-section > .elementor-container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

.elementor-section {
  width: 100%;
  padding: 60px 0;
  position: relative;
}

.elementor-section.elementor-section-stretched {
  width: 100% !important;
  left: 0 !important;
}

.elementor-column-gap-default > .elementor-container {
  gap: 24px;
}

.elementor-column-gap-wider > .elementor-container {
  gap: 48px;
}

/* Flex columns */
.elementor-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.elementor-col-100 { flex: 0 0 100%; max-width: 100%; }
.elementor-col-50  { flex: 0 0 50%;  max-width: 50%;  }
.elementor-col-33  { flex: 0 0 33.333%; max-width: 33.333%; }

.elementor-widget-wrap {
  padding: 16px;
}

/* --------------------------------------------------
   2. Preloader
   -------------------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.preload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pace-progress {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  overflow: hidden;
}

.pace-progress-inner {
  height: 100%;
  width: 60%;
  background: var(--color-gold);
  border-radius: 99px;
  animation: loading 1.2s ease-in-out infinite alternate;
}

@keyframes loading {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.pace-activity {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.skip-preloader {
  color: rgba(255,255,255,0.5);
  font-size: 20px;
  margin-top: 20px;
  transition: color var(--transition);
}

.skip-preloader:hover {
  color: var(--color-white);
}

/* --------------------------------------------------
   3. Page Background
   -------------------------------------------------- */
.page-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--color-light);
}

/* --------------------------------------------------
   4. Header
   -------------------------------------------------- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 140px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  transition: background var(--transition), box-shadow var(--transition);
}

#header .head {
  /* max-width: var(--max-width); */
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo-container a.logo {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition);
}

.logo-container a.logo:hover {
  color: var(--color-accent);
}

/* Navigation */
.navigation-bar {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

ul.top-menu {
  display: flex;
  align-items: center;
  /* gap: 4px; */
  flex-wrap: wrap;
}

ul.top-menu li a {
  display: block;
padding-left: 8px;
padding-right: 8px;
  color: var(--color-dark);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

ul.top-menu li a em {
  font-style: normal;
}

ul.top-menu li a:hover,
ul.top-menu li.current-menu-item a {
  color: var(--color-accent);
  background: rgba(200, 16, 46, 0.06);
}

/* Mobile menu button */
#mobile-menu-opener {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color-dark);
  padding: 8px;
  border-radius: var(--radius);
  transition: color var(--transition);
}

#mobile-menu-opener:hover {
  color: var(--color-accent);
}

/* --------------------------------------------------
   5. Hero Section (Video Background)
   -------------------------------------------------- */
.elementor-element-247e4af {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
}

.elementor-background-video-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.elementor-background-video-hosted {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.elementor-background-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 58, 110, 0.82) 0%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

.elementor-element-247e4af .elementor-container {
  position: relative;
  z-index: 2;
}

/* Shape dividers */
.elementor-shape {
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
  pointer-events: none;
}

.elementor-shape-bottom {
  bottom: -1px;
}

.elementor-shape-top {
  top: -1px;
}

.elementor-shape svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.elementor-shape-fill {
  fill: var(--color-white);
}

/* Hero heading */
.elementor-element-247e4af .elementor-heading-title {
  color: var(--color-white);
  font-weight: 900;
  line-height: 1.1;
}

.elementor-element-247e4af h1.elementor-heading-title,
.elementor-element-247e4af .elementor-size-xxl {
  font-size: clamp(2.5rem, 6vw, 5rem);
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.elementor-element-247e4af .elementor-size-large {
  font-size: clamp(1.1rem, 2.5vw, 1.75rem);
  font-weight: 400;
  opacity: 0.88;
}

/* --------------------------------------------------
   6. Second Hero / Banner Section (Fratelli d'Italia)
   -------------------------------------------------- */
.elementor-element-cc3e1e7,
section[data-id="cc3e1e7"],
section.elementor-top-section:nth-of-type(2) {
  padding: 60px 0;
  background: var(--color-light);
}

/* --------------------------------------------------
   7. About / Parliament Stats Section
   -------------------------------------------------- */
#about,
.elementor-element-36a13242 {
  background: var(--color-primary);
  padding: 100px 0;
  position: relative;
}

#about .elementor-background-overlay {
  background: linear-gradient(
    135deg,
    rgba(26, 58, 110, 0.95) 0%,
    rgba(10, 20, 50, 0.97) 100%
  );
}

/* Section headings */
#about h2.elementor-heading-title,
.elementor-element-36a13242 h2.elementor-heading-title {
  color: var(--color-white);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 8px;
}

#about span.elementor-heading-title,
.elementor-element-36a13242 span.elementor-heading-title {
  color: var(--color-gold);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 40px;
}

/* Divider */
.elementor-divider {
  padding: 12px 0;
}

.elementor-divider-separator {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 99px;
  margin: 0 auto 32px;
}

/* Counter widgets */
.elementor-counter {
  text-align: center;
  padding: 32px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: background var(--transition), transform var(--transition);
}

.elementor-counter:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.elementor-counter-number-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 12px;
}

.elementor-counter-title {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------
   8. Bio / Profile Section
   -------------------------------------------------- */
.elementor-element-7cad5495 {
  background: var(--color-white);
  padding: 100px 0;
}

.elementor-element-7cad5495 h2.elementor-heading-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.elementor-element-7cad5495 .elementor-divider-separator {
  background: var(--color-accent);
  margin: 0 0 24px;
}

.elementor-widget-text-editor p {
  color: var(--color-mid);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Bio photo column */
.elementor-element-63b812db {
  background-size: cover;
  background-position: center;
  min-height: 500px;
  border-radius: 12px;
  overflow: hidden;
}

/* --------------------------------------------------
   9. Buttons
   -------------------------------------------------- */
.elementor-button-wrapper {
  display: inline-block;
  margin-top: 8px;
}

.elementor-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: var(--color-accent);
  color: var(--color-white) !important;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  border: 2px solid var(--color-accent);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
}

.elementor-button:hover {
  background: transparent;
  color: var(--color-accent) !important;
  transform: translateY(-2px);
}

.elementor-button-content-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.elementor-button-icon i {
  font-size: 0.9em;
}

/* --------------------------------------------------
   10. News Section
   -------------------------------------------------- */
.elementor-element-463a389d {
  background: var(--color-light);
  padding: 100px 0;
}

.elementor-element-463a389d span.elementor-heading-title {
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  text-align: center;
  margin-bottom: 8px;
}

.elementor-element-463a389d h2.elementor-heading-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 8px;
}

/* Posts grid */
.bricks-frame.posts-bricks {
  width: 100%;
}

.posts-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.grid-master {
  display: none;
}

.archive-item {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}

.archive-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.item-image.post-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.item-image.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.archive-item:hover .item-image.post-media img {
  transform: scale(1.05);
}

.archive-item .formatter {
  padding: 24px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--color-muted);
  flex-wrap: wrap;
}

.post-meta time {
  font-weight: 600;
}

.post-meta .separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-muted);
  display: inline-block;
}

.post-meta-categories a {
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

h2.post-title.entry-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

h2.post-title.entry-title a {
  color: var(--color-dark);
  transition: color var(--transition);
}

h2.post-title.entry-title a:hover {
  color: var(--color-accent);
}

.entry-summary {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.entry-summary .more-link {
  font-weight: 700;
  color: var(--color-accent);
  font-size: 0.85rem;
}

/* --------------------------------------------------
   11. Social / Contact Section
   -------------------------------------------------- */
.elementor-element-719ce37e {
  background: var(--color-primary);
  padding: 100px 0;
  position: relative;
}

.elementor-element-719ce37e .elementor-background-overlay {
  background: linear-gradient(
    135deg,
    rgba(26, 58, 110, 0.95) 0%,
    rgba(10, 20, 50, 0.97) 100%
  );
}

.elementor-element-719ce37e div.elementor-heading-title,
.elementor-element-719ce37e span.elementor-heading-title {
  color: var(--color-white);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
}

.elementor-element-719ce37e .elementor-divider-separator {
  background: var(--color-gold);
}

/* Icon list (social links) */
.elementor-icon-list-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.elementor-icon-list-item {
  display: flex;
  align-items: center;
}

.elementor-icon-list-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.elementor-icon-list-item a:hover {
  color: var(--color-gold);
}

.elementor-icon-list-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 1rem;
  color: var(--color-gold);
  transition: background var(--transition);
  flex-shrink: 0;
}

.elementor-icon-list-item a:hover .elementor-icon-list-icon {
  background: var(--color-gold);
  color: var(--color-dark);
}

.elementor-icon-list-text {
  color: inherit;
}

/* Non-link list items */
.elementor-icon-list-item:not(:has(a)) {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  gap: 12px;
}

/* --------------------------------------------------
   12. Spacers
   -------------------------------------------------- */
.elementor-spacer-inner {
  height: 40px;
}

/* --------------------------------------------------
   13. Footer
   -------------------------------------------------- */
#footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.75);
}

.foot-widgets {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 40px;
}

.foot-widgets.four-col .foot-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.foot-content .widget h3.title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-white);
  margin-bottom: 20px;
}

.foot-content .widget h3.title span {
  position: relative;
  padding-bottom: 10px;
}

.foot-content .widget h3.title span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 99px;
}

.foot-content .textwidget p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

/* Footer social links */
.foot-content .social.with_icon {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color var(--transition);
}

.foot-content .social.with_icon:hover {
  color: var(--color-gold);
}

.foot-content .social.with_icon i,
.foot-content .phone.with_icon i,
.foot-content .email.with_icon i {
  width: 18px;
  text-align: center;
  color: var(--color-gold);
}

.foot-content .phone.with_icon,
.foot-content .email.with_icon {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color var(--transition);
}

.foot-content .phone.with_icon:hover,
.foot-content .email.with_icon:hover {
  color: var(--color-gold);
}

/* Footer recent posts */
.widget_recent_posts .item {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.widget_recent_posts .item:last-child {
  border-bottom: none;
}

.widget_recent_posts .post-title {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  transition: color var(--transition);
}

.widget_recent_posts .post-title:hover {
  color: var(--color-gold);
}

.widget_recent_posts time {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* Footer nav */
.widget_nav_menu ul.menu li {
  margin-bottom: 8px;
}

.widget_nav_menu ul.menu li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.widget_nav_menu ul.menu li a:hover {
  color: var(--color-gold);
}

/* Footer bottom bar */
.foot-items {
  background: rgba(0,0,0,0.3);
}

.foot-items .foot-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.foot-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.foot-text a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.foot-text a:hover {
  color: var(--color-gold);
}

/* Footer social circles */
.socials.circles {
  display: flex;
  gap: 10px;
}

.socials.circles a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.socials.circles a:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
}

/* --------------------------------------------------
   14. Back to Top Button
   -------------------------------------------------- */
#to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), background var(--transition), transform var(--transition);
}

#to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#to-top:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

/* Content overlay */
#content-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

/* --------------------------------------------------
   15. Main content area
   -------------------------------------------------- */
#mid {
  flex: 1;
  margin-top: var(--header-height);
}

#mid.no-top-space {
  margin-top: 250px;
}

.content-limiter {
  max-width: 100%;
}

.content-box {
  background: transparent;
}

.formatter {
  width: 100%;
}

.real-content {
  width: 100%;
}

/* --------------------------------------------------
   16. Animations
   -------------------------------------------------- */
.elementor-invisible {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.elementor-invisible.animated,
.elementor-invisible.elementor-animated {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------
   17. Responsive — Tablet
   -------------------------------------------------- */
@media (max-width: 1024px) {
  .elementor-col-33 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .foot-widgets.four-col .foot-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .posts-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------
   18. Responsive — Mobile
   -------------------------------------------------- */
@media (max-width: 767px) {
  :root {
    --section-pad: 60px 16px;
  }

  ul.top-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 16px;
    gap: 4px;
  }

  ul.top-menu.open {
    display: flex;
  }

  #mobile-menu-opener {
    display: flex;
  }

  .elementor-col-50,
  .elementor-col-33 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .elementor-element-247e4af {
    min-height: 90vh;
    text-align: center;
  }

  .posts-grid-container {
    grid-template-columns: 1fr;
  }

  .foot-widgets.four-col .foot-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .foot-items .foot-content {
    flex-direction: column;
    text-align: center;
  }

  .elementor-counter-number-wrapper {
    font-size: 2.25rem;
  }

  .elementor-divider-separator {
    margin: 0 auto 24px;
  }
}

/* ===================================================
   SINGLE ARTICLE / POST PAGE STYLES
   Applies to: article detail pages with sidebar
   =================================================== */

/* --------------------------------------------------
   A1. Article page layout — two-column with sidebar
   -------------------------------------------------- */

/* Override: article pages use layout-fixed + with-sidebar */
#mid.with-sidebar {
  margin-top: var(--header-height);
}

#mid.with-sidebar #content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

#mid.with-sidebar .content-limiter {
  width: 100%;
}

#mid.with-sidebar #col-mask {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* --------------------------------------------------
   A2. Title Bar / Article Hero
   -------------------------------------------------- */

.title-bar {
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    #0d2244 100%
  );
  padding: calc(var(--header-height) + 60px) 24px 64px;
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal texture overlay */
.title-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.015) 40px,
    rgba(255,255,255,0.015) 80px
  );
  pointer-events: none;
}

/* Accent bar at the bottom edge */
.title-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-accent) 0%,
    var(--color-gold) 50%,
    var(--color-accent) 100%
  );
}

.title-bar .overlay-color {
  position: relative;
  z-index: 2;
}

.title-bar .in {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

/* Date in title bar */
.title-bar .post-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.title-bar .post-meta time {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 16px;
  border-radius: 99px;
  border: 1px solid rgba(200, 168, 75, 0.3);
}

/* Article H1 in title bar */
.title-bar h1.page-title,
.title-bar h1.entry-title {
  color: var(--color-white);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.25;
  max-width: 860px;
  margin: 0 auto;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* Decorative title underline */
.title-bar .titles::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 99px;
  margin: 24px auto 0;
}

/* --------------------------------------------------
   A3. Article Content Box
   -------------------------------------------------- */

.content-box {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.07);
}

/* Hidden duplicate heading (screen-reader only, inside .hentry) */
.post-hatom-fix {
  display: none;
}

/* Article body text */
.real-content.entry-content {
  padding: 40px 48px 48px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-mid);
}

.real-content.entry-content p {
  margin-bottom: 1.4em;
}

.real-content.entry-content p:last-child {
  margin-bottom: 0;
}

.real-content.entry-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.real-content.entry-content a:hover {
  color: var(--color-primary);
}

.real-content.entry-content strong,
.real-content.entry-content b {
  font-weight: 700;
  color: var(--color-dark);
}

.real-content.entry-content em,
.real-content.entry-content i {
  font-style: italic;
}

.real-content.entry-content h2,
.real-content.entry-content h3,
.real-content.entry-content h4 {
  font-weight: 900;
  color: var(--color-primary);
  margin: 1.8em 0 0.6em;
  line-height: 1.3;
}

.real-content.entry-content h2 { font-size: 1.4rem; }
.real-content.entry-content h3 { font-size: 1.2rem; }
.real-content.entry-content h4 { font-size: 1rem; }

.real-content.entry-content ul,
.real-content.entry-content ol {
  margin: 0 0 1.4em 1.4em;
}

.real-content.entry-content ul { list-style: disc; }
.real-content.entry-content ol { list-style: decimal; }

.real-content.entry-content li {
  margin-bottom: 0.4em;
}

.real-content.entry-content blockquote {
  border-left: 4px solid var(--color-accent);
  margin: 2em 0;
  padding: 16px 24px;
  background: rgba(200, 16, 46, 0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-mid);
}

/* --------------------------------------------------
   A4. Share Buttons (AddToAny)
   -------------------------------------------------- */

.addtoany_share_save_container {
  padding: 28px 48px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 8px;
}

/* Hide the AddToAny container if it has no children loaded */
.addtoany_share_save_container:empty {
  display: none;
}

.addtoany_header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  margin-bottom: 12px;
}

/* Share button row */
.a2a_kit.addtoany_list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Individual share buttons */
.a2a_kit .a2a_button_facebook,
.a2a_kit .a2a_button_twitter,
.a2a_kit .a2a_button_whatsapp,
.a2a_kit .a2a_button_telegram,
.a2a_kit .a2a_button_email,
.a2a_kit .a2a_button_copy_link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 0;                  /* hides any text node */
  background-size: 18px 18px;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.a2a_kit .a2a_button_facebook  { background-color: #1877f2; }
.a2a_kit .a2a_button_twitter   { background-color: #1da1f2; }
.a2a_kit .a2a_button_whatsapp  { background-color: #25d366; }
.a2a_kit .a2a_button_telegram  { background-color: #229ed9; }
.a2a_kit .a2a_button_email     { background-color: #6b7280; }
.a2a_kit .a2a_button_copy_link { background-color: var(--color-primary); }

.a2a_kit a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  filter: brightness(1.1);
}

/* --------------------------------------------------
   A5. Sidebar
   -------------------------------------------------- */

#secondary.widget-area {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Sidebar widget card */
#secondary .widget {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  padding: 28px 24px;
}

/* Widget title */
#secondary .widget h3.title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-white);
  background: var(--color-primary);
  margin: -28px -24px 24px;
  padding: 12px 20px;
  position: relative;
}

#secondary .widget h3.title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-gold);
}

/* --------------------------------------------------
   A6. Sidebar — Recent Posts Widget
   -------------------------------------------------- */

#secondary .widget_recent_posts .item,
#secondary .widget_about_posts .item {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

#secondary .widget_recent_posts .item:last-child,
#secondary .widget_about_posts .item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#secondary .widget_recent_posts .item:first-child,
#secondary .widget_about_posts .item:first-child {
  padding-top: 0;
}

#secondary .post-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.45;
  margin-bottom: 6px;
  transition: color var(--transition);
}

#secondary .post-title:hover {
  color: var(--color-accent);
}

#secondary time.entry-date {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------
   A7. Sidebar — Tag Cloud Widget
   -------------------------------------------------- */

#secondary .widget_tag_cloud .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#secondary .widget_tag_cloud .tag-cloud-link {
  display: inline-block;
  padding: 5px 12px;
  background: var(--color-light);
  color: var(--color-mid) !important;
  font-size: 0.78rem !important; /* override inline font-size */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 99px;
  border: 1px solid var(--color-border);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  line-height: 1;
  text-decoration: none;
}

#secondary .widget_tag_cloud .tag-cloud-link:hover {
  background: var(--color-accent);
  color: var(--color-white) !important;
  border-color: var(--color-accent);
}

/* --------------------------------------------------
   A8. Sidebar — Social Icons Widget
   -------------------------------------------------- */

#secondary .widget_a13_social_icons .socials.circles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#secondary .widget_a13_social_icons .socials.circles a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  color: var(--color-mid);
  font-size: 1rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
}

#secondary .widget_a13_social_icons .socials.circles a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
}

/* --------------------------------------------------
   A9. Responsive — Article page
   -------------------------------------------------- */

@media (max-width: 1024px) {
  #mid.with-sidebar #col-mask {
    grid-template-columns: 1fr 260px;
    gap: 32px;
  }

  .real-content.entry-content {
    padding: 32px 36px 40px;
  }

  .addtoany_share_save_container {
    padding: 24px 36px 0;
  }
}

@media (max-width: 767px) {
  #mid.with-sidebar #col-mask {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Sidebar goes below article on mobile */
  #secondary.widget-area {
    position: static;
  }

  .title-bar {
    padding: calc(var(--header-height) + 40px) 16px 48px;
  }

  .title-bar h1.page-title,
  .title-bar h1.entry-title {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  .real-content.entry-content {
    padding: 24px 20px 32px;
    font-size: 1rem;
  }

  .addtoany_share_save_container {
    padding: 20px 20px 0;
  }

  #mid.with-sidebar #content {
    padding: 0 16px 60px;
  }
}
