:root {
  --body-bg-color: #f8fafc;
  --body-text-color: #222222;
  --heading-color: #2b464f;
  --hero-gradient1: #667eea;
  --hero-gradient2: #764ba2;
  --footer-bg-color: #2b464f;
  --link-color: #ff1414;
  --header-bg-color: #ffffff;
  --font-family: Helvetica, Arial, sans-serif;
  --nav-link-color: #141414;
  --footer-text-color: #ffffff;
  --header-text-color: #ffffffff;
}
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background-color: var(--body-bg-color) !important;
  color: var(--body-text-color) !important;
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1 {
  font-size: clamp(2rem, 4vw, 2.5rem) !important;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2rem) !important;
}
h3 {
  font-size: clamp(1.4rem, 3vw, 1.7rem) !important;
}
p {
  margin-bottom: 0.5rem !important;
}

section {
  padding: 15px 0;
}

h2,
h3 {
  color: var(--heading-color) !important;
}

.content-area a {
  color: var(--link-color) !important;
  text-decoration: none !important;
}

.content-area a:hover {
  color: var(--link-color) !important;
  opacity: 0.8;
}

.footer {
  background-color: var(--footer-bg-color);
  color: var(--footer-text-color);
}

.footer a {
  text-decoration: none;
  color: var(--link-color) !important;
}

.sidebar-page-list {
  padding: 0;
  margin: 0;
  margin-bottom: 17px;
  width: 279px;
}

.sidebar-page-list li {
  list-style-type: disc;
  list-style-position: inside;
  color: var(--heading-color);
}

.sidebar-page-list li::marker {
  color: var(--link-color);
  font-size: 1.2em;
}
.sidebar-page-list li:last-child {
  border-bottom: none;
}

.sidebar-page-list li a {
  padding: 12px 0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  color: var(--link-color);
}

.sidebar-page-list li a:hover {
  padding-left: 11px;
}

.error_page {
  min-height: 70vh;
}

.navbar {
  background-color: var(--header-bg-color) !important;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.hero-section {
  padding: 55px 0;
  position: relative;
  overflow: hidden;
  color: var(--header-text-color);
}

.hero-section.gradient-bg {
  background: linear-gradient(
    135deg,
    var(--hero-gradient1),
    var(--hero-gradient2)
  );
}

.hero-section.with-bg {
  background-image: url("/images/top-casino-italia.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section.with-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgb(0, 0, 0));
  opacity: 0.5;
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
  }
}
.navbar-light .navbar-nav .nav-link {
  color: var(--nav-link-color, #141414) !important;
}

.navbar-light .navbar-nav .nav-link.active {
  color: var(--link-color) !important;
  font-weight: bold;
}
/* Mobile nav */
@media (max-width: 1199.98px) {
  .navbar-collapse {
    position: fixed;
    top: 61px;
    left: 15px;
    right: 15px;
    background-color: color-mix(
      in srgb,
      var(--header-bg-color) 65%,
      transparent
    );
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 15px;
    margin: 0;
  }

  .navbar-nav {
    width: 100%;
  }

  .navbar-nav .nav-item {
    margin: 7px 0;
  }

  .navbar-nav .nav-item:hover {
    transform: translateY(-1px);
  }

  .navbar-nav .nav-link {
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    display: block;
    padding: 0;
  }

  .navbar-toggler {
    z-index: 10000;
    position: relative;
    border: var(--bs-border-width) solid var(--nav-link-color, #141414) !important;
  }
}

@media screen and (min-width: 1199.98px) {
  .dropdown-menu {
    top: 100%;
    left: 50% !important;
    transform: translateX(-50%);
  }
}

.navbar .dropdown-toggle::after {
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.custom-dropdown {
  border: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 220px;
  background: color-mix(
    in srgb,
    var(--header-bg-color) 65%,
    transparent
  ) !important;
  backdrop-filter: blur(12px);
}

.custom-dropdown .dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  color: var(--nav-link-color, #141414) !important;
  font-weight: 500;
  border-radius: 0;
  text-wrap: wrap;
}

.custom-dropdown .dropdown-item:hover {
  color: #fff;
  background: color-mix(
    in srgb,
    var(--header-bg-color) 95%,
    transparent
  ) !important;
}

.custom-dropdown .dropdown-item i {
  width: 16px;
  color: #6c757d;
  transition: color 0.3s ease;
}

.custom-dropdown .dropdown-item:hover i {
  color: #fff;
}

.dropdown-menu {
  opacity: 0;
  transition: all 0.3s ease;
  display: block;
  visibility: hidden;
}

.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

@media (min-width: 1199.98px) {
  .custom-dropdown {
    max-width: 200px;
  }
}

@media (max-width: 1199.98px) {
  .custom-dropdown {
    display: none;
    background: #f8f9fa;
    box-shadow: none;
    border-radius: 0;
    margin-top: 0;
    border-top: 1px solid #dee2e6;
  }

  .custom-dropdown .dropdown-item:hover {
    margin: 0;
    border-radius: 0;
    transform: none;
  }
}

.dropdown-menu:hover,
.dropdown:hover .dropdown-menu {
  display: block !important;
  visibility: visible;
  opacity: 1;
}
.dropdown-item.active,
.dropdown-item:active {
  color: #fff;
  text-decoration: none;
  background-color: #91919131 !important;
}
.heading {
  text-align: center;
}

.heading h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #ff1a1a;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.heading h2::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff1a1a, transparent);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.heading p {
  line-height: 1.6;
  margin: 0 auto;
}
.box {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 21px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.box h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.75rem;
}

.box p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}
.cust-bg {
  padding: 30px 21px;
  border-top: 3px solid #ff1a1a; /* red accent line */
  border-bottom: 3px solid #ff1a1a;
  background: #f9f9f9; /* light neutral background */
  border-radius: 12px;
  margin: 2rem auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cust-bg h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

.cust-bg h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #ff1a1a;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.cust-bg p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1rem;
  text-align: justify;
}
.full-width-section {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.color-sect {
  background: linear-gradient(135deg, #ff1a1a, #990000);
  color: #fff;
  padding: 2rem 0;
}

.color-sect h2 {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  color: #fff !important;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6), 0 0 12px rgba(255, 255, 255, 0.3);
  position: relative;
  display: inline-block;
}

.color-sect h2::after {
  content: "";
  display: block;
  width: 70%;
  height: 3px;
  margin: 0.5rem auto 0;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  border-radius: 2px;
}
.img_el {
  padding: 60px 0;
  position: relative;
  margin-top: 17px;
}
.img_el:before {
  content: "";
  background: color-mix(in srgb, #00000091, transparent 30%);
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 17px;
}
.img_el .img_el-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://placehold.co/1903x600");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  border-radius: 17px;
}
.img_el .container {
  position: relative;
  z-index: 3;
}
.img_el .container h2,
.img_el .container p {
  color: white !important;
}
.providers-sect {
  width: 100%;
  padding: 1rem 21px;
  background: #fafafa; /* light neutral tone */
  border-top: 2px solid #eee;
  border-bottom: 2px solid #eee;
}

.providers-sect h2 {
  font-weight: 700;
  text-align: center;
  color: #222;
  margin-bottom: 2rem;
  position: relative;
}

.providers-sect h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #ff1a1a;
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.providers-sect h3 {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 10px;
  border-left: 3px solid #ff1a1a; /* subtle red accent */
}

.providers-sect p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1rem;
}
.img-section {
  border-radius: 14px;
  overflow: visible;
  margin-bottom: 1.5rem;
  position: relative;
}
.img-section .section-top-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
}
.img-section__content {
  background: linear-gradient(
    180deg,
    #fff 0%,
    #2b464f5c 100%
  ); /* soft red tint */
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  padding: 1.25rem 17px;
  margin-top: -6px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.04);
}

.img-section__content h2 {
  background: linear-gradient(
    90deg,
    rgb(26 105 255 / 10%),
    rgb(0 0 0 / 8%)
  ); /* soft red gradient */
  color: #8b0000; /* dark red text for contrast */
  padding: 0.4rem 8px;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 12px rgba(179, 0, 0, 0.1);
  display: inline-block;
}

.img-section__content h3 {
  color: #0b1220;
  font-weight: 600;
}
.box-first,
.box-second {
  background-color: #e7e9ebde;
  padding: 17px 15px;
}
.box-second {
  background-color: #c5c5c5de;
}
@media (min-width: 767px) {
  .box-first {
    border-top-left-radius: 21px;
    border-bottom-left-radius: 21px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
  }
  .box-second {
    border-top-right-radius: 21px;
    border-bottom-right-radius: 21px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }
}
@media (max-width: 767px) {
  .box-first {
    border-radius: 21px 21px 0 0;
  }
  .box-second {
    border-radius: 0 0 21px 21px;
  }
}
.faq-section .accordion-button {
  color: #8b0000;
  font-weight: 600;
}

.faq-section .accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 26, 26, 0.25);
}
.rounded-5 {
  border-radius: 21px;
}
.authors-section {
  margin: 2rem auto;
  padding: 0 1rem;
}

.authors-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #222;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
}

.authors-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #ff1a1a;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.authors-section .author {
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.authors-section .author-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.author-luca {
  background-image: url("/images/scrittore-di-contenuti.jpg");
}

.author-martina {
  background-image: url("/images/redattrice.jpg");
}

.authors-section .author-text {
  flex: 1;
}

/* Large screens: image floats left */
@media (min-width: 768px) {
  .authors-section .author-img {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 0;
  }
}

/* Small screens: image centered */
@media (max-width: 767px) {
  .authors-section .author {
    text-align: center;
  }
  .authors-section .author-img {
    display: block;
    margin: 0 auto 1rem;
    float: none;
  }
}

.authors-section .author h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #8b0000; /* dark red */
  margin-bottom: 0.5rem;
}

.authors-section .author p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
}
.flex-list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 25px;
  list-style-position: inside;
}
.best-casinos-section {
  width: 100%;
  text-align: center; /* center all text */
}
.best-casinos-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 1.5rem;
  position: relative;
}

.best-casinos-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #ff1a1a; /* red accent */
  margin: 0.5rem auto 0; /* centered underline */
  border-radius: 2px;
}

.best-casinos-section ul {
  list-style: disc inside; /* visible bullets */
  padding-left: 0;
  margin: 0 auto;
  display: inline-block; /* center the list */
  text-align: center; /* keep bullets left-aligned */
}

.best-casinos-section li {
  margin: 0.8rem 0;
}

.best-casinos-section li a {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: #8b0000; /* dark red */
  transition: all 0.3s ease;
  position: relative;
}

.best-casinos-section li a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #ff1a1a;
  transition: width 0.3s;
}

.best-casinos-section li a:hover::after {
  width: 100%; /* underline grows on hover */
}

.best-casinos-section li a:hover {
  color: #ff1a1a; /* text color on hover */
}
.footer {
  background-color: #0f172a; /* dark background for contrast */
  color: #fff;
  font-size: 0.95rem;
  border-top: 3px solid #ff1a1a; /* subtle red accent */
}

.footer a {
  color: #ff1a1a; /* red links */
  text-decoration: none;
  transition: color 0.3s, text-decoration 0.3s;
}

.footer a:hover {
  color: #fff; /* invert color on hover */
  text-decoration: underline;
}

.footer i {
  color: #ff1a1a; /* icon color */
  font-size: 1.1rem;
  vertical-align: middle;
}

.footer span {
  align-items: center;
  margin-bottom: 0.3rem;
}

.footer .container {
  max-width: 1140px;
}

@media (max-width: 767px) {
  .footer .col-md-6 {
    margin-bottom: 0.5rem;
  }
}
.error_page {
  min-height: 80vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error_page i {
  color: #ff1a1a; /* red accent for icon */
  font-size: 4rem;
  margin-bottom: 1rem;
}

.error_page h1 {
  font-size: 6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.error_page h2 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: white !important;
}

.error_page p {
  font-size: 1.1rem;
  color: #d1d5db; /* lighter gray for text */
  margin-bottom: 2rem;
}

.error_page_btn {
  font-size: 1rem;
  font-weight: 600;
  background-color: #ff1a1a;
  border: none;
  transition: all 0.3s ease;
}

.error_page_btn:hover {
  background-color: #fff;
  color: #ff1a1a;
  box-shadow: 0 8px 20px rgba(255, 26, 26, 0.4);
  text-decoration: none;
}
