/* ============================================================
   lefotogratis.it — Arctic Ice Theme (A3)
   Libre Baskerville + Nunito | Navy + Icy Blue + Glassmorphism
   ============================================================ */

/* Google Fonts loaded via <link> in HTML head for faster rendering */

:root {
  --navy:       #0a0e1a;
  --navy-2:     #111827;
  --navy-3:     #1a2540;
  --ice:        #7dd3fc;
  --ice-light:  #bae6fd;
  --ice-glow:   rgba(125,211,252,0.15);
  --white:      #f0f9ff;
  --muted:      #94a3b8;
  --accent:     #38bdf8;
  --accent-2:   #0ea5e9;
  --gold:       #f59e0b;
  --green:      #10b981;
  --red:        #ef4444;
  --glass-bg:   rgba(255,255,255,0.04);
  --glass-bdr:  rgba(125,211,252,0.12);
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 32px rgba(0,0,0,0.4);
  --shadow-ice: 0 0 40px rgba(125,211,252,0.08);
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Libre Baskerville', serif; line-height: 1.25; color: var(--white); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
p { color: var(--muted); margin-bottom: 1rem; }
a { color: var(--ice); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--ice-light); }
strong { color: var(--white); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-bdr);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-ice);
  transition: transform var(--transition), box-shadow var(--transition);
}
.glass-card:hover { transform: translateY(-4px); box-shadow: 0 8px 48px rgba(125,211,252,0.12); }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem; border-radius: var(--radius);
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: all var(--transition);
  border: none; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--accent-2), var(--ice)); color: var(--navy); }
.btn-primary:hover { box-shadow: 0 0 24px rgba(56,189,248,0.5); transform: translateY(-2px); color: var(--navy); }
.btn-outline { background: transparent; border: 1.5px solid var(--ice); color: var(--ice); }
.btn-outline:hover { background: var(--ice-glow); color: var(--ice-light); }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.1rem; }
.btn-full { width: 100%; justify-content: center; }

.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.3rem 0.75rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-gold  { background: rgba(245,158,11,0.15); color: var(--gold);  border: 1px solid rgba(245,158,11,0.3); }
.badge-green { background: rgba(16,185,129,0.15); color: var(--green); border: 1px solid rgba(16,185,129,0.3); }
.badge-ice   { background: var(--ice-glow);       color: var(--ice);   border: 1px solid var(--glass-bdr); }
.badge-red   { background: rgba(239,68,68,0.12);  color: var(--red);   border: 1px solid rgba(239,68,68,0.3); }

/* NAVBAR */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1rem 0;
  background: rgba(10,14,26,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-bdr);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { font-family: 'Libre Baskerville', serif; font-size: 1.2rem; font-weight: 700; color: var(--white); display: flex; align-items: center; gap: 0.5rem; }
.navbar-brand span { color: var(--ice); }
.navbar-nav { display: flex; align-items: center; gap: 1.5rem; }
.navbar-nav a { color: var(--muted); font-weight: 600; font-size: 0.875rem; }
.navbar-nav a:hover { color: var(--white); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 0.25rem; }
.hamburger span { width: 24px; height: 2px; background: var(--ice); border-radius: 2px; display: block; }

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding-top: 5rem;
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, rgba(56,189,248,0.08) 0%, transparent 70%),
              linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('img/hero.webp') center/cover no-repeat;
  opacity: 0.07; filter: blur(3px);
}
.hero-content { position: relative; z-index: 1; max-width: 820px; padding: 0 1rem; }
.hero-subtitle { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ice); margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em { color: var(--ice); font-style: normal; }
.hero-desc { font-size: 1.1rem; max-width: 580px; margin: 0 auto 2.5rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
  padding: 1.5rem 2rem; margin-top: 2rem;
  background: var(--glass-bg); border: 1px solid var(--glass-bdr);
  border-radius: var(--radius-lg); backdrop-filter: blur(8px);
}
.hero-stat-item { text-align: center; }
.hero-stat-num { font-family: 'Libre Baskerville', serif; font-size: 2rem; font-weight: 700; color: var(--ice); display: block; }
.hero-stat-label { font-size: 0.75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }

/* TRUST BAR */
.trust-bar { background: var(--navy-2); border-top: 1px solid var(--glass-bdr); border-bottom: 1px solid var(--glass-bdr); padding: 1.25rem 0; }
.trust-items { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2rem; }
.trust-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.trust-item svg { color: var(--ice); flex-shrink: 0; }
.trust-item strong { color: var(--white); }
.trust-bar-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2.5rem; }
.trust-num { font-family: 'Libre Baskerville', serif; font-size: 2rem; font-weight: 700; color: var(--ice); line-height: 1; display: block; }
.trust-label { font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; display: block; text-align: center; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 0; }
@media (max-width: 600px) { .trust-bar-inner { gap: 1.5rem; } .trust-num { font-size: 1.5rem; } }

/* SECTION HEADER */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header p { font-size: 1.05rem; max-width: 600px; margin: 1rem auto 0; }
.section-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ice); margin-bottom: 0.75rem; }

/* CASINO CARDS */
.casino-list { display: flex; flex-direction: column; gap: 1rem; }
.casino-card {
  display: grid; grid-template-columns: 54px 1fr 150px 200px;
  align-items: center; gap: 1.25rem; padding: 1.5rem;
  background: var(--glass-bg); border: 1px solid var(--glass-bdr);
  border-radius: var(--radius-lg); transition: all var(--transition); position: relative; overflow: hidden;
}
.casino-card:first-child { border-color: rgba(245,158,11,0.25); box-shadow: 0 0 32px rgba(245,158,11,0.06); }
.casino-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--ice), var(--accent-2)); opacity: 0; transition: opacity var(--transition); }
.casino-card:hover::before { opacity: 1; }
.casino-card:hover { border-color: rgba(125,211,252,0.25); }
.casino-rank { font-family: 'Libre Baskerville', serif; font-size: 1.75rem; font-weight: 700; color: rgba(125,211,252,0.2); text-align: center; }
.casino-rank.top1 { color: var(--gold); }
.casino-rank.top2 { color: #94a3b8; }
.casino-rank.top3 { color: #cd7f32; }
.casino-logo { width: 160px; height: 60px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,0.04); padding: 0.5rem; display: block; }
.casino-info { display: flex; flex-direction: column; gap: 0.4rem; }
.casino-name { font-family: 'Libre Baskerville', serif; font-size: 1.05rem; font-weight: 700; color: var(--white); }
.casino-bonus { font-size: 0.95rem; color: var(--gold); font-weight: 700; }
.casino-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.3rem; }
.casino-meta { display: flex; flex-direction: column; gap: 0.5rem; }
.casino-meta-item { font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 0.4rem; }
.casino-meta-item strong { color: var(--white); }
.casino-cta { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.casino-cta .btn { white-space: normal; text-align: center; justify-content: center; line-height: 1.3; padding: 0.6rem 0.75rem; font-size: 0.85rem; }
.casino-terms { font-size: 0.68rem; color: var(--muted); text-align: center; line-height: 1.3; }

/* COUNTERS */
.counters-section { background: var(--navy-2); }
.counters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; }
.counter-item { text-align: center; padding: 2.5rem 1.5rem; background: var(--glass-bg); border: 1px solid var(--glass-bdr); border-radius: var(--radius-lg); }
.counter-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.counter-num { font-family: 'Libre Baskerville', serif; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; color: var(--ice); display: block; line-height: 1; }
.counter-suffix { color: var(--ice); }
.counter-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.5rem; }

/* GAMES */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.game-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; background: var(--navy-3); transition: transform var(--transition); cursor: pointer; }
.game-card:hover { transform: scale(1.04); }
.game-card img { width: 100%; height: 100%; object-fit: cover; }
.game-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,14,26,0.9) 30%, transparent); display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 0.75rem; }
.game-card-name { font-size: 0.78rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.game-card-rtp { font-size: 0.68rem; color: var(--ice); }

/* BONUS */
.bonus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.bonus-card { padding: 2rem; background: var(--glass-bg); border: 1px solid var(--glass-bdr); border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.bonus-card::after { content: ''; position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(56,189,248,0.12), transparent); }
.bonus-amount { font-family: 'Libre Baskerville', serif; font-size: 2.2rem; font-weight: 700; color: var(--ice); display: block; line-height: 1; }
.bonus-desc { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
.bonus-features { list-style: none; margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.bonus-features li { font-size: 0.875rem; display: flex; align-items: center; gap: 0.5rem; }
.bonus-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0; max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--glass-bdr); }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 1rem; cursor: pointer; font-size: 1rem; font-weight: 700; color: var(--white); list-style: none; transition: color var(--transition); background: none; border: none; width: 100%; text-align: left; }
.faq-question:hover { color: var(--ice); }
.faq-num { color: var(--ice); font-size: 0.72rem; font-weight: 700; min-width: 28px; letter-spacing: 0.05em; font-family: 'Nunito', sans-serif; }
.faq-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--ice); transition: transform var(--transition); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 1rem 1.5rem 3.2rem; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { font-size: 0.93rem; margin: 0; }

/* FOOTER */
.footer { background: var(--navy); border-top: 1px solid var(--glass-bdr); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand-desc { font-size: 0.875rem; color: var(--muted); margin-top: 1rem; line-height: 1.6; }
.footer-heading { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ice); margin-bottom: 1.25rem; font-family: 'Nunito', sans-serif; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links li a { font-size: 0.875rem; color: var(--muted); }
.footer-links li a:hover { color: var(--white); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--glass-bdr); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: 0.78rem; color: var(--muted); }
.footer-disclaimer { font-size: 0.72rem; color: var(--muted); opacity: 0.65; margin-top: 1.5rem; line-height: 1.6; }
.payment-logos { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.payment-logo { width: 48px; height: 30px; object-fit: contain; opacity: 0.55; filter: grayscale(40%); }
.age-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); border-radius: 6px; padding: 0.35rem 0.75rem; font-size: 0.72rem; color: var(--red); font-weight: 700; }

/* AGE GATE */
#age-gate { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(10,14,26,0.97); backdrop-filter: blur(8px); }
.age-gate-box { max-width: 460px; width: 90%; text-align: center; padding: 3rem 2rem; background: var(--navy-2); border: 1px solid var(--glass-bdr); border-radius: var(--radius-lg); }
.age-gate-icon { font-size: 3rem; margin-bottom: 1rem; }
.age-gate-box h2 { margin-bottom: 0.75rem; }
.age-gate-box p { font-size: 0.9rem; margin-bottom: 2rem; }
.age-gate-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* EXIT POPUP */
#exit-popup { position: fixed; inset: 0; z-index: 9998; display: none; align-items: center; justify-content: center; background: rgba(10,14,26,0.92); backdrop-filter: blur(6px); }
#exit-popup.show { display: flex; }
.exit-box { max-width: 480px; width: 92%; text-align: center; padding: 3rem 2rem; position: relative; background: var(--navy-2); border: 1px solid var(--glass-bdr); border-radius: var(--radius-lg); }
.exit-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--muted); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.exit-badge { display: inline-block; background: var(--gold); color: var(--navy); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.3rem 0.75rem; border-radius: 100px; margin-bottom: 1.25rem; }

/* STICKY BAR */
#sticky-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 800; background: linear-gradient(135deg, var(--navy-2), var(--navy-3)); border-top: 1px solid var(--glass-bdr); padding: 0.75rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; transform: translateY(100%); transition: transform 0.4s ease; }
#sticky-bar.visible { transform: translateY(0); }
.sticky-offer { flex: 1; }
.sticky-offer-text { font-size: 0.78rem; color: var(--ice); font-weight: 700; display: block; }
.sticky-offer-bonus { font-size: 0.95rem; font-weight: 900; color: var(--white); display: block; }
.sticky-timer { font-size: 0.72rem; color: var(--muted); }
#sticky-countdown { color: var(--gold); font-weight: 700; }

/* RATING BARS */
.rating-row { display: flex; align-items: center; gap: 0.75rem; margin: 0.4rem 0; }
.rating-label { font-size: 0.8rem; color: var(--muted); min-width: 130px; }
.rating-bar { flex: 1; height: 6px; background: var(--navy-3); border-radius: 3px; overflow: hidden; }
.rating-fill { height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--ice)); border-radius: 3px; }
.rating-val { font-size: 0.8rem; color: var(--white); font-weight: 700; min-width: 30px; text-align: right; }

/* TABLE */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th { background: var(--navy-3); color: var(--ice); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.85rem 1rem; text-align: left; }
td { padding: 0.9rem 1rem; color: var(--muted); font-size: 0.875rem; border-bottom: 1px solid var(--glass-bdr); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--glass-bg); }
td strong { color: var(--white); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .casino-card { grid-template-columns: 50px 1fr 190px; }
  .casino-meta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .casino-card { grid-template-columns: 38px 1fr 130px; gap: 0.75rem; padding: 1rem; }
  .casino-meta { display: none; }
  .casino-cta { display: flex; min-width: 0; }
  .navbar-nav { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding-top: 4rem; }
}
@media (max-width: 480px) {
  .casino-card { grid-template-columns: 1fr; padding: 1.1rem; gap: 0.75rem; }
  .casino-rank { display: none; }
  .casino-cta { display: flex; width: 100%; }
  .casino-cta .btn { width: 100%; text-align: center; justify-content: center; }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .bonus-grid { grid-template-columns: 1fr; }
  .counters-grid { grid-template-columns: repeat(2, 1fr); }
}

.text-center { text-align: center; }
.text-ice { color: var(--ice); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-muted { color: var(--muted); }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.divider { height: 1px; background: var(--glass-bdr); margin: 2rem 0; }
[data-animate] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }
