/*
Theme Name:   Astra Ebullient
Theme URI:    https://yoursite.com
Description:  Astra Child Theme con stile ispirato a Ebullient Magazine
Author:       Il tuo nome
Template:     astra
Version:      2.0.0
License:      GNU General Public License v2 or later
Text Domain:  astra-ebullient
*/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

/* ============================================
   VARIABILI
   ============================================ */
:root {
  --eb-red:     #e91e63;
  --eb-dark:    #1a1a1a;
  --eb-black:   #000000;
  --eb-gray:    #888888;
  --eb-border:  #2a2a2a;
  --eb-white:   #ffffff;
  --eb-font:    'Open Sans', Arial, sans-serif;
}

/* ============================================
   BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--eb-font);
  background: var(--eb-black);
  color: var(--eb-white);
  margin: 0;
  padding: 0;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ============================================
   HEADER / NAV — sfondo nero, testo bianco
   ============================================ */
.site-header,
#masthead,
.ast-header-wrap,
.main-header-bar {
  background: var(--eb-black) !important;
  border-bottom: 1px solid var(--eb-border) !important;
  box-shadow: none !important;
}

/* Logo / Site title */
.site-title a,
.ast-site-title,
.ast-site-title a {
  color: var(--eb-white) !important;
  font-family: var(--eb-font) !important;
  font-weight: 700 !important;
  font-size: 22px !important;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Menu links */
.main-header-bar-navigation a,
.ast-main-navigation a,
.main-navigation a {
  color: var(--eb-white) !important;
  font-family: var(--eb-font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 22px 16px !important;
}
.main-header-bar-navigation a:hover,
.ast-main-navigation a:hover {
  color: var(--eb-red) !important;
}
/* Active/current item underline */
.main-header-bar-navigation .current-menu-item > a,
.ast-main-navigation .current-menu-item > a {
  color: var(--eb-white) !important;
  border-bottom: 2px solid var(--eb-white) !important;
}

/* Dropdown */
.main-navigation .sub-menu,
.ast-main-navigation .sub-menu {
  background: var(--eb-dark) !important;
  border: 1px solid var(--eb-border) !important;
}
.main-navigation .sub-menu a,
.ast-main-navigation .sub-menu a {
  border-bottom: 1px solid var(--eb-border) !important;
  font-size: 12px !important;
  padding: 10px 16px !important;
}

/* Hamburger / HOT TRENDING POPULAR */
.ast-masthead-custom-menu-items a,
.ast-header-custom-item a {
  color: var(--eb-white) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   HERO GRID — 4 colonne full-width
   ============================================ */
.eb-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  background: var(--eb-black);
}

.eb-hero-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.eb-hero-item::after {
  content: '';
  display: block;
  padding-bottom: 130%; /* aspect ratio verticale come l'originale */
}

.eb-hero-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.eb-hero-item:hover img {
  transform: scale(1.04);
}

/* Overlay gradiente dal basso */
.eb-hero-item .eb-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 20px 20px;
  background: linear-gradient(to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.4) 50%,
    transparent 100%);
  z-index: 2;
}

/* Badge contatore visite */
.eb-hero-views {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.6);
  color: var(--eb-white);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 3;
}
.eb-hero-views svg {
  width: 12px;
  height: 12px;
  fill: var(--eb-white);
}

/* Icona condividi */
.eb-hero-share {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: var(--eb-white);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  font-size: 14px;
}

/* Categoria nel hero */
.eb-hero-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--eb-white);
  opacity: 0.9;
  margin-bottom: 6px;
  font-family: var(--eb-font);
}
.eb-hero-cat span {
  margin-right: 8px;
}
.eb-hero-cat .eb-time {
  opacity: 0.7;
  font-weight: 400;
}

/* Titolo nel hero */
.eb-hero-title {
  font-family: var(--eb-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--eb-white);
  line-height: 1.25;
  margin: 0 0 10px;
}
.eb-hero-title a { color: var(--eb-white); }
.eb-hero-title a:hover { color: #dddddd; }

/* Meta autore + likes + commenti */
.eb-hero-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--eb-font);
}
.eb-hero-meta .eb-author { font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.eb-hero-meta .eb-likes,
.eb-hero-meta .eb-comments {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   STRISCIA ARTICOLI ORIZZONTALE (sotto hero)
   ============================================ */
.eb-strip {
  display: flex;
  overflow-x: auto;
  gap: 0;
  background: var(--eb-black);
  border-top: 1px solid var(--eb-border);
  scrollbar-width: none;
}
.eb-strip::-webkit-scrollbar { display: none; }

.eb-strip-item {
  flex: 0 0 185px;
  position: relative;
  border-right: 1px solid var(--eb-border);
  overflow: hidden;
}
.eb-strip-item:last-child { border-right: none; }

.eb-strip-item img {
  width: 185px;
  height: 130px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.eb-strip-item:hover img { transform: scale(1.05); }

.eb-strip-caption {
  padding: 10px 12px;
  background: var(--eb-black);
}
.eb-strip-caption .eb-strip-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--eb-white);
  line-height: 1.35;
  font-family: var(--eb-font);
}
.eb-strip-caption .eb-strip-title a { color: var(--eb-white); }
.eb-strip-caption .eb-strip-title a:hover { color: var(--eb-red); }

/* ============================================
   CONTENUTO GENERALE / PAGINE INTERNE
   ============================================ */
#content,
.ast-container,
.site-content {
  background: var(--eb-black);
}

/* Card articoli nelle archive */
.eb-post-card {
  background: #111111;
  border: 1px solid var(--eb-border);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  margin-bottom: 24px;
}
.eb-post-card:hover { box-shadow: 0 4px 20px rgba(255,255,255,0.05); }

.eb-post-card .eb-card-img { overflow: hidden; aspect-ratio: 16/9; }
.eb-post-card .eb-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.eb-post-card:hover .eb-card-img img { transform: scale(1.05); }
.eb-post-card .eb-card-body { padding: 16px; }
.eb-post-card .eb-card-title {
  font-size: 16px; font-weight: 700;
  color: var(--eb-white); line-height: 1.3;
  margin: 6px 0 8px;
}
.eb-post-card .eb-card-title a { color: var(--eb-white); }
.eb-post-card .eb-card-title a:hover { color: var(--eb-red); }
.eb-post-card .eb-card-meta { font-size: 11px; color: var(--eb-gray); }

/* Badge categoria */
.cat-links a,
.eb-cat-badge {
  background: transparent !important;
  color: var(--eb-white) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  padding: 0 !important;
  display: inline-block !important;
  margin-bottom: 4px !important;
}

/* ============================================
   SIDEBAR
   ============================================ */
#secondary .widget,
.sidebar .widget {
  background: #111111;
  border: 1px solid var(--eb-border);
  padding: 20px;
  margin-bottom: 24px;
}
#secondary .widget-title,
.sidebar .widget-title {
  color: var(--eb-white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--eb-red);
}
#secondary a, .sidebar a { color: var(--eb-white); }
#secondary a:hover, .sidebar a:hover { color: var(--eb-red); }

/* ============================================
   SINGLE POST
   ============================================ */
.single .entry-title, .single-post .entry-title {
  font-size: 32px !important; font-weight: 700 !important;
  color: var(--eb-white) !important; line-height: 1.2 !important;
}
.single .entry-content, .single-post .entry-content {
  color: #cccccc; font-size: 16px; line-height: 1.8;
}
.single .entry-content h2, .single .entry-content h3 {
  color: var(--eb-white);
}
.single .entry-content blockquote {
  border-left: 4px solid var(--eb-red);
  background: #111111;
  padding: 20px 24px;
  color: var(--eb-white);
  font-style: italic;
  margin: 30px 0;
}
.single .entry-meta { color: var(--eb-gray); font-size: 13px; }

/* ============================================
   PAGINAZIONE
   ============================================ */
.page-numbers a, .page-numbers span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--eb-border);
  color: var(--eb-white); font-size: 13px;
  transition: all 0.2s;
}
.page-numbers a:hover, .page-numbers .current {
  background: var(--eb-red); border-color: var(--eb-red);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer, #colophon, .ast-footer-layout-1 {
  background: #0a0a0a !important;
  border-top: 1px solid var(--eb-border) !important;
  color: var(--eb-gray) !important;
}
.site-footer .widget-title, #colophon .widget-title {
  color: var(--eb-white) !important;
  border-bottom-color: var(--eb-red) !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}
.site-footer a, #colophon a { color: var(--eb-gray) !important; }
.site-footer a:hover, #colophon a:hover { color: var(--eb-red) !important; }

.ast-small-footer, .footer-bar {
  background: #000000 !important;
  border-top: 1px solid var(--eb-border) !important;
}
.ast-small-footer-wrap, .ast-small-footer-wrap a { color: #555555 !important; font-size: 12px !important; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .eb-hero-grid { grid-template-columns: repeat(2, 1fr); }
  .eb-hero-item::after { padding-bottom: 100%; }
}
@media (max-width: 600px) {
  .eb-hero-grid { grid-template-columns: 1fr; }
  .eb-hero-item::after { padding-bottom: 80%; }
  .eb-hero-title { font-size: 18px; }
}
