/*
Theme Name: Vishvamitra
Theme URI: https://fondazionevishvamitra.com
Author: Fondazione Vishvamitra
Author URI: https://fondazionevishvamitra.com
Description: Tema custom per la Fondazione Vishvamitra — Protezione, studio e diffusione del Sanatana Dharma. Design elegante e minimale con palette cromatica ispirata al logo ufficiale.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vishvamitra
Tags: custom-logo, custom-menu, featured-images, translation-ready, one-column
*/

/* === CSS VARIABLES === */
:root {
  --cacao: #4A3728;
  --cacao-light: #6B5443;
  --kumkum: #D4451A;
  --kumkum-light: #E8673F;
  --haldi: #E8A012;
  --haldi-light: #F0BD4F;
  --crema: #F5F0E8;
  --crema-dark: #EDE5D8;
  --salvia: #5B6E6B;
  --salvia-dark: #3D4E4B;
  --bianco: #FEFCF9;
  --testo: #2C2418;
  --testo-light: #7A6E5F;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', sans-serif;
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-body);
  color: var(--testo);
  background: var(--bianco);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color 0.3s; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === NAVIGATION === */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(254,252,249,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(74,55,40,0.08);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 72px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 48px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 1.8rem; }
.nav-menu a {
  font-size: 13px; font-weight: 400; color: var(--testo-light);
  letter-spacing: 0.04em; position: relative;
}
.nav-menu a:hover { color: var(--cacao); }
.nav-menu a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--haldi);
  transition: width 0.3s;
}
.nav-menu a:hover::after { width: 100%; }
.nav-menu .current-menu-item a { color: var(--cacao); }
.nav-menu .current-menu-item a::after { width: 100%; }
.nav-cta {
  background: var(--haldi) !important; color: var(--bianco) !important;
  padding: 8px 20px; border-radius: 100px;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--kumkum) !important; }
.nav-lang { display: flex; align-items: center; gap: 6px; margin-left: 1.2rem; }
.nav-lang-sep { color: var(--testo-light); opacity: 0.4; font-size: 11px; }
.nav-lang-btn {
  background: none; border: none; cursor: pointer; padding: 2px 4px;
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; color: var(--testo-light);
  transition: color 0.2s; line-height: 1;
}
.nav-lang-btn:hover { color: var(--cacao); }
.nav-lang-btn.active { color: var(--kumkum); border-bottom: 1px solid var(--kumkum); }
.footer-lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 12px; font-weight: 400;
  letter-spacing: 0.1em; color: inherit; opacity: 0.6; transition: opacity 0.2s;
}
.footer-lang-btn:hover, .footer-lang-btn.active { opacity: 1; }
.footer-lang-btn.active { border-bottom: 1px solid currentColor; }
/* Nascondi toolbar Google Translate */
.skiptranslate, .goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
.nav-toggle { display: none; cursor: pointer; background: none; border: none; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--cacao); margin: 5px 0; transition: all 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Anchor offset for fixed navbar */
#hero, #fondatore, #stats, #pilastri, #puja, #pubblicazioni,
#ashram, #awards, #community, #eventi, #sostienici,
#sezione-1, #sezione-2, #sezione-3, #sezione-4 {
  scroll-margin-top: 72px;
}

/* === HERO === */
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  overflow: hidden; background: var(--crema);
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem 3rem 4rem 6rem; position: relative; z-index: 2;
}
.hero-logo { width: 340px; margin-bottom: 1.5rem; animation: heroIn 1s ease-out; }
.hero-logo img { width: 100%; height: auto; }
.hero-divider { width: 60px; height: 2px; background: var(--haldi); margin: 1.5rem 0; animation: heroIn 1s ease-out 0.3s both; }
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 300; font-style: italic; color: var(--cacao);
  line-height: 1.5; max-width: 440px;
  animation: heroIn 1s ease-out 0.4s both;
}
.hero-subtitle {
  font-size: 15px; color: var(--testo-light);
  line-height: 1.8; max-width: 420px; margin-top: 1.5rem;
  animation: heroIn 1s ease-out 0.6s both;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--cacao); padding: 14px 36px; margin-top: 2rem;
  border: 1px solid rgba(74,55,40,0.25); border-radius: 100px;
  transition: all 0.4s; animation: heroIn 1s ease-out 0.7s both;
}
.hero-cta:hover { background: var(--cacao); color: var(--crema); border-color: var(--cacao); }
.hero-right { position: relative; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-overlay-l { position: absolute; inset: 0; background: linear-gradient(90deg, var(--crema) 0%, rgba(245,240,232,0) 35%); z-index: 1; }
.hero-overlay-b { position: absolute; bottom: 0; left: 0; right: 0; height: 100px; background: linear-gradient(to top, var(--crema), transparent); z-index: 1; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* === FOUNDER BANNER === */
.founder-banner { background: var(--cacao); padding: 5rem 2rem; overflow: hidden; }
.founder-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 280px 1fr; gap: 3.5rem; align-items: center;
}
.founder-photo { width: 280px; height: 360px; border-radius: 2px; overflow: hidden; position: relative; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.founder-photo::after { content: ''; position: absolute; inset: -1px; border: 1px solid rgba(232,160,18,0.3); border-radius: 2px; }
.founder-text { color: var(--crema); }
.founder-label { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--haldi); margin-bottom: 1rem; }
.founder-name { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 300; margin-bottom: 0.5rem; }
.founder-role { font-family: var(--font-display); font-size: 18px; font-style: italic; color: rgba(245,240,232,0.6); margin-bottom: 1.5rem; }
.founder-desc { font-size: 15px; line-height: 1.9; color: rgba(245,240,232,0.75); max-width: 520px; }
.founder-lineage { display: flex; align-items: center; gap: 8px; margin-top: 1.5rem; flex-wrap: wrap; }
.lineage-step { font-size: 13px; color: rgba(245,240,232,0.5); }
.lineage-step.active { color: var(--haldi); font-weight: 400; }
.lineage-sep { color: var(--haldi); opacity: 0.4; }

/* === SECTIONS SHARED === */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 6rem 2rem; }
.section-label { font-size: 11px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--haldi); margin-bottom: 1rem; }
.section-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); font-weight: 300; color: var(--cacao); line-height: 1.2; margin-bottom: 1.5rem; }
.section-text { font-size: 16px; line-height: 1.8; color: var(--testo-light); max-width: 680px; }

/* === STATS === */
.stats { background: var(--bianco); padding: 3rem 2rem; border-bottom: 1px solid rgba(74,55,40,0.06); }
.stats-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat { text-align: center; padding: 1rem; }
.stat-number { font-family: var(--font-display); font-size: 42px; font-weight: 400; color: var(--kumkum); }
.stat-label { font-size: 13px; color: var(--testo-light); margin-top: 4px; letter-spacing: 0.05em; }

/* === PILLARS === */
.pillars { background: var(--bianco); }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.pillar { padding: 2.5rem 2rem; background: var(--crema); border-radius: 2px; transition: transform 0.4s; position: relative; overflow: hidden; }
.pillar:hover { transform: translateY(-4px); }
.pillar-accent { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--haldi); }
.pillar-icon { font-size: 32px; color: var(--kumkum); margin-bottom: 1.5rem; }
.pillar-title { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--cacao); margin-bottom: 1rem; }
.pillar-desc { font-size: 14px; line-height: 1.8; color: var(--testo-light); }
.pillar-link { display: inline-block; margin-top: 1.5rem; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--kumkum); transition: color 0.3s; }
.pillar-link:hover { color: var(--cacao); }

/* === PUJA SECTION === */
.puja-section { background: var(--crema); }
.puja-inner { display: grid; grid-template-columns: 380px 1fr; gap: 4rem; align-items: center; }
.puja-photo { width: 100%; aspect-ratio: 3/4; border-radius: 2px; overflow: hidden; }
.puja-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.puja-quote { font-family: var(--font-display); font-size: clamp(22px, 3vw, 32px); font-weight: 300; font-style: italic; color: var(--cacao); line-height: 1.5; border-left: 2px solid var(--haldi); padding-left: 2rem; margin-bottom: 2rem; }
.puja-desc { font-size: 15px; line-height: 1.9; color: var(--testo-light); }

/* === PUBLICATIONS === */
.publications { background: var(--bianco); }
.pub-showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.pub-card { cursor: pointer; transition: transform 0.4s; }
.pub-card:hover { transform: translateY(-4px); }
.pub-cover { aspect-ratio: 2/3; background: var(--crema); border-radius: 2px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(74,55,40,0.06); }
.pub-cover-inner { text-align: center; padding: 1.5rem; }
.pub-cover-num { font-family: var(--font-display); font-size: 48px; font-weight: 300; color: var(--cacao); opacity: 0.12; }
.pub-cover-line { width: 30px; height: 1px; background: var(--kumkum); margin: 0.8rem auto; }
.pub-cover-text { font-family: var(--font-display); font-size: 14px; font-style: italic; color: var(--salvia); }
.pub-info { padding: 1rem 0.25rem 0; }
.pub-title-text { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--cacao); line-height: 1.3; }
.pub-lang { font-size: 11px; color: var(--testo-light); margin-top: 4px; letter-spacing: 0.05em; }
.pub-more { grid-column: span 4; text-align: center; padding: 2rem 0 0; }
.pub-more a { font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--cacao); border-bottom: 1px solid rgba(74,55,40,0.2); padding-bottom: 2px; }
.pub-more a:hover { border-color: var(--kumkum); }

/* === ASHRAM === */
.ashram { background: var(--salvia-dark); color: var(--crema); }
.ashram .section-label { color: var(--haldi-light); }
.ashram .section-title { color: var(--crema); }
.ashram-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.ashram-card { aspect-ratio: 3/4; border: 1px solid rgba(245,240,232,0.08); border-radius: 2px; display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; transition: border-color 0.4s; background: rgba(245,240,232,0.03); }
.ashram-card:hover { border-color: rgba(245,240,232,0.25); }
.ashram-card-region { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--haldi-light); margin-bottom: 0.5rem; }
.ashram-card-name { font-family: var(--font-display); font-size: 28px; font-weight: 400; margin-bottom: 0.5rem; }
.ashram-card-desc { font-size: 13px; line-height: 1.7; color: rgba(245,240,232,0.6); }

/* === AWARDS === */
.awards { background: var(--crema); }
.awards-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-top: 3rem; }
.awards-left-text { font-size: 16px; color: var(--testo-light); line-height: 1.8; margin-bottom: 2rem; }
.awards-editions { display: flex; flex-wrap: wrap; gap: 1rem; }
.award-year { display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; border: 1px solid rgba(74,55,40,0.15); border-radius: 50%; font-family: var(--font-display); font-size: 18px; font-weight: 400; color: var(--cacao); cursor: pointer; transition: all 0.4s; }
.award-year:hover { background: var(--kumkum); color: var(--crema); border-color: var(--kumkum); }
.awards-photo { border-radius: 2px; overflow: hidden; aspect-ratio: 3/2; }
.awards-photo img { width: 100%; height: 100%; object-fit: cover; }

/* === COMMUNITY STRIP === */
.community-strip { position: relative; height: 400px; overflow: hidden; }
.community-strip img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.community-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(61,78,75,0.3), rgba(61,78,75,0.7)); display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.community-text { font-family: var(--font-display); font-size: clamp(22px, 3.5vw, 36px); font-weight: 300; font-style: italic; color: var(--crema); max-width: 700px; line-height: 1.5; }

/* === EVENTS === */
.events { background: var(--bianco); }
.events-list { margin-top: 3rem; border-top: 1px solid rgba(74,55,40,0.08); }
.event-row { display: grid; grid-template-columns: 100px 1fr auto; gap: 2rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid rgba(74,55,40,0.08); cursor: pointer; transition: background 0.3s; }
.event-row:hover { background: rgba(245,240,232,0.4); }
.event-date { text-align: center; }
.event-date-day { font-family: var(--font-display); font-size: 32px; font-weight: 400; color: var(--kumkum); line-height: 1; }
.event-date-month { font-size: 12px; color: var(--testo-light); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }
.event-info-title { font-family: var(--font-display); font-size: 20px; font-weight: 400; color: var(--cacao); margin-bottom: 4px; }
.event-info-desc { font-size: 13px; color: var(--testo-light); }
.event-tag { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--salvia); padding: 6px 14px; border: 1px solid rgba(91,110,107,0.2); border-radius: 100px; }

/* === CTA SECTION === */
.cta-section { background: var(--cacao); padding: 5rem 2rem; text-align: center; }
.cta-section .section-title { color: var(--crema); margin-bottom: 1rem; }
.cta-section-text { font-size: 16px; color: rgba(245,240,232,0.7); max-width: 560px; margin: 0 auto 2.5rem; line-height: 1.8; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-btn { font-size: 13px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; padding: 14px 36px; border-radius: 100px; transition: all 0.4s; cursor: pointer; display: inline-block; }
.cta-btn-primary { background: var(--haldi); color: var(--bianco); border: 1px solid var(--haldi); }
.cta-btn-primary:hover { background: var(--kumkum); border-color: var(--kumkum); }
.cta-btn-secondary { background: transparent; color: var(--crema); border: 1px solid rgba(245,240,232,0.25); }
.cta-btn-secondary:hover { border-color: var(--crema); }

/* === FOOTER === */
.site-footer { background: var(--salvia-dark); color: rgba(245,240,232,0.7); padding: 4rem 2rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(245,240,232,0.08); }
.footer-brand-name { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--crema); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-brand-desc { font-size: 14px; line-height: 1.8; max-width: 320px; }
.footer-brand-address { font-size: 13px; margin-top: 1rem; line-height: 1.7; }
.footer-col-title { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--crema); margin-bottom: 1.2rem; }
.footer-col a { display: block; font-size: 14px; color: rgba(245,240,232,0.6); padding: 4px 0; }
.footer-col a:hover { color: var(--crema); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; font-size: 12px; color: rgba(245,240,232,0.4); flex-wrap: wrap; gap: 1rem; }
.footer-lang { display: flex; gap: 1rem; }
.footer-lang a { color: rgba(245,240,232,0.4); font-size: 12px; }
.footer-lang a:hover, .footer-lang a.active { color: var(--crema); }

/* === ANIMATIONS === */
.fade-in { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === WORDPRESS CONTENT STYLES === */
.entry-content { max-width: 780px; margin: 0 auto; padding: 4rem 2rem; }
.entry-content h1, .entry-content h2, .entry-content h3 { font-family: var(--font-display); font-weight: 400; color: var(--cacao); }
.entry-content h1 { font-size: 36px; margin-bottom: 1.5rem; }
.entry-content h2 { font-size: 28px; margin: 2rem 0 1rem; }
.entry-content h3 { font-size: 22px; margin: 1.5rem 0 0.8rem; }
.entry-content p { font-size: 16px; line-height: 1.8; color: var(--testo-light); margin-bottom: 1.5rem; }
.entry-content a { color: var(--kumkum); border-bottom: 1px solid rgba(212,69,26,0.2); }
.entry-content a:hover { border-color: var(--kumkum); }
.entry-content blockquote { font-family: var(--font-display); font-size: 22px; font-style: italic; color: var(--cacao); border-left: 2px solid var(--haldi); padding-left: 2rem; margin: 2rem 0; }
.entry-content img { border-radius: 2px; margin: 2rem 0; }
.entry-content ul, .entry-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.entry-content li { font-size: 16px; line-height: 1.8; color: var(--testo-light); margin-bottom: 0.5rem; }
.entry-content ul li { list-style: disc; }
.entry-content ol li { list-style: decimal; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .nav-lang { margin-left: 0.5rem; }
  .nav-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--bianco); flex-direction: column; padding: 2rem; gap: 1.5rem; border-bottom: 1px solid rgba(74,55,40,0.08); }
  .nav-menu.active { display: flex; }
  .nav-toggle { display: block; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 7rem 2rem 3rem; }
  .hero-right { height: 50vh; position: relative; }
  .hero-img { position: absolute; }
  .founder-inner { grid-template-columns: 1fr; text-align: center; }
  .founder-photo { margin: 0 auto; width: 220px; height: 280px; }
  .founder-lineage { justify-content: center; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: 1fr; }
  .puja-inner { grid-template-columns: 1fr; gap: 2rem; }
  .puja-photo { max-width: 360px; margin: 0 auto; }
  .pub-showcase { grid-template-columns: repeat(2, 1fr); }
  .pub-more { grid-column: span 2; }
  .ashram-grid { grid-template-columns: 1fr; }
  .awards-content { grid-template-columns: 1fr; gap: 2rem; }
  .event-row { grid-template-columns: 80px 1fr; }
  .event-tag { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
/* === PUBBLICAZIONI con foto copertina === */
.pub-cover-photo { background: var(--cacao); padding: 0; overflow: hidden; }
.pub-cover-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.pub-card:hover .pub-cover-photo img { transform: scale(1.04); }
.pub-card > a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }

/* === ASHRAM con foto come background === */
.ashram-card-photo {
  background-image: none;            /* sovrascritto inline da PHP */
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: var(--salvia-dark) !important;
  position: relative;
  overflow: hidden;
  justify-content: flex-end;
  padding: 0;
  transition: background-position 0.6s ease, border-color 0.4s;
}
.ashram-card-photo:hover {
  background-position: center 40% !important;
}
.ashram-card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s;
  /* background impostato inline da PHP */
}
.ashram-card-photo:hover .ashram-card-overlay {
  opacity: 0.85;
}
.ashram-card-body {
  position: relative;
  z-index: 2;
  padding: 2rem;
}
.ashram-card:not(.ashram-card-photo) .ashram-card-body { padding: 0; }

/* === SEZIONI SHORTCODE DINAMICHE === */
.sc-section { background: var(--bianco); }
.sc-section:nth-child(even) { background: var(--crema); }
.sc-section-content { margin-top: 1.5rem; }
.sc-section-btn { margin-top: 2.5rem; display: block; }

/* Allineamento — solo testo e bottone, non tocca i layout interni */
.sc-align-center { text-align: center; }
.sc-align-center .sc-section-btn { text-align: center; }
.sc-align-right  { text-align: right; }
.sc-align-right  .sc-section-btn { text-align: right; }

/* Bottone su sfondo chiaro (sezioni shortcode homepage) */
.cta-btn-dark { color: var(--cacao); border: 1px solid rgba(74,55,40,0.3); }
.cta-btn-dark:hover { background: var(--cacao); color: var(--bianco); border-color: var(--cacao); }

/* === BLOG SHORTCODE — elementi comuni === */
.vish-blog-meta { font-size: 11px; color: var(--testo-light); letter-spacing: 0.06em; text-transform: uppercase; }
.vish-blog-cat { color: var(--kumkum); }
.vish-blog-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; line-height: 1.3; color: var(--cacao); margin: 0.4rem 0 0.5rem; }
.vish-blog-title a { color: inherit; }
.vish-blog-title a:hover { color: var(--kumkum); }
.vish-blog-excerpt { font-size: 14px; color: var(--testo-light); line-height: 1.7; flex: 1; }
.vish-blog-read { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--kumkum); margin-top: 0.75rem; }
.vish-blog-read:hover { color: var(--kumkum-light); }

/* Layout GRID */
.vish-blog-grid { display: grid; gap: 2rem; text-align: left; }
.vish-blog-cols-2 { grid-template-columns: repeat(2, 1fr); }
.vish-blog-cols-3 { grid-template-columns: repeat(3, 1fr); }
.vish-blog-card { display: flex; flex-direction: column; }
.vish-blog-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; border-radius: 2px; }
.vish-blog-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.vish-blog-card:hover .vish-blog-thumb img { transform: scale(1.04); }
.vish-blog-body { padding-top: 1rem; display: flex; flex-direction: column; flex: 1; }

/* Layout LISTA */
.vish-blog-lista { display: flex; flex-direction: column; gap: 0; text-align: left; }
.vish-blog-row { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(74,55,40,0.08); align-items: start; }
.vish-blog-row:last-child { border-bottom: none; }
.vish-blog-row-thumb { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 2px; }
.vish-blog-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.vish-blog-row:hover .vish-blog-row-thumb img { transform: scale(1.04); }
.vish-blog-row-body { display: flex; flex-direction: column; }

/* Bottone "vedi tutti" interno allo shortcode */
.vish-blog-link-wrap { margin-top: 2rem; }
.vish-blog-link-btn {
    display: inline-block;
    font-size: 12px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--cacao); padding: 12px 30px;
    border: 1px solid rgba(74,55,40,0.28); border-radius: 100px;
    transition: all 0.3s;
}
.vish-blog-link-btn:hover { background: var(--cacao); color: var(--bianco); border-color: var(--cacao); }

/* Responsive */
@media (max-width: 700px) {
    .vish-blog-cols-3 { grid-template-columns: repeat(2, 1fr); }
    .vish-blog-row { grid-template-columns: 80px 1fr; gap: 1rem; }
}
@media (max-width: 480px) {
    .vish-blog-cols-2, .vish-blog-cols-3 { grid-template-columns: 1fr; }
    .vish-blog-row { grid-template-columns: 1fr; }
    .vish-blog-row-thumb { display: none; }
}

/* === GOOGLE TRANSLATE WIDGET === */
#google_translate_element { display: inline-flex; align-items: center; }
#google_translate_element .goog-te-gadget { margin: 0; font-family: inherit; font-size: 0.8rem; color: var(--testo-light); }
#google_translate_element .goog-te-gadget-simple { background: transparent; border: 1px solid rgba(255,255,255,0.25); border-radius: 2px; padding: 2px 8px; color: inherit; font-size: 0.8rem; cursor: pointer; }
#google_translate_element .goog-te-gadget-simple:hover { border-color: rgba(255,255,255,0.5); }
#google_translate_element .goog-te-gadget-simple span { color: inherit !important; }
/* Nasconde il logo Google nell'area footer */
.goog-logo-link, .goog-te-gadget > span:last-child { display: none !important; }
.skiptranslate > iframe { height: 0 !important; border-style: none; box-shadow: none; }

@media (max-width: 600px) {
  .section-inner { padding: 4rem 1.25rem; }
  .hero-left { padding: 6rem 1.25rem 2rem; }
  .hero-logo { width: 240px; }
  .pub-showcase { gap: 1rem; }
  .stats-inner { gap: 1rem; }
  .footer-top { grid-template-columns: 1fr; }
  .awards-editions { flex-wrap: wrap; }
  .community-strip { height: 280px; }
}
