/* ==========================================================================
   1. BASE — comune a tutte le pagine
   ========================================================================== */

* { font-family: 'Lexend Exa', sans-serif !important; letter-spacing: -0.03em !important; }
html { scroll-behavior: smooth; }

/* ==========================================================================
   2. COOKIE BANNER — comune a tutte le pagine
   ========================================================================== */

#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 99999;
  background: #13131e; border-top: 1px solid #2a2a3e;
  padding: 14px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
#cookie-banner p { margin: 0; color: #9ca3b0; font-size: 13px; flex: 1; min-width: 180px; }
#cookie-banner p a { color: #6b91ce; text-decoration: underline; }
#cookie-banner .cb-buttons { display: flex; gap: 10px; flex-shrink: 0; }
#cookie-banner button {
  padding: 7px 18px; border-radius: 4px; cursor: pointer;
  font-size: 13px; font-family: inherit; letter-spacing: -0.03em;
}
#cookie-reject { background: transparent; border: 1px solid #444; color: #9ca3b0; }
#cookie-reject:hover { border-color: #777; color: #fff; }
#cookie-accept { background: linear-gradient(90deg, #2b5876, #4e8fd7); border: none; color: #fff; }
.theme-day #cookie-banner { background: #f5f8ff; border-top-color: #c2d4ee; }
.theme-day #cookie-banner p { color: #445; }
.theme-day #cookie-reject { border-color: #c2d4ee; color: #445; }
.policy-link { text-decoration: none !important; }
.policy-link:hover { color: #1CC2E7 !important; }

/* ==========================================================================
   3. HOMEPAGE — solo index.html
   ========================================================================== */

[id] { scroll-margin-top: 80px; }

/* Blog cards */
.blog-col { display: flex; flex-direction: column; margin-bottom: 30px; }
.blog-col .project,
.blog-col .item-content { flex: 1; display: flex; flex-direction: column; }
.blog-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #13131e;
  border: 1px solid #2a2a3e;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.theme-day .blog-card { border: 1px solid #c2d4ee; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.blog-card-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.blog-card:hover .blog-card-img img { transform: scale(1.1); }
.blog-card-body {
  padding: 20px 20px 24px;
  flex: 1;
  margin-top: -120px;
  background-image: linear-gradient(0deg, #00394d 85%, transparent);
  z-index: 2;
}
.theme-day .blog-card-body { background-image: linear-gradient(0deg, #e8edf5 85%, transparent); }

/* Dots background */
.dots-bg {
  --mask-size: 17vw;
  --mask-x: -50%;
  --mask-y: -50%;
  --dots-base-color: rgba(0, 109, 160, 0.35);
  --dots-glow-color: rgba(0, 109, 160, 0.65);
  --dots-size: 48px;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.dots-bg > div { position: absolute; inset: 0; }
.dots-base {
  background: radial-gradient(circle at center, var(--dots-base-color) 1px, transparent 1px);
  background-size: var(--dots-size) var(--dots-size);
}
.dots-glow {
  background: radial-gradient(circle at center, var(--dots-glow-color) 2px, transparent 2px);
  background-size: var(--dots-size) var(--dots-size);
  mask-image: radial-gradient(circle at var(--mask-x) var(--mask-y), black 0vw, transparent var(--mask-size));
  mask-composite: intersect;
  mask-size: 100% 100%;
}

/* Expertise section */
.text-intro { font-weight: 300; line-height: 1.5; }
.expertise-list { padding-left: 1.1em; line-height: 1.8; list-style-type: disc !important; }
.highlight { color: #00c8ff; }
.stat-col { border-left: 3px solid #00c8ff; padding-left: 15px; }

/* English badge */
.english-badge {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: #0e1e2e;
  border: 1px solid #1e3a4a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 30px;
}
.english-badge-level { font-size: 3.5rem; font-weight: 700; color: #00c8ff; line-height: 1; margin-bottom: 8px; }
.english-badge-label { font-size: 0.7rem; letter-spacing: 0.1em; }
.english-badge-quote { font-style: italic; font-size: 0.75rem; }

/* ==========================================================================
   4. PAGINE POLICY — cookie-policy.html e privacy-policy.html
   ========================================================================== */

.policy-content { max-width: 780px; margin: 60px auto; padding: 0 20px 80px; }
.policy-content h1 { font-size: 2rem; margin-bottom: 8px; }
.policy-content .last-updated { color: #6b7280; font-size: 13px; margin-bottom: 40px; display: block; }
.policy-content h2 { font-size: 1.1rem; margin-top: 36px; margin-bottom: 10px; }
.policy-content p, .policy-content li { font-size: 14px; line-height: 1.8; color: #9ca3b0; }
.policy-content ul { padding-left: 20px; margin: 8px 0; }
.policy-content a { color: #6b91ce; text-decoration: underline; }
.policy-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13px; }
.policy-content th { text-align: left; padding: 8px 12px; border-bottom: 1px solid #2a2a3e; color: #e5e7eb; }
.policy-content td { padding: 8px 12px; border-bottom: 1px solid #1e1e2e; color: #9ca3b0; vertical-align: top; }
.theme-day .policy-content p,
.theme-day .policy-content li,
.theme-day .policy-content td { color: #374151; }
.theme-day .policy-content th { color: #111827; }
.theme-day .policy-content th,
.theme-day .policy-content td { border-color: #e5e7eb; }

.news-subtitle { font-size: 16px; line-height: 1.6; color: #9ca3b0; margin-bottom: 20px; }
.theme-day .news-subtitle { color: #374151; }
.news-photo-wrap { margin: 10px 0 30px; }
.news-photo-wrap img { width: 100%; height: auto; border-radius: 12px; display: block; }
.news-back { font-size: 13px; }
.news-index-date { display: block; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: #6b7280; }
.news-index-subtitle { font-size: 13px; color: #9ca3b0; margin-bottom: 8px; }
.theme-day .news-index-subtitle { color: #4b5563; }
/* Base readable color for every descendant: the WYSIWYG editor saves plain
   <div>/<span> nodes with no color of their own, which would otherwise
   inherit the near-black .color-gray-900 set on the .policy-content wrapper
   and become unreadable. Elements carrying their own color (legacy
   <font color> from the editor's color picker, or an inline style="color:")
   are excluded so the admin's deliberate text-color choices still win. */
.news-body,
.news-body *:not([color]):not([style*="color"]) { color: #9ca3b0; }
.news-body p, .news-body li { font-size: 14px; line-height: 1.8; }
.theme-day .news-body,
.theme-day .news-body *:not([color]):not([style*="color"]) { color: #374151; }

/* ==========================================================================
   5. UTILITY COMUNI
   ========================================================================== */

.copyright-tax-code { font-weight: 200; opacity: 0.5; }

/* ==========================================================================
   6. LOGHINI
   ========================================================================== */

.list-logos img {
    scale: 66%;
}

.theme-day .list-logos img {
  filter: invert(43%) sepia(92%) saturate(1000%) hue-rotate(130deg) brightness(90%) contrast(90%);
  opacity: 0.75;
}

.swiper-slide {
    display: flex;
    align-items: center;
}