/* --- GRIGLIA DINAMICA (Oriente Cristiano Style) --- */
.cat-oriente-section { 
    padding: 60px 0; 
    background: #fff; 
}

.oriente-grid { 
    display: grid; 
    gap: 40px; 
    margin-top: 30px; 
}

/* Classi dinamiche per le colonne */
.grid-2-col { grid-template-columns: 1fr 1fr; }
.grid-3-col { grid-template-columns: 1fr 1fr 1fr; }

.oriente-card { 
    background: #fff; 
    border: 1px solid #f0ede9; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); 
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}

.oriente-card:hover {
    transform: translateY(-5px);
}

.oriente-img { 
    position: relative; 
    height: 300px; 
    overflow: hidden; 
}

.oriente-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.oriente-content { 
    padding: 25px; 
    flex-grow: 1;
}

.oriente-content h3 { 
    font-family: var(--f-serif); 
    font-size: 24px !important; 
    margin: 12px 0; 
    line-height: 1.3; 
}

.oriente-content h3 a { 
    text-decoration: none; 
    color: #1a1a1a !important; 
}

.oriente-content p { 
    font-family: var(--f-sans);
    font-size: 15px; 
    color: #555; 
    line-height: 1.6; 
    margin-bottom: 15px; 
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-3-col { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .grid-2-col, .grid-3-col { grid-template-columns: 1fr; }
    .oriente-img { height: 250px; }
}
/* --- GRIGLIA CRONACA (3 COLONNE - 3x2) --- */
.magazine-news-grid { padding: 80px 0; background: #fff; }

.tri-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  align-items: stretch;
}

.tri-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #f0ede9;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.tri-card:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 12px 30px rgba(0,0,0,0.08); 
}

.tri-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.tri-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Data Foglio Alzato Tri */
.lifted-date-tri {
  position: absolute; top: 0; right: 15px; background: #fff; padding: 10px 12px; text-align: center;
  box-shadow: -3px 3px 8px rgba(0,0,0,0.1); z-index: 5;
}

.lifted-date-tri::after {
  content: ""; position: absolute; bottom: -8px; left: 0;
  border-width: 8px 8px 0 0; border-style: solid; border-color: #bebbb4 transparent transparent transparent;
}

.t-day { display: block; font-family: var(--f-serif); font-size: 20px; font-weight: 700; color: #222; line-height: 1; }
.t-my { display: block; font-family: var(--f-sans); font-size: 8px; color: #8b7355; border-top: 1px solid #eee; margin-top: 4px; padding-top: 4px; }

/* Contenuto Tri */
.tri-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.t-cat { font-family: var(--f-sans); font-size: 10px; font-weight: 800; text-transform: uppercase; color: #8b7355; letter-spacing: 1px; margin-bottom: 12px; }
.tri-content h3 { font-family: var(--f-serif); font-size: 21px; margin: 0 0 12px; line-height: 1.3; color: #1a1a1a; }
.tri-content h3 a { text-decoration: none; color: inherit; }
.tri-content p { font-family: var(--f-sans); font-size: 14px; line-height: 1.5; color: #666; margin-bottom: 20px; flex-grow: 1; }

.t-author { 
  font-family: var(--f-sans); 
  font-size: 11px; 
  text-transform: uppercase; 
  color: #999; 
  border-top: 1px solid #f0ede9; 
  padding-top: 15px;
}

/* Responsive */
@media (max-width: 1100px) { .tri-grid-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .tri-grid-6 { grid-template-columns: 1fr; } }

/* --- GALLERY VIDEO --- */
.video-gallery-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #f9f8f6;
  padding: 60px 0 80px;
  overflow: hidden;
}

.video-viewport {
  padding: 0 40px;
  max-width: 1500px;
  margin: 0 auto;
}

.video-grid-pure {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.video-pure-item {
  display: block;
  text-decoration: none;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.video-play-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.video-play-circle {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-play-circle svg {
  width: 25px;
  fill: #fff;
  margin-left: 3px;
}

.video-caption-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  z-index: 3;
}

.video-caption-overlay h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #fff;
  margin: 0;
  font-weight: 400;
  line-height: 1.3;
}

.video-pure-item:hover .video-thumbnail img {
  transform: scale(1.05);
  opacity: 1;
}

.video-pure-item:hover .video-play-circle {
  background: #c26602;
  border-color: #c26602;
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(194, 102, 2, 0.4);
}

@media (max-width: 900px) {
  .video-grid-pure { grid-template-columns: 1fr; }
}
/* --- SEZIONE PARTNER --- */
.partner-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #f9f8f6;
  padding: 60px 0 80px;
  border-top: 1px solid #f0ede9;
}

.partner-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding-top: 20px;
  flex-wrap: wrap; /* Per la reattività */
}

.partner-card {
  background: #fff;
  border: 1px solid #f0ede9;
  padding: 40px;
  width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.partner-logo-wrap {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.partner-logo-wrap img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.4s ease;
}

.partner-info {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  font-weight: 700;
  transition: color 0.3s ease;
}

/* Hover Effects */
.partner-card:hover {
  transform: translateY(-5px);
  border-color: #c26602;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.partner-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.partner-card:hover .partner-info {
  color: #c26602;
}

/* Responsive */
@media (max-width: 800px) {
  .partner-grid {
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
  }
  .partner-card {
    width: 100%;
    max-width: 400px;
  }
}