/*
Theme Name: Onoranze Funebri Premium
Description: A premium WordPress theme for Agenzia Memorial funeral services.
Author: Memorial Dev
Version: 3.0.0
*/

/* ═══════════════════════════════════════════
   DESIGN SYSTEM - Deep Blue Premium
   ═══════════════════════════════════════════ */
:root {
  --primary: #123d6a;
  --primary-light: #1a5276;
  --primary-dark: #0b2a4a;
  --primary-glow: rgba(18,61,106,0.12);
  --accent: #2980b9;
  --charcoal: #1e2a3a;
  --dark: #0f1923;
  --text: #3a4a5c;
  --text-light: #7a8a9c;
  --text-muted: #a0aebb;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-cream: #f0f3f7;
  --bg-dark: #0f1923;
  --border: #e2e8f0;
  --border-light: #edf2f7;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 20px rgba(0,0,0,0.07);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --shadow-xl: 0 25px 80px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ═══ RESET & BASE ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
body, html { width: 100%; margin: 0; padding: 0; overflow-x: hidden !important; scroll-behavior: smooth; }
#primary, .site-main { width: 100%; max-width: 100%; margin: 0; }
h1, h2, h3, h4, h5, h6, p, span, a, li, div { 
  overflow-wrap: break-word !important; 
  word-wrap: break-word !important; 
  word-break: normal !important; 
  line-height: 1.4;
}
img { max-width: 100% !important; height: auto !important; display: block !important; margin: 0 auto 20px !important; }
.container { max-width: 1600px; margin: 0 auto; padding: 0 40px; width: 100%; box-sizing: border-box; }
@media (max-width: 1200px) { .container { max-width: 1140px; } }
@media (max-width: 992px) { .container { max-width: 960px; padding: 0 30px; } }
@media (max-width: 768px) { .container { max-width: 100% !important; padding: 0 20px !important; } }
@media (max-width: 480px) { .container { padding: 0 15px !important; } }

.serif { font-family: var(--font-serif); }

/* ═══ TOP BAR ═══ */
.top-bar {
  background: var(--charcoal);
  color: rgba(255,255,255,0.65);
  font-size: clamp(0.6rem, 2vw, 0.78rem);
  padding: 8px 0;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
@media (max-width: 600px) {
  .top-bar-inner { justify-content: center; text-align: center; }
  .top-bar-right { gap: 12px !important; }
}
.top-bar-left a, .top-bar-right a {
  color: rgba(255,255,255,0.65);
  display: inline-flex; align-items: center; gap: 6px; transition: var(--transition);
}
.top-bar-left a:hover, .top-bar-right a:hover { color: #fff; }
.top-bar-right { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.top-bar-right svg { flex-shrink: 0; }

/* ═══ HEADER / NAV ═══ */
.site-header {
  background: #ffffff !important;
  position: relative !important;
  z-index: 1000;
  border-bottom: 2px solid #f0f0f0 !important;
  transition: all 0.3s ease;
  width: 100% !important;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.98) !important;
  backdrop-filter: blur(10px);
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08) !important;
  border-bottom-color: var(--gold) !important;
}
.nav-container {
  display: flex !important; 
  align-items: center !important; 
  justify-content: space-between !important; 
  min-height: 120px !important;
  max-width: 1600px;
  margin: 0 auto;
  padding: 10px 40px !important;
}
@media (max-width: 768px) {
  .nav-container { 
    height: 80px !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    position: relative !important; 
    padding: 0 15px !important;
  }
  .logo { 
    position: absolute !important; 
    left: 50% !important; 
    top: 50% !important; 
    transform: translate(-50%, -50%) !important; 
    width: auto !important; 
    margin: 0 !important;
  }
  .mobile-toggle {
    display: block !important;
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1001 !important;
    margin: 0 !important;
  }
}
.logo {
  display: flex !important; align-items: center !important; justify-content: flex-start !important; gap: 15px;
  text-decoration: none; color: #112a46 !important;
}
.logo-img { height: 75px !important; width: auto !important; object-fit: contain !important; max-width: 250px !important; transition: transform 0.3s; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong {
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; color: #112a46;
}
.logo-text small {
  font-size: 0.7rem; color: #8896ac;
  letter-spacing: 2px; text-transform: uppercase; font-weight: 500;
}
.nav-list { display: flex; gap: 0; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-list li { list-style: none; margin: 0; padding: 0; }
.nav-list li a, .nav-list .menu-item a {
  display: block; padding: 26px 20px;
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: #112a46 !important; text-decoration: none;
  position: relative; transition: all 0.3s ease;
}
.nav-list li a::after, .nav-list .menu-item a::after {
  content: '';
  position: absolute; bottom: 0; left: 18px; right: 18px; height: 2px;
  background: var(--gold);
  transform: scaleX(0); transition: transform 0.3s ease;
  border-radius: 2px;
}
.nav-list li a:hover, .nav-list .menu-item a:hover { color: var(--gold) !important; }
.nav-list li a:hover::after, .nav-list .menu-item a:hover::after { transform: scaleX(1); }
.nav-list li.current-menu-item a,
.nav-list li.current_page_item a { color: var(--gold) !important; }
.nav-list li.current-menu-item a::after,
.nav-list li.current_page_item a::after { transform: scaleX(1); }

/* Mobile */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--charcoal); margin: 5px 0; transition: var(--transition); border-radius: 2px; }
@media (max-width: 768px) {
  .mobile-toggle { 
    display: block; 
    z-index: 1001; 
    position: relative;
  }
  .main-nav {
    position: fixed; 
    top: 0; 
    right: 0; 
    width: 280px; 
    height: 100vh;
    background: #ffffff; 
    box-shadow: -10px 0 50px rgba(0,0,0,0.1);
    padding: 100px 32px 32px; 
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    z-index: 2000;
    transform: translateX(100%);
    visibility: hidden;
    overflow-y: auto;
  }
  .main-nav.open { 
    transform: translateX(0);
    visibility: visible;
  }
  .menu-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--charcoal);
    cursor: pointer;
    z-index: 2001;
    line-height: 1;
  }
  .nav-list { 
    flex-direction: column !important; 
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    width: 100% !important;
  }
  .nav-list li {
    width: 100% !important;
    text-align: center !important;
    list-style: none !important;
  }
  .nav-list li a, .nav-list .menu-item a {
    padding: 16px 0 !important; 
    border-bottom: 1px solid var(--border-light); 
    font-size: 0.95rem !important; 
    width: 100% !important; 
    color: var(--charcoal) !important; 
    font-weight: 600;
    display: block !important;
    text-align: center !important;
    text-decoration: none;
    white-space: nowrap !important;
  }
  .nav-list li a::after, .nav-list .menu-item a::after { display: none; }
  .mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .mobile-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
}

/* ═══ HERO ═══ */
.hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(15,25,35,0.82) 0%, rgba(18,61,106,0.5) 60%, rgba(41,128,185,0.3) 100%);
}
.hero-container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; color: white; }
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 400; line-height: 1.1;
  margin-bottom: 24px; color: white;
  text-shadow: 0 2px 40px rgba(0,0,0,0.2);
}
.hero-subtitle {
  font-size: 1.1rem; font-weight: 300; opacity: 0.88;
  margin-bottom: 40px; line-height: 1.8; max-width: 500px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn-gold, .btn-primary-solid {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: white;
  padding: 15px 38px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  border: none; border-radius: 50px;
  transition: var(--transition); text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 15px rgba(18,61,106,0.25);
}
.btn-gold:hover, .btn-primary-solid:hover {
  background: var(--primary-dark); color: white;
  transform: translateY(-2px); box-shadow: 0 8px 25px rgba(18,61,106,0.35);
}
.btn-outline-gold, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: white;
  padding: 14px 36px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  border: 2px solid rgba(255,255,255,0.4); border-radius: 50px;
  transition: var(--transition); text-decoration: none;
}
.btn-outline-gold:hover, .btn-outline:hover {
  background: white; color: var(--primary); border-color: white;
}
.btn-telegram {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: white;
  padding: 10px 22px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  border-radius: 50px; transition: var(--transition); text-decoration: none;
  box-shadow: 0 3px 12px rgba(18,61,106,0.2);
}
.btn-telegram:hover {
  background: var(--primary-dark); color: white;
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(18,61,106,0.3);
}
.btn-secondary {
  display: inline-flex; align-items: center;
  border: 2px solid var(--primary); color: var(--primary);
  padding: 13px 36px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  border-radius: 50px; transition: var(--transition); text-decoration: none;
}
.btn-secondary:hover { background: var(--primary); color: white; }

/* ═══ SECTIONS ═══ */
.section-padding { padding: 100px 0; }
.section-title {
  font-family: var(--font-serif); font-size: 2.6rem; font-weight: 400;
  color: var(--charcoal); margin-bottom: 16px; line-height: 1.2;
}
.section-subtitle { color: var(--text-light); font-size: 1rem; max-width: 580px; line-height: 1.8; }
.section-label {
  display: inline-block; color: var(--primary); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px;
  position: relative; padding-left: 44px;
}
.section-label::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 32px; height: 2px; background: var(--primary); border-radius: 2px;
}
.text-center { text-align: center; }
.text-center .section-label { padding-left: 0; }
.text-center .section-label::before { display: none; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ═══ HERO & PAGE BANNER ═══ */
.hero {
  height: 90vh; min-height: 600px; display: flex; align-items: center; justify-content: center;
  position: relative; text-align: center; color: white;
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}
.hero-container { 
  position: relative; 
  z-index: 2; 
  width: 100%; 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 24px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-badge {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 3px;
  color: rgba(255,255,255,0.95) !important; margin-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 6px; text-transform: uppercase;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 400; line-height: 1.1; margin-bottom: 24px;
  color: white !important; text-shadow: 0 4px 15px rgba(0,0,0,0.4);
  text-align: center;
}
.hero-title em { font-style: italic; color: var(--gold) !important; }
.hero-subtitle {
  font-size: 1.25rem; line-height: 1.7; color: rgba(255,255,255,0.95) !important;
  max-width: 700px; margin: 0 auto 40px; text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-actions { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.btn-gold {
  display: inline-block; background: white; color: var(--primary);
  padding: 16px 36px; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; border-radius: 50px;
  transition: var(--transition); text-decoration: none; border: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.btn-gold:hover { background: #f0f0f0; transform: translateY(-3px); box-shadow: 0 12px 25px rgba(0,0,0,0.3); }
.btn-outline-gold {
  display: inline-block; background: transparent; color: white !important; border: 2px solid white;
  padding: 14px 36px; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; border-radius: 50px;
  transition: var(--transition); text-decoration: none;
}
.btn-outline-gold:hover { background: white; color: var(--primary) !important; border-color: white; }
.page-banner {
  position: relative; padding: 100px 0 40px; text-align: center;
  color: white; background-size: cover; background-position: center;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(15,25,35,0.85), rgba(18,61,106,0.7));
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 {
  font-family: var(--font-serif); font-size: 3.2rem;
  font-weight: 400; margin-bottom: 16px;
}
.page-banner .breadcrumb {
  font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase;
  opacity: 0.65; font-weight: 500;
}
.page-banner .breadcrumb a { color: rgba(255,255,255,0.8); }
.page-banner .breadcrumb a:hover { color: white; }

/* ═══ VISION ═══ */
.vision-section { padding: 100px 0; background: var(--bg); }
.vision-container { display: flex; align-items: center; gap: 70px; }
.vision-logo-circle {
  flex-shrink: 0; width: 200px; height: 200px; border-radius: 50%;
  border: 2px solid var(--primary); display: flex; align-items: center;
  justify-content: center; text-align: center;
  background: var(--primary-glow);
}
.vision-circle-text h2 {
  font-family: var(--font-serif); font-size: 1.3rem; font-style: italic;
  color: var(--primary); line-height: 1.4;
}
.overline-title {
  color: var(--primary); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px;
}
.highlight-text { font-size: 1.8rem; color: var(--charcoal); line-height: 1.4; }

/* ═══ HISTORY ═══ */
.history-section { padding: 100px 0; background: var(--bg-soft); }
.history-container { display: flex; align-items: center; gap: 70px; }
.history-content { flex: 1; }
.history-content h2 { font-size: 2.4rem; color: var(--charcoal); margin-bottom: 20px; }
.history-description { font-size: 1.02rem; line-height: 1.9; color: var(--text); }
.history-images { flex: 1; position: relative; }
.history-img-primary { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.plaque-image-container {
  position: absolute; bottom: -30px; right: -20px;
  background: var(--primary); color: white;
  padding: 28px 32px; border-radius: var(--radius); text-align: center;
  box-shadow: var(--shadow-md);
}
.plaque-placeholder h3 { font-size: 1.2rem; margin-bottom: 4px; }
.plaque-placeholder small { color: rgba(255,255,255,0.6); font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; }

/* ═══ REPATRIATION ═══ */
.repatriation-section {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--charcoal) 0%, var(--dark) 100%);
  color: white;
}
.repatriation-container { display: flex; gap: 70px; align-items: center; }
.repat-content { flex: 1; }
.repat-content h2 { color: white; font-size: 2.2rem; margin-bottom: 20px; }
.highlight-sub { color: rgba(255,255,255,0.6); font-weight: 400; font-style: italic; }
.repat-visual { flex: 1; }
.map-glass-card {
  background: rgba(255,255,255,0.06); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.map-glass-card img { width: 100%; }
.card-overlay { padding: 24px; }
.card-overlay h4 { color: var(--accent); font-size: 0.95rem; margin-bottom: 8px; }
.card-overlay p { color: rgba(255,255,255,0.6); font-size: 0.88rem; line-height: 1.6; }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: white;
  padding: 12px 28px; border-radius: 50px; font-weight: 600; font-size: 0.82rem;
  transition: var(--transition); box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover { background: #1da851; color: white; transform: translateY(-2px); }

/* ═══ TELEGRAMS / NECROLOGI ═══ */
.telegrams-section { padding: 100px 0; background: #f4f6f9; }
.telegrams-header { text-align: center; margin-bottom: 60px; }
.telegrams-header h2 { font-size: 2.6rem; color: var(--charcoal); margin-bottom: 14px; }
.telegrams-header .subtitle { color: var(--text); font-size: 1.02rem; line-height: 1.8; }
.telegrams-grid {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 30px;
  justify-content: center;
  width: 100%;
}
.telegram-card {
  background: white; border-radius: 12px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: var(--transition-slow);
  border: none;
  display: flex; flex-direction: column;
}
.telegram-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.telegram-image-wrap { height: 210px; overflow: hidden; position: relative; }
.telegram-image {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.telegram-card:hover .telegram-image { transform: scale(1.05); }
.telegram-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-cream));
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.88rem; letter-spacing: 1px;
}
.telegram-card-content { padding: 32px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.telegram-category {
  display: block; color: #1a4b7b; font-size: 0.7rem;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px;
}
.telegram-title {
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 400;
  color: #a49683; margin-bottom: 14px; line-height: 1.25;
}
.telegram-title a { color: inherit; text-decoration: none; }
.telegram-desc { 
  font-size: 0.9rem; color: #9eabc0; line-height: 1.6; 
  margin-bottom: 24px; flex-grow: 1; 
}
.btn-telegram {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #11396b; color: white !important;
  padding: 14px 22px; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  border-radius: 50px; transition: var(--transition); text-decoration: none;
}
.btn-telegram:hover { background: #0b2a4a; color: white !important; box-shadow: 0 5px 15px rgba(17,57,107,0.3); }
.telegrams-footer { text-align: center; margin-top: 60px; }
.btn-secondary {
  display: inline-flex; align-items: center;
  border: 1px solid #c2c9d6; color: #7a8a9c;
  padding: 14px 36px; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  border-radius: 50px; transition: var(--transition); text-decoration: none;
  background: transparent;
}
.btn-secondary:hover { background: white; color: #11396b; border-color: #11396b; }

/* ═══ SERVICES ═══ */
.services { background: var(--bg-soft); }
.services-grid { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 24px; }
.modern-card {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition-slow);
  border: 1px solid var(--border-light);
}
.modern-card:hover {
  transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: transparent;
}
.modern-card-img { height: 200px; background-size: cover; background-position: center; }
.modern-card-body { padding: 24px; }
.modern-card-body .card-title { font-size: 1.08rem; color: var(--charcoal); margin-bottom: 10px; }
.card-desc { font-size: 0.86rem; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.btn-modern-action {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--primary); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none;
  transition: var(--transition);
}
.btn-modern-action:hover { color: var(--accent); gap: 8px; }

/* ═══ FOOTER ═══ */
.site-footer {
  background: var(--dark); color: rgba(255,255,255,0.6); padding: 80px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
}
.footer-col h3 {
  font-family: var(--font-serif); font-size: 1.25rem; color: white; margin-bottom: 18px;
}
.footer-col h4 {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.footer-col p { font-size: 0.88rem; line-height: 1.9; margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.5); font-size: 0.88rem; }
.footer-col ul li a:hover { color: white; }
.footer-emergency { margin-top: 16px; }
.footer-emergency a { color: var(--accent); font-size: 1.08rem; font-weight: 600; }
.footer-bottom {
  margin-top: 60px; border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0; text-align: center;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: rgba(255,255,255,0.4); }

.design-credit {
  margin-top: 25px;
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.design-credit a {
  color: rgba(255,255,255,0.4) !important;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}
.design-credit a:hover {
  color: var(--accent) !important;
  border-bottom-color: var(--accent);
}

.blog-archive-page .telegrams-grid { 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
}

/* ═══ SINGLE POST ═══ */
.single-post-container { padding: 0 !important; background: var(--white); margin: 0 !important; }
.single-post-container .container {
  max-width: 800px; background: transparent !important;
  padding: 20px 0; border-radius: 0;
  box-shadow: none !important; border: none !important;
}
.entry-content { font-size: 1.02rem; line-height: 1.85; color: var(--text); }
.entry-content p { margin-bottom: 1.2em; }
.entry-content img { border-radius: var(--radius); margin: 20px 0; }

/* Telegramma Comment */
#telegramma {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg); margin-top: 50px;
}
#telegramma h2 { color: var(--charcoal); }
.comment-form label {
  display: block; font-weight: 600; font-size: 0.82rem;
  color: var(--charcoal); margin-bottom: 6px; letter-spacing: 0.5px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 14px 18px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 0.95rem;
  transition: var(--transition); margin-bottom: 18px;
  background: var(--white);
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.comment-form .submit {
  background: var(--primary); color: white; border: none;
  padding: 15px 40px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  border-radius: 50px; cursor: pointer; transition: var(--transition);
  box-shadow: 0 4px 15px rgba(18,61,106,0.25);
}
.comment-form .submit:hover { background: var(--primary-dark); transform: translateY(-2px); }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 20px 0; border-bottom: 1px solid var(--border-light); }
.comment-author { font-weight: 700; color: var(--charcoal); }
.comment-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }

/* ═══ REVIEWS ═══ */
.review-card {
  background: white; border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow); text-align: center;
  transition: var(--transition-slow); border: 1px solid var(--border-light);
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; }
.review-card h3 { font-family: var(--font-serif); color: var(--charcoal); font-size: 1.3rem; margin-bottom: 16px; }
.review-card p { color: var(--text); font-size: 0.92rem; line-height: 1.85; font-style: italic; margin-bottom: 20px; }

/* ═══ CONTACT ═══ */
.contact-section { padding: 100px 0; }
.custom-card-contact {
  background: white; border-radius: var(--radius-lg); padding: 32px;
  border-left: 4px solid var(--primary); box-shadow: var(--shadow);
  margin-top: 24px;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 992px) {
  .telegrams-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 400px)) !important; justify-content: center; }
  .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .vision-container, .history-container, .repatriation-container { flex-direction: column; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .blog-archive-page .telegrams-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); justify-content: center; }
  .section-title { font-size: 2.2rem; }
  .hero-title { font-size: 2.8rem; }
}
@media (max-width: 600px) {
  .telegrams-grid { grid-template-columns: 1fr !important; }
  .services-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 75vh; }
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 1.8rem; }
  .page-banner h1 { font-size: 2rem; }
  .page-banner { padding: 100px 0 60px; }
  .section-padding { padding: 70px 0; }
  .contact-section .container { flex-direction: column !important; }
}

/* ═══ WP SPECIFIC ═══ */
.wp-block-image img { border-radius: var(--radius); }
.alignwide { max-width: 1200px; margin: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(-50vw + 50%); }
.screen-reader-text { clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute; width: 1px; }

/* Pagination */
.navigation.pagination { text-align: center; margin-top: 50px; }
.navigation.pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.navigation.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: white;
  border: 1px solid var(--border); border-radius: 50%;
  color: var(--charcoal); font-size: 0.85rem; font-weight: 600;
  transition: var(--transition); text-decoration: none;
}
.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover {
  background: var(--primary); color: white; border-color: var(--primary);
}
.navigation.pagination .prev, .navigation.pagination .next { width: auto; padding: 0 20px; border-radius: 50px; }

/* Historic Images Stack */
.about-historic-images { position:relative; width:100%; height:420px; }
.ah-img-1 { width:75%; height:260px; background:center/cover; background-color: var(--border-light); position:absolute; top:0; left:0; box-shadow:var(--shadow); border-radius:4px; }
.ah-img-2 { width:75%; height:260px; background:center/cover; background-color: white; position:absolute; bottom:0; right:0; z-index:2; box-shadow:var(--shadow-lg); border:8px solid white; border-radius:4px; }
@media (max-width: 992px) {
  .about-historic-images { height: 350px; max-width: 500px; margin: 0 auto; }
  .ah-img-1, .ah-img-2 { height: 220px; }
}
@media (max-width: 600px) {
  .about-historic-images { height: auto; }
  .ah-img-1, .ah-img-2 { position: static; width: 100%; height: auto; margin-bottom: 15px; }
}

/* Classic Services Grid */
.services-classic-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 992px) {
  .services-classic-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 600px) {
  .services-classic-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content { animation: fadeInUp 0.8s ease-out; }

/* ═══ HERO BADGE ═══ */
.hero-badge {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  padding-left: 44px; position: relative;
}
.hero-badge::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 32px; height: 1px; background: rgba(255,255,255,0.4);
}

/* ═══ TRUST STRIP ═══ */
.trust-strip {
  background: var(--primary);
  padding: 0;
  position: relative;
  z-index: 10;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  display: flex; align-items: center; gap: 14px;
  padding: 28px 24px;
  color: white;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.trust-item:last-child { border-right: none; }
.trust-icon { font-size: 1.6rem; flex-shrink: 0; }
.trust-item strong { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.5px; }
.trust-item p { margin: 0; font-size: 0.75rem; opacity: 0.65; line-height: 1.4; }
@media (max-width: 992px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
}
@media (max-width: 600px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
}

/* ═══ ABOUT SECTION ═══ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-img-stack { position: relative; }
.about-img-main {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-badge-card {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--primary); color: white;
  padding: 24px 28px; border-radius: var(--radius);
  text-align: center; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; align-items: center;
}
.badge-number {
  font-family: var(--font-serif); font-size: 2.8rem; font-weight: 700; line-height: 1;
  display: block; margin-bottom: 4px;
}
.badge-text {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.5px;
  opacity: 0.8; line-height: 1.4;
}
.about-desc {
  font-size: 1rem; line-height: 1.85; color: var(--text);
  margin-bottom: 16px;
}
.about-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px;
}
.about-feature {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 500; color: var(--charcoal);
}
.about-feature span { color: var(--primary); font-weight: 700; }
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-badge-card { right: 12px; bottom: -16px; }
}
@media (max-width: 600px) {
  .about-features { grid-template-columns: 1fr; }
}

/* ═══ SERVICES MODERN GRID ═══ */
.services-modern-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.service-modern-card {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition-slow);
  border: 1px solid var(--border-light);
}
.service-modern-card:hover {
  transform: translateY(-10px); box-shadow: var(--shadow-xl); border-color: transparent;
}
.smc-img { height: 210px; overflow: hidden; }
.smc-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.service-modern-card:hover .smc-img img { transform: scale(1.08); }
.smc-body { padding: 24px; }
.smc-body h3 {
  font-size: 1.1rem; color: var(--charcoal); margin-bottom: 10px;
}
.smc-body p {
  font-size: 0.86rem; color: var(--text-light); line-height: 1.7;
}
@media (max-width: 992px) {
  .services-modern-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-modern-grid { grid-template-columns: 1fr; }
}

/* ═══ CTA BAND ═══ */
.cta-band {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(160deg, var(--charcoal) 0%, var(--primary-dark) 100%);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.cta-band .hero-overlay {
  background: linear-gradient(160deg, rgba(15,25,35,0.9), rgba(18,61,106,0.8));
}

/* ═══ REVIEWS MARQUEE ═══ */
.reviews-marquee-wrapper {
  overflow: hidden; white-space: nowrap; width: 100%;
  background: #f8f9fa; padding: 60px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
  position: relative;
}
.reviews-marquee-wrapper::before, .reviews-marquee-wrapper::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 150px; z-index: 2; pointer-events: none;
}
.reviews-marquee-wrapper::before {
  left: 0; background: linear-gradient(to right, #f8f9fa, transparent);
}
.reviews-marquee-wrapper::after {
  right: 0; background: linear-gradient(to left, #f8f9fa, transparent);
}
.reviews-container { display: inline-flex; animation: marquee 60s linear infinite; }
.reviews-container:hover { animation-play-state: paused; }

.google-review-card {
  display: inline-flex; flex-direction: column; width: 360px; background: white; white-space: normal;
  border-radius: 8px; padding: 24px; margin: 0 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); border: 1px solid #ebebeb; font-family: var(--font-sans);
}
.gr-header { display: flex; align-items: center; margin-bottom: 14px; }
.gr-avatar {
  width: 40px; height: 40px; border-radius: 50%; color: white; display: flex;
  align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 600;
  margin-right: 12px; flex-shrink: 0;
}
.gr-meta { display: flex; flex-direction: column; flex-grow: 1; }
.gr-author { font-size: 0.95rem; font-weight: 600; color: #202124; line-height: 1.2; }
.gr-date { font-size: 0.75rem; color: #70757a; margin-top: 2px; }
.gr-logo { width: 24px; height: 24px; flex-shrink: 0; }
.gr-stars { margin-bottom: 14px; display: flex; gap: 2px; }
.gr-text {
  font-size: 0.92rem; color: #3c4043; line-height: 1.6; margin: 0; flex-grow: 1;
}
.google-badge-container {
  display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 30px;
}
.google-badge-score { font-size: 2.5rem; font-weight: 400; color: #202124; line-height: 1; }
.google-badge-stars { color: #FBBC05; font-size: 1.5rem; letter-spacing: 2px; margin-bottom: 4px; }
.google-badge-text { font-size: 0.9rem; color: #70757a; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ═══ MANIFESTO FORM ═══ */
.manifesto-section {
  position: relative; padding: 80px 0; background-size: cover; background-position: center; background-attachment: fixed;
}
.manifesto-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.65); z-index: 1;
}
.manifesto-header { position: relative; z-index: 2; margin-bottom: 40px; }
.manifesto-header h2 { font-family: var(--font-sans); color: white; }
.manifesto-form-box {
  position: relative; z-index: 2; background: white; border-radius: 6px; padding: 50px; max-width: 800px; margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.manifesto-form .form-group { margin-bottom: 24px; }
.manifesto-form label { display: block; font-weight: 700; color: #333; margin-bottom: 8px; font-size: 0.92rem; font-family: var(--font-sans); }
.manifesto-form .req { color: #e33; }
.manifesto-form input[type="text"], .manifesto-form input[type="email"], .manifesto-form input[type="tel"], .manifesto-form select, .manifesto-form textarea {
  width: 100%; border: 1px solid #ccc; border-radius: 4px; padding: 12px 14px; font-size: 0.95rem; font-family: var(--font-sans);
  background: #fff; transition: border-color 0.3s;
}
.manifesto-form input[type="text"]:focus, .manifesto-form input[type="email"]:focus, .manifesto-form input[type="tel"]:focus, .manifesto-form select:focus, .manifesto-form textarea:focus {
  border-color: #66afe9; outline: none; box-shadow: 0 0 8px rgba(102,175,233,0.3);
}
.manifesto-form .input-group-2 { display: flex; gap: 20px; }
.manifesto-form .input-group-2 > div { flex: 1; }
.manifesto-form small { display: block; margin-top: 6px; color: #666; font-size: 0.8rem; }
.manifesto-form small.text-blue { color: #31708f; }
.urgenza-info { color: #e74c3c; font-size: 1.1rem; margin-top: 15px; margin-bottom: 0; }
.importo-totale { font-size: 1.1rem; color: #555; font-family: var(--font-sans); margin-top: 5px; }
.security-q { font-size: 0.95rem; color: #333; margin-bottom: 8px; }
.btn-paypal {
  background: #f1f1f1; color: #333; border: 1px solid #ccc; padding: 10px 20px; border-radius: 3px;
  font-size: 0.95rem; cursor: pointer; transition: 0.2s; font-family: var(--font-sans);
}
.btn-paypal:hover { background: #e2e2e2; }
@media (max-width: 768px) {
  .manifesto-form .input-group-2 { flex-direction: column; gap: 15px; }
  .manifesto-form-box { padding: 30px 20px; }
}

/* ═══ RESPONSIVE UTILITIES ═══ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
@media (max-width: 992px) {
  .grid-2 { grid-template-columns: 1fr !important; text-align: center; }
  .grid-2 div { text-align: center !important; padding: 0 !important; }
  .grid-2 img { margin: 0 auto 20px; max-width: 90%; }
}

.flex-center { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 600px) {
  .flex-center { flex-direction: column; align-items: center; }
  .flex-center a { width: 100%; max-width: 300px; }
}
/* ═══ MOBILE FULL OPTIMIZATION ═══ */
@media (max-width: 768px) {
  :root { --section-pad: 50px; }
  .section-padding { padding: var(--section-pad) 0 !important; }
  .hero { min-height: 60vh !important; padding: 40px 0 !important; }
  .hero-title { font-size: 2.4rem !important; line-height: 1.2 !important; }
  .hero-subtitle { font-size: 1rem !important; margin-bottom: 25px !important; }
  .nav-container { height: 80px !important; }
  .logo-img { height: 60px !important; }
  
  .about-grid { gap: 30px !important; }
  .about-title, .section-title { font-size: 2rem !important; }
  
  .container { padding: 0 20px !important; }
  
  /* Stack everything */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; gap: 30px !important; }
  
  /* Buttons */
  .btn-gold, .btn-primary-solid, .btn-outline-gold, .btn-whatsapp { 
    width: 100% !important; 
    text-align: center; 
    justify-content: center;
    padding: 14px 20px !important;
    font-size: 0.85rem !important;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem !important; }
  .section-title { font-size: 1.8rem !important; }
  .nav-container { height: 70px !important; }
  .logo-img { height: 50px !important; }
}

/* ═══ COMMENTS ═══ */
.comments-area { 
  margin: 0 auto; padding: 20px 0; background: transparent !important; border-radius: 0; 
  box-shadow: none !important; border: none !important;
  max-width: 1600px;
}
.comments-title { font-family: var(--font-serif); color: var(--charcoal); margin-bottom: 40px; font-size: 2rem; }
.comment-list { list-style: none !important; padding: 0 !important; margin-bottom: 60px; }
.single-comment-item { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid #f0f0f0; list-style: none !important; }
.single-comment-item:last-child { border-bottom: none; }
.comment-content-wrap { display: flex; gap: 20px; }
.comment-avatar img { border-radius: 50%; box-shadow: 0 5px 15px rgba(0,0,0,0.08); border: 3px solid #fff; }
.comment-author-name { font-family: var(--font-serif); font-size: 1.25rem; color: #1a365d; margin-bottom: 5px; }
.comment-date { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }
.comment-text { margin: 15px 0; line-height: 1.7; color: #4a5568; font-size: 1.05rem; }
.comment-reply-link { 
  font-weight: 700; color: #a18a5e; font-size: 0.85rem; text-transform: uppercase; 
  letter-spacing: 1px; text-decoration: none; border-bottom: 1px solid transparent; transition: 0.3s;
}
.comment-reply-link:hover { border-bottom-color: #a18a5e; }

/* Comment Form */
.comment-respond { margin-top: 40px; }
.comment-reply-title { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 30px; }
.comment-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 25px; }
.comment-form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.comment-form-field label { font-weight: 700; font-size: 0.8rem; color: var(--charcoal); text-transform: uppercase; letter-spacing: 1px; }
.comment-form-field label span { color: #e53e3e; }
.comment-form-field input, .comment-form-field textarea { 
  padding: 14px 20px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 1rem; 
  background: #f8fafc; transition: all 0.3s; width: 100%;
}
.comment-form-field input:focus, .comment-form-field textarea:focus { 
  border-color: #a18a5e; background: #fff; outline: none; box-shadow: 0 0 0 4px rgba(161,138,94,0.1); 
}
.comment-textarea-wrap { margin-bottom: 30px; }
.btn-submit-comment { 
  border: none; cursor: pointer; padding: 16px 40px; background: #0d326b; color: white; 
  border-radius: 50px; font-weight: 700; letter-spacing: 1px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.btn-submit-comment:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(13,50,107,0.3); }

@media (max-width: 768px) {
  /* Targeted Stacking for CONTENT only */
  .grid-2, .grid-3, .grid-4, .about-grid, .vision-container, .history-container, .repatriation-container, .casa-grid { 
    display: flex !important; flex-direction: column !important; width: 100% !important; gap: 30px !important;
  }
  .grid-2 > div, .grid-3 > div, .grid-4 > div, .about-grid > div, .vision-container > div, .history-container > div, .casa-text-col, .casa-img-col {
    width: 100% !important; padding: 0 !important; margin: 0 !important; text-align: center !important;
  }
  
  /* MOBILE LOGO - Move to Left corner as requested */
  .nav-container { 
    display: flex !important; flex-direction: row !important; 
    align-items: center !important; justify-content: space-between !important; 
    position: relative !important; height: 95px !important;
    padding-top: 5px !important;
  }
  .logo { position: relative !important; left: 0 !important; top: auto !important; transform: none !important; width: auto !important; justify-content: flex-start !important; }
  .logo-img { height: 70px !important; max-width: 200px !important; margin: 0 !important; }
  
  .mobile-toggle { 
    position: relative !important; right: 0 !important; top: auto !important; 
    transform: none !important; display: flex !important;
    background: #f1f4f8 !important; border-radius: 6px !important; padding: 8px !important;
    border: 1px solid #deeefb !important;
  }
  
  /* Text alignment */
  .section-padding { padding: 40px 0 !important; }
  .section-title, .hero-title, h1, h2, h3 { text-align: center !important; text-shadow: 0 2px 10px rgba(0,0,0,0.3) !important; }
  p { text-align: center !important; max-width: 100% !important; margin-left: auto !important; margin-right: auto !important; }
}

@media (max-width: 480px) {
  .logo-img { height: 50px !important; }
  .container { padding: 0 15px !important; }
}

/* ═══ WHITE FOOTER ═══ */
.site-footer { 
  background: #ffffff !important; color: var(--charcoal) !important; 
  padding: 80px 0 0 !important; border-top: 1px solid #f0f0f0; margin-top: 0 !important;
}
.site-footer h4 { 
  color: var(--primary) !important; font-family: var(--font-serif); 
  font-size: 1.4rem; margin-bottom: 25px; 
}
.site-footer p, .site-footer div { color: var(--text) !important; font-size: 1rem; line-height: 1.8; }
.site-footer a { color: var(--primary) !important; text-decoration: none; transition: 0.3s; font-weight: 500; }
.site-footer a:hover { color: var(--primary); }
.site-footer ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.site-footer ul li { margin-bottom: 12px !important; list-style: none !important; }
.footer-bottom { 
  margin-top: 60px; padding: 30px 0; border-top: 1px solid #f5f5f5; 
  text-align: center; font-size: 0.9rem; color: #777;
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr !important; text-align: center !important; } }

/* ═══ FRONT PAGE SECTIONS ═══ */
.about-grid, .casa-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 60px; 
  align-items: center; 
}

.about-text-col { 
  text-align: center; 
  padding: 50px; 
  border: 1px solid rgba(255,215,0,0.2); 
  border-radius: 16px; 
  background: rgba(255,255,255,0.05); 
  backdrop-filter: blur(10px);
}

.about-heading { 
  font-size: clamp(2rem, 5vw, 3.2rem); 
  color: #fff; 
  margin-bottom: 25px; 
  line-height:1.2; 
}

/* History Images Layout */
.history-images { position: relative; height: 500px; margin-top: 50px; }

@media (max-width: 992px) {
  .about-grid, .casa-grid { grid-template-columns: 1fr; gap: 40px; }
  .history-images { height: auto; display: flex; flex-direction: column; gap: 20px; }
  .ah-img-1, .ah-img-2 { position: static; width: 100% !important; height: auto !important; }
  .about-text-col, .casa-text-col, .casa-img-col, .about-image-col { width: 100% !important; padding: 30px 20px !important; }
}

.casa-img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.casa-text-col { padding: 40px; }
.casa-title { font-family: var(--font-serif); font-size: clamp(2.2rem, 6vw, 3.5rem); color: #1a365d; margin-bottom: 25px; line-height: 1.1; }

/* ═══ CARD GRID (USED IN TEMPLATES) ═══ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.card {
  background: white;
  padding: 40px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  text-align: center;
  border: 1px solid var(--border-light);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* 📱 ═══════════════════════════════════════════
   CUSTOM MOBILE-FRIENDLY VERSION (V4.0)
   ═══════════════════════════════════════════ */
@media (max-width: 850px) {
  /* GLOBAL OVERFLOW FORCED FIX */
  html, body { width: 100% !important; max-width: 100% !important; overflow-x: hidden !important; position: relative; }
  .container { width: 100% !important; max-width: 100% !important; padding: 0 20px !important; box-sizing: border-box !important; }

  /* FONT SCALE-DOWN (Bigger & Bolder) */
  * { 
    word-break: normal !important; 
    overflow-wrap: break-word !important; 
    hyphens: none !important; 
    -webkit-hyphens: none !important;
  }
  h1 { font-size: 3rem !important; line-height: 1.1 !important; }
  h2, .about-headline, .casa-title-text { font-size: 2.5rem !important; line-height: 1.2 !important; }
  h3 { font-size: 1.8rem !important; }
  p, div { font-size: 1.05rem !important; line-height: 1.7 !important; }

  /* HEADER COMPACT VERSION */
  .site-header { 
    height: 70px !important; 
    position: sticky !important; 
    top: 0 !important; 
    background: #fff !important; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.08) !important; 
    border-bottom: 2px solid var(--gold) !important;
  }
  .nav-container { height: 70px !important; display: flex !important; align-items: center !important; justify-content: space-between !important; padding: 0 15px !important; }
  .logo-img { height: 45px !important; }
  .mobile-toggle { 
    padding: 10px !important;
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
  }
  .top-bar { display: none !important; } /* Hide heavy top bar on mobile */

  /* GRID FORCED STACKING (Targets Inline Styles) */
  [style*="display: grid"], .casa-widget-grid, .about-grid, .services-grid, .footer-grid, .cta-band .container {
    display: flex !important; 
    flex-direction: column !important; 
    gap: 30px !important;
  }
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

  /* CASA FUNERARIA WIDGET FIX */
  .casa-widget-section { padding: 60px 0 !important; background: #fff !important; }
  .casa-text-side { align-items: center !important; text-align: center !important; padding: 0 !important; border-left: none !important; }
  .casa-title-text { font-size: 2rem !important; text-align: center !important; }
  .casa-description-text { border-left: none !important; padding-left: 0 !important; text-align: center !important; font-size: 1rem !important; }
  .btn-whatsapp { width: 100% !important; justify-content: center !important; }

  /* HISTORY / ABOUT SECTION IMAGES */
  .history-images, .about-image-col, .about-img-stack { 
    height: auto !important; 
    margin-top: 30px !important; 
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
  }
  .ah-img-1, .ah-img-2, .about-img-main { 
    position: static !important; 
    width: 100% !important; 
    height: 220px !important; 
    object-fit: cover !important; 
    border-radius: 8px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
  }
}

/* ═══ WIDGET BASE STYLES ═══ */
.about-widget-section, .casa-widget-section {
  padding: 100px 0;
  background: #fff;
  overflow: hidden;
  width: 100%;
}
.telegrams-section { padding: 100px 0; background: #fff; }
.about-widget-grid, .casa-widget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text-content {
  background: white;
  padding: 50px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.03);
  border-top: 4px solid var(--gold);
  border: 1px solid #f0f0f0;
}
.about-badge-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 20px;
}
.about-headline {
  font-size: 3rem;
  color: #112a46;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 25px;
}
.about-description {
  font-size: 1.1rem;
  color: #55627f;
  line-height: 1.7;
  border-top: 1px solid #f0f0f0;
  padding-top: 25px;
}
.ah-img-box {
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.historic-images-stack {
  position: relative;
  height: 500px;
}
.ah-img-1-box { position: absolute; top: 0; right: 0; width: 80%; height: 350px; }
.ah-img-2-box { position: absolute; bottom: 0; left: 0; width: 70%; height: 320px; border: 8px solid white; z-index: 2; }

/* 📱 ═══════════════════════════════════════════
   BULLTEPROOF MOBILE VERSION (FINAL V5.0)
   ═══════════════════════════════════════════ */
@media (max-width: 850px) {
  /* GLOBAL LAYOUT STRETCHED */
  html, body { width: 100vw !important; max-width: 100vw !important; overflow-x: hidden !important; position: relative; }
  .container { width: 100% !important; max-width: 100% !important; padding: 0 10px !important; box-sizing: border-box !important; }

  /* TYPOGRAPHY FIX (Bigger Headlines) */
  * { hyphens: none !important; -webkit-hyphens: none !important; word-wrap: break-word !important; }
  h1 { font-size: 2.5rem !important; text-align: center !important; }
  h2, .about-headline, .casa-title-text { 
    font-size: clamp(2rem, 8vw, 2.6rem) !important; 
    line-height: 1.2 !important; 
    text-align: center !important;
    text-wrap: balance !important;
  }
  .about-headline em, h2 em { font-size: 1.1em !important; display: block; margin-top: 15px; font-weight: 400; }
  p, .about-description, .casa-description-text { font-size: 1rem !important; text-align: center !important; line-height: 1.7 !important; }

  /* HEADER & LOGO */
  .site-header { 
    height: 95px !important; 
    position: sticky !important; top: 0; z-index: 1000;
    background: #fff !important; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.1) !important;
    border-bottom: 2px solid var(--gold) !important;
  }
  .nav-container { height: 95px !important; justify-content: space-between !important; padding: 0 15px !important; }
  .logo { position: relative !important; left: 0 !important; transform: none !important; width: auto !important; display: flex !important; align-items: center !important; }
  .logo-img { height: 65px !important; max-height: 65px !important; width: auto !important; }
  .mobile-toggle { 
    width: 45px !important; height: 45px !important; 
    display: flex !important; align-items: center !important; justify-content: center !important;
    background: #f1f4f8 !important; border-radius: 6px !important; border: 1px solid #deeefb !important;
    margin-right: 0 !important;
  }
  .mobile-toggle .line { background: #112a46 !important; width: 22px !important; height: 2px !important; }

  /* WIDGET STACKING & SPACING */
  .about-widget-section, .casa-widget-section, .telegrams-section { 
    padding: 40px 0 !important; 
  }
  .about-widget-grid, .casa-widget-grid { display: flex !important; flex-direction: column !important; gap: 20px !important; }
  .about-text-content, .casa-text-side { 
    padding: 30px 20px !important; 
    width: 100% !important; 
    margin: 0 !important; 
    border-radius: 0 !important;
    box-shadow: none !important;
    border-left: none !important; border-right: none !important;
  }
  
  /* IMAGE STACKING */
  .historic-images-stack, .about-image-col { height: auto !important; min-height: auto !important; margin-top: 20px !important; }
  .ah-img-box { position: static !important; width: 100% !important; height: 250px !important; margin-bottom: 15px !important; border: none !important; }
  
  /* FLOATING CIRCLE WIDGET (FAB) */
  .call-now-bar, .call-now-button { 
    height: 65px !important; 
    width: 65px !important;
    min-width: 65px !important;
    min-height: 65px !important;
    padding: 0 !important;
    background: #25d366 !important; 
    position: fixed !important;
    bottom: 25px !important;
    right: 20px !important;
    left: auto !important; /* Move to right only */
    border-radius: 50% !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 30px rgba(37,211,102,0.4) !important;
    margin: 0 !important;
    animation: pulse-green 2s infinite;
  }
  .call-now-bar a, .call-now-button a { 
    width: 100% !important;
    height: 100% !important;
    display: flex !important; 
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
  }
  /* Show ONLY the icon in the circle */
  .call-now-bar a span, .call-now-button a span, .call-now-bar .cnb-text { 
    display: none !important; /* Hide "Chiama Ora" text */
  }
  .call-now-bar svg, .call-now-bar img, .call-now-button svg, .call-now-button i { 
    width: 32px !important; height: 32px !important; 
    margin: 0 !important;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
  }

  @keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102, 0); }
  }
}

/* 📝 COMMENT FORM FIXES (BULLTEPROOF GRID) */
.comments-area {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
}
.comment-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.comment-form-field {
  display: flex;
  flex-direction: column;
}
.comment-form-field label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #112a46;
  margin-bottom: 8px;
  text-transform: uppercase;
}
/* Translate WPForms sub-labels globally */
.wpforms-field-sublabel {
  visibility: hidden !important;
  position: relative !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.82rem !important;
  color: #7a8a9c !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}
.wpforms-field-name-first .wpforms-field-sublabel::after {
  content: 'Nome';
  visibility: visible !important;
  position: absolute;
  left: 0;
  top: 0;
}
.wpforms-field-name-last .wpforms-field-sublabel::after {
  content: 'Cognome';
  visibility: visible !important;
  position: absolute;
  left: 0;
  top: 0;
}
.comment-form-field input[type="text"],
.comment-form-field input[type="email"],
.comment-form-field input[type="url"],
.comment-form-field textarea {
  width: 100% !important;
  padding: 12px 18px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}
.comment-textarea-wrap { grid-column: 1 / -1; }

@media (max-width: 600px) {
  .comments-area { padding: 0 10px !important; margin: 30px auto !important; width: 100% !important; max-width: 100% !important; }
  .comment-form-grid { grid-template-columns: 1fr !important; gap: 15px; }
  .comment-form-field label { font-size: 0.8rem; }
}

/* 🧪 FINAL STRETCH & PADDING REDUCTION */
.single-post-container, .single-post-container .container, .blog-archive-page, .blog-archive-page .container {
  max-width: 1600px !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.entry-content, .comments-area {
  max-width: 1600px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.menu-close-btn { display: none; } /* Hide by default on desktop */

@media (max-width: 768px) {
  #primary, .site-main, .single-post-container, .single-post-container .container, .blog-archive-page, .blog-archive-page .container, .container { 
    width: 100% !important; 
    max-width: 100% !important; 
    padding: 0 !important; 
    margin: 0 !important; 
    border-radius: 0 !important;
    box-sizing: border-box !important;
  }
  .nav-container { padding: 0 15px !important; }
  .comments-area { 
    padding: 0 !important; 
    margin: 0 !important; 
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    background: transparent !important;
    text-align: left !important;
  }
  .comment-list { margin: 0 !important; padding: 0 !important; list-style: none !important; }
  .nav-list { margin: 0 !important; padding: 60px 20px 0 !important; }
  .single-comment-item {
    background: white !important;
    margin: 0 !important;
    padding: 40px 15px !important;
    border-radius: 0 !important;
    border-bottom: 2px solid #f0f3f7 !important;
    width: 100% !important;
    list-style: none !important;
  }
  .single-comment-item:nth-child(even) {
    background: #f8fafc !important;
  }
  
  /* Proper Structured Layout for Comments */
  .comment-content-wrap { display: flex !important; gap: 12px !important; align-items: flex-start !important; max-width: 100% !important; text-align: left !important; }
  .comment-avatar { flex-shrink: 0 !important; width: 45px !important; }
  .comment-avatar img { width: 40px !important; height: 40px !important; border-radius: 50% !important; }
  .comment-body-area { flex-grow: 1 !important; text-align: left !important; }
  .comment-author-name { font-size: 1.25rem !important; margin: 0 !important; text-align: left !important; color: #1a365d !important; font-family: var(--font-serif) !important; }
  .comment-date { font-size: 0.8rem !important; display: block !important; margin-top: 4px !important; text-align: left !important; color: #777 !important; }
  .comment-text { text-align: left !important; font-size: 1.05rem !important; padding: 0 !important; margin: 15px 0 !important; width: 100% !important; }
  .comment-text p, .comment-text span, .comment-text div { text-align: left !important; margin: 0 !important; } 
  .comment-reply-link-wrap { text-align: left !important; margin-top: 10px !important; }
  .btn-submit-comment { width: 100% !important; padding: 18px !important; border-radius: 50px !important; }

  .comment-respond { padding: 40px 15px !important; width: 100% !important; background: white !important; border-top: 8px solid #f0f3f7; text-align: left !important; }
  .comment-respond h3 { text-align: left !important; padding-left: 0 !important; font-family: var(--font-serif) !important; }
  .comment-notes, .comment-form-field label { text-align: left !important; width: 100% !important; display: block !important; }
  
  .menu-close-btn {
    position: absolute !important; top: 15px !important; right: 15px !important;
    background: transparent !important; border: none !important; font-size: 3.5rem !important;
    color: var(--charcoal) !important; cursor: pointer !important; display: block !important;
    z-index: 2000 !important; font-family: sans-serif !important; line-height: 1 !important;
  }
  
  /* Additional Stretch */
  .entry-content, .comments-title, .comment-reply-title { padding-left: 15px !important; padding-right: 15px !important; text-align: left !important; }
}
@media (max-width: 600px) {
  .comments-area { padding: 0 !important; width: 100% !important; margin: 0 !important; }
  .comment-form-grid { grid-template-columns: 1fr !important; gap: 10px; }
  .comment-form-field label { font-size: 0.8rem; }
}

/* 🎨 PREMIUM BACKGROUNDS */
.manifesto-form-section {
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%) !important;
  border-top: 1px solid rgba(18, 61, 106, 0.05);
  border-bottom: 1px solid rgba(18, 61, 106, 0.05);
  position: relative;
  overflow: hidden;
}
.manifesto-form-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gold); opacity: 0.3;
}
.manifesto-form-wrapper {
  background: #ffffff !important;
  padding: 60px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(18, 61, 106, 0.08) !important;
  box-shadow: 0 30px 60px rgba(18, 61, 106, 0.05) !important;
}
@media (max-width: 768px) {
  .manifesto-form-wrapper { padding: 30px 15px !important; border-radius: 0 !important; }
}

h2.section-title, h1.serif, .about-headline {
  font-size: 3.5rem;
  margin-bottom: 30px;
}

/* ✒️ FANCY SERIF TYPOGRAPHY */
.fancy-serif-ital {
  font-family: var(--font-serif) !important;
  font-style: italic !important;
  font-weight: 700 !important;
  font-size: 3.8rem !important;
  line-height: 1.2 !important;
  display: inline-block;
  letter-spacing: -0.5px;
}
@media (max-width: 768px) {
  .fancy-serif-ital { font-size: 2.8rem !important; }
}

/* Remove loading spinner from contact forms */
.wpcf7-spinner, .wpforms-submit-spinner, .ajax-loader { display: none !important; }

 
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
   *    xa   E L I T E   L A Y O U T   O V E R R I D E S   ( N E C R O L O G I   P A G E )  
   *   F o r c e s   t h e   c o n t e n t   t o   m a t c h   t h e   h e a d e r   w i d t h   a n d   k i l l s   t h e   " g h o s t "   s i d e b a r .  
   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 / *   1 .   F o r c e   t h e   w r a p p e r   a n d   p r i m a r y   c o n t e n t   a r e a   t o   1 0 0 %   * /  
 . b l o g - a r c h i v e - p a g e ,    
 # p r i m a r y ,  
 . s i t e - m a i n   {  
         w i d t h :   1 0 0 %   ! i m p o r t a n t ;  
         m a x - w i d t h :   1 0 0 %   ! i m p o r t a n t ;  
         d i s p l a y :   b l o c k   ! i m p o r t a n t ;  
         f l o a t :   n o n e   ! i m p o r t a n t ;  
         m a r g i n :   0   ! i m p o r t a n t ;  
 }  
  
 / *   2 .   F o r c e   t h e   s e c t i o n   b a c k g r o u n d s   t o   r e a c h   t h e   e d g e s   * /  
 . b l o g - a r c h i v e - p a g e   s e c t i o n   {  
         w i d t h :   1 0 0 %   ! i m p o r t a n t ;  
         m a x - w i d t h :   1 0 0 %   ! i m p o r t a n t ;  
         d i s p l a y :   b l o c k   ! i m p o r t a n t ;  
         c l e a r :   b o t h   ! i m p o r t a n t ;  
 }  
  
 / *   3 .   S y n c   t h e   c o n t a i n e r   w i d t h   w i t h   t h e   h e a d e r   ( 1 6 0 0 p x   m a x )   a n d   c e n t e r   i t   * /  
 . b l o g - a r c h i v e - p a g e   . c o n t a i n e r   {  
         m a x - w i d t h :   1 6 0 0 p x   ! i m p o r t a n t ;  
         w i d t h :   1 0 0 %   ! i m p o r t a n t ;  
         m a r g i n - l e f t :   a u t o   ! i m p o r t a n t ;  
         m a r g i n - r i g h t :   a u t o   ! i m p o r t a n t ;  
         p a d d i n g - l e f t :   4 0 p x   ! i m p o r t a n t ;  
         p a d d i n g - r i g h t :   4 0 p x   ! i m p o r t a n t ;  
         b o x - s i z i n g :   b o r d e r - b o x   ! i m p o r t a n t ;  
         f l o a t :   n o n e   ! i m p o r t a n t ;  
 }  
  
 / *   4 .   F i n e - t u n e   t h e   g r i d   i t e m s   t o   e x p a n d   i n t o   t h e   s p a c e   * /  
 . b l o g - a r c h i v e - p a g e   . t e l e g r a m s - g r i d   {  
         d i s p l a y :   g r i d   ! i m p o r t a n t ;  
         g r i d - t e m p l a t e - c o l u m n s :   r e p e a t ( a u t o - f i t ,   m i n m a x ( 3 2 0 p x ,   1 f r ) )   ! i m p o r t a n t ;  
         g a p :   3 0 p x   ! i m p o r t a n t ;  
         w i d t h :   1 0 0 %   ! i m p o r t a n t ;  
         m a x - w i d t h :   1 0 0 %   ! i m p o r t a n t ;  
         j u s t i f y - i t e m s :   s t r e t c h   ! i m p o r t a n t ;  
 }  
  
 / *   5 .   M o b i l e   A d j u s t m e n t s   * /  
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   {  
         . b l o g - a r c h i v e - p a g e   . c o n t a i n e r   {  
                 p a d d i n g - l e f t :   2 0 p x   ! i m p o r t a n t ;  
                 p a d d i n g - r i g h t :   2 0 p x   ! i m p o r t a n t ;  
         }  
         . b l o g - a r c h i v e - p a g e   . t e l e g r a m s - g r i d   {  
                 g r i d - t e m p l a t e - c o l u m n s :   r e p e a t ( a u t o - f i t ,   m i n m a x ( 2 8 0 p x ,   1 f r ) )   ! i m p o r t a n t ;  
         }  
 }  
  
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
   *    xa   G O D - M O D E   L A Y O U T   O V E R R I D E S   ( N E C R O L O G I   P A G E )  
   *   U s i n g   e x t r e m e   s p e c i f i c i t y   t o   b e a t   i n t e r n a l   C u s t o m i z e r   C S S   a n d   f o r c e   f u l l - w i d t h .  
   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 / *   1 .   F o r c e   e v e r y t h i n g   t o   1 0 0 %   w i d t h   o n   t h e   b l o g   p a g e   * /  
 b o d y . b l o g ,  
 b o d y . b l o g   # p a g e ,  
 b o d y . b l o g   # p r i m a r y ,  
 b o d y . b l o g   . s i t e - m a i n ,  
 b o d y . b l o g   . b l o g - a r c h i v e - p a g e   {  
         w i d t h :   1 0 0 %   ! i m p o r t a n t ;  
         m a x - w i d t h :   1 0 0 %   ! i m p o r t a n t ;  
         d i s p l a y :   b l o c k   ! i m p o r t a n t ;  
         f l o a t :   n o n e   ! i m p o r t a n t ;  
         m a r g i n :   0   ! i m p o r t a n t ;  
         p a d d i n g :   0   ! i m p o r t a n t ;  
         f l e x :   n o n e   ! i m p o r t a n t ;  
 }  
  
 / *   2 .   F o r c e   t h e   c o n t a i n e r   t o   m a t c h   t h e   1 6 0 0 p x   h e a d e r   w i d t h   * /  
 b o d y . b l o g   # p r i m a r y   . b l o g - a r c h i v e - p a g e   . c o n t a i n e r   {  
         m a x - w i d t h :   1 6 0 0 p x   ! i m p o r t a n t ;  
         w i d t h :   1 0 0 %   ! i m p o r t a n t ;  
         m a r g i n - l e f t :   a u t o   ! i m p o r t a n t ;  
         m a r g i n - r i g h t :   a u t o   ! i m p o r t a n t ;  
         p a d d i n g - l e f t :   4 0 p x   ! i m p o r t a n t ;  
         p a d d i n g - r i g h t :   4 0 p x   ! i m p o r t a n t ;  
         d i s p l a y :   b l o c k   ! i m p o r t a n t ;  
         f l o a t :   n o n e   ! i m p o r t a n t ;  
         b o x - s i z i n g :   b o r d e r - b o x   ! i m p o r t a n t ;  
 }  
  
 / *   3 .   F o r c e   t h e   g r i d   t o   e x p a n d   c o l u m n s   t o   f i l l   a l l   a v a i l a b l e   s p a c e   * /  
 b o d y . b l o g   . t e l e g r a m s - g r i d   {  
         d i s p l a y :   g r i d   ! i m p o r t a n t ;  
         g r i d - t e m p l a t e - c o l u m n s :   r e p e a t ( a u t o - f i t ,   m i n m a x ( 3 0 0 p x ,   1 f r ) )   ! i m p o r t a n t ;  
         g a p :   3 0 p x   ! i m p o r t a n t ;  
         w i d t h :   1 0 0 %   ! i m p o r t a n t ;  
         m a x - w i d t h :   1 0 0 %   ! i m p o r t a n t ;  
         j u s t i f y - i t e m s :   s t r e t c h   ! i m p o r t a n t ;  
         p a d d i n g :   0   ! i m p o r t a n t ;  
         m a r g i n :   0   ! i m p o r t a n t ;  
 }  
  
 / *   4 .   F o r c e   i n d i v i d u a l   c a r d s   t o   s t r e t c h   t o   c o n t a i n e r   w i d t h   * /  
 b o d y . b l o g   . t e l e g r a m s - g r i d   . t e l e g r a m - c a r d   {  
         w i d t h :   1 0 0 %   ! i m p o r t a n t ;  
         m a x - w i d t h :   1 0 0 %   ! i m p o r t a n t ;  
         m a r g i n :   0   ! i m p o r t a n t ;  
 }  
  
 / *   5 .   M o b i l e   O v e r r i d e   ( E x t r e m e   S p e c i f i c i t y )   * /  
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   {  
         b o d y . b l o g   # p r i m a r y   . b l o g - a r c h i v e - p a g e   . c o n t a i n e r   {  
                 p a d d i n g - l e f t :   1 5 p x   ! i m p o r t a n t ;  
                 p a d d i n g - r i g h t :   1 5 p x   ! i m p o r t a n t ;  
         }  
         b o d y . b l o g   . t e l e g r a m s - g r i d   {  
                 g r i d - t e m p l a t e - c o l u m n s :   r e p e a t ( a u t o - f i t ,   m i n m a x ( 2 8 0 p x ,   1 f r ) )   ! i m p o r t a n t ;  
         }  
 }  
 