/* ============================================================
   CLIOBRASIL.ONLINE — Bonus Senza Deposito 2026
   Design: Light Italian theme — green, white, red flag colors
   Fonts: Lora (display) / Inter (body)
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a2a1a;
  background-color: #f9fdf9;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #1a6b2a;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #cc1c2a;
}

ul, ol {
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.4em;
}

p {
  margin-bottom: 1.1em;
}

/* ---- ANIMATED BACKGROUND SHAPES ---- */
.bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  font-size: 2rem;
  opacity: 0.06;
  animation: floatShape linear infinite;
  user-select: none;
}

.shape-colosseum  { left: 5%;  top: 80%; font-size: 2.5rem; animation-duration: 28s; animation-delay: 0s; }
.shape-pizza      { left: 15%; top: 20%; font-size: 2rem;   animation-duration: 22s; animation-delay: -4s; }
.shape-flag       { left: 30%; top: 60%; font-size: 2.2rem; animation-duration: 32s; animation-delay: -8s; }
.shape-vespa      { left: 50%; top: 10%; font-size: 2rem;   animation-duration: 25s; animation-delay: -2s; }
.shape-gelato     { left: 65%; top: 75%; font-size: 2.4rem; animation-duration: 20s; animation-delay: -6s; }
.shape-gondola    { left: 78%; top: 35%; font-size: 2rem;   animation-duration: 30s; animation-delay: -10s; }
.shape-mandolin   { left: 88%; top: 55%; font-size: 2.2rem; animation-duration: 26s; animation-delay: -3s; }
.shape-flower     { left: 42%; top: 90%; font-size: 2rem;   animation-duration: 23s; animation-delay: -7s; }

@keyframes floatShape {
  0%   { transform: translateY(0px) rotate(0deg); }
  25%  { transform: translateY(-40px) rotate(10deg); }
  50%  { transform: translateY(-15px) rotate(-5deg); }
  75%  { transform: translateY(-55px) rotate(8deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  line-height: 1.3;
  color: #0d2010;
}

h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0d2010;
}

h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  color: #1a6b2a;
  padding-left: 0.8rem;
  border-left: 4px solid #1a6b2a;
}

h3 {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  color: #0d2010;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  color: #cc1c2a;
}

/* ---- LAYOUT ---- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #1a6b2a 33%, #ffffff 33%, #ffffff 66%, #cc1c2a 66%) 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo-link {
  flex-shrink: 0;
}

.site-logo {
  height: 44px;
  width: auto;
}

.main-nav {
  flex: 1;
}

.main-nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2d4a2d;
  transition: color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover {
  color: #cc1c2a;
}

.desktop-only {
  display: flex;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #1a6b2a, #0f4a1c);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(26, 107, 42, 0.3);
}

.btn-header:hover {
  color: #ffffff;
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 107, 42, 0.4);
}

/* ---- HERO ---- */
.hero-section {
  background: linear-gradient(160deg, #e8f5ea 0%, #f9fdf9 50%, #fef5f5 100%);
  padding: 64px 0 52px;
  border-bottom: 1px solid #d4e8d4;
  position: relative;
}

.hero-content {
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #1a6b2a;
  background: rgba(26, 107, 42, 0.08);
  border: 1px solid rgba(26, 107, 42, 0.2);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 1rem;
}

.hero-intro {
  font-size: 1.05rem;
  color: #3d5a3d;
  margin-bottom: 1.6rem;
  line-height: 1.75;
}

.author-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.6rem;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid #c8dcc8;
  border-radius: 10px;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.author-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #1a6b2a;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.author-name {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0d2010;
}

.author-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1a6b2a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.author-date {
  font-size: 0.78rem;
  color: #6a8a6a;
}

/* ---- LISTING SECTION ---- */
.listing-section {
  padding: 52px 0 60px;
  background: #f9fdf9;
  position: relative;
  z-index: 1;
}

.listing-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  color: #0d2010;
  margin-bottom: 2rem;
  text-align: center;
  padding-left: 0;
  border: none;
}

/* ---- CASINO CARD ---- */
.casino-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #d4e8d4;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.casino-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #1a6b2a, #2a9a3a);
  border-radius: 4px 0 0 4px;
}

.casino-card:hover {
  border-color: #1a6b2a;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26, 107, 42, 0.12);
}

.casino-card:first-of-type {
  border-color: #1a6b2a;
  background: linear-gradient(135deg, #f0faf2 0%, #ffffff 100%);
  box-shadow: 0 4px 20px rgba(26, 107, 42, 0.1);
}

/* Card elements */
.card-rank {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #c8dcc8;
  text-align: center;
  flex-shrink: 0;
  width: 44px;
  line-height: 1;
}

.casino-card:first-of-type .card-rank {
  color: #1a6b2a;
}

.card-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  width: 140px;
}

.brand-logo {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.brand-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2d4a2d;
}

.brand-stars {
  display: flex;
  gap: 2px;
  color: #e8a020;
}

.card-bonus {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 0;
  min-width: 0;
}

.bonus-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: linear-gradient(135deg, #cc1c2a, #aa1020);
  border-radius: 4px;
  padding: 2px 8px;
  width: fit-content;
  margin-bottom: 2px;
}

.bonus-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0d2010;
  margin-bottom: 0;
  line-height: 1.35;
  min-width: 0;
  word-break: break-word;
}

.bonus-sub {
  font-size: 0.74rem;
  color: #7a9a7a;
  margin-bottom: 0;
}

.card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  width: 200px;
}

.card-features li {
  font-size: 0.82rem;
  color: #4a6a4a;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  min-width: 0;
  word-break: break-word;
}

.check-icon {
  color: #1a6b2a;
  flex-shrink: 0;
}

.card-cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-play {
  display: inline-block;
  background: linear-gradient(135deg, #cc1c2a, #aa1020);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 7px;
  white-space: nowrap;
  text-align: center;
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(204, 28, 42, 0.25);
}

.btn-play:hover {
  color: #ffffff;
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(204, 28, 42, 0.4);
}

/* ---- MAIN CONTENT ---- */
.main-content {
  padding: 56px 0 64px;
  background: #ffffff;
  border-top: 1px solid #e8f0e8;
  position: relative;
  z-index: 1;
}

.content-wrapper {
  max-width: 860px;
}

.main-content h2:first-child {
  margin-top: 0;
}

/* ---- TABLES ---- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.4rem 0 1.8rem;
  border-radius: 10px;
  border: 1px solid #d4e8d4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 520px;
}

thead {
  background: linear-gradient(135deg, #1a6b2a, #2a9a3a);
}

th {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  white-space: nowrap;
}

td {
  padding: 10px 14px;
  color: #2d4a2d;
  border-bottom: 1px solid #e8f0e8;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background: #f5faf5;
}

tbody tr:hover {
  background: #edf7ee;
}

/* ---- FAQ ---- */
.faq-section {
  margin-top: 2.8rem;
  padding-top: 2rem;
  border-top: 1px solid #d4e8d4;
}

.faq-section h2 {
  margin-top: 0;
}

.faq-item {
  margin-bottom: 1.4rem;
  padding: 18px 20px;
  background: #f5faf5;
  border: 1px solid #c8dcc8;
  border-radius: 8px;
  border-left: 4px solid #1a6b2a;
}

.faq-item h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #0d2010;
  font-size: 0.98rem;
}

.faq-item p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #4a6a4a;
}

/* ---- FOOTER ---- */
.site-footer {
  background: #0d2010;
  padding: 40px 0 28px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-nav a {
  font-size: 0.85rem;
  color: #7aaa7a;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-disclaimer {
  padding: 18px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
}

.responsible {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #aacaaa;
  margin-bottom: 8px;
}

.responsible svg {
  color: #2a9a3a;
  flex-shrink: 0;
}

.disclaimer-text {
  font-size: 0.76rem;
  color: #5a7a5a;
  margin-bottom: 0;
  line-height: 1.55;
}

.footer-copy {
  font-size: 0.76rem;
  color: #3a5a3a;
}

/* ---- RESPONSIVE — WIDE TABLET ---- */
@media (max-width: 1100px) {
  .card-features {
    width: 170px;
  }
  .card-brand {
    width: 120px;
  }
}

/* ---- RESPONSIVE — TABLET ---- */
@media (max-width: 900px) {
  .casino-card {
    flex-wrap: wrap;
    padding: 16px;
    gap: 12px;
  }

  .card-rank {
    width: 36px;
    font-size: 1.3rem;
  }

  .card-brand {
    width: 130px;
  }

  .card-bonus {
    flex: 1 1 200px;
  }

  .card-features {
    width: 100%;
    order: 4;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .card-cta {
    order: 3;
    margin-left: auto;
  }
}

/* ---- RESPONSIVE — MOBILE ---- */
@media (max-width: 640px) {
  .desktop-only {
    display: none !important;
  }

  .header-inner {
    justify-content: space-between;
  }

  .hero-section {
    padding: 40px 0 32px;
  }

  .author-block {
    width: 100%;
  }

  .casino-card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 10px;
  }

  .card-rank {
    display: none;
  }

  .card-brand {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .card-bonus {
    width: 100%;
  }

  .card-features {
    width: 100%;
    flex-direction: column;
    order: unset;
  }

  .card-cta {
    order: unset;
    margin-left: 0;
  }

  .btn-play {
    width: 100%;
    padding: 13px 16px;
    text-align: center;
  }

  .listing-section {
    padding: 36px 0 44px;
  }

  .main-content {
    padding: 36px 0 48px;
  }

  h2 {
    font-size: 1.2rem;
  }

  .faq-item {
    padding: 14px 16px;
  }

  .btn-header {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

/* ---- FOCUS STATES ---- */
a:focus-visible,
.btn-play:focus-visible,
.btn-header:focus-visible {
  outline: 2px solid #1a6b2a;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
