/* --- RESET E BASE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Roboto, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333333;
  background-color: #f4f7f9;
}

a {
  color: #0056b3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* --- HEADER --- */
.site-header {
  background-color: #ffffff;
  padding: 15px 0;
  border-bottom: 2px solid #e9ecef;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.logo a {
  font-size: 26px;
  font-weight: bold;
  color: #000066;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo span {
  color: #e63946;
}

/* --- NAVIGAZIONE --- */
.main-nav {
  background-color: #000066;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 12px 15px;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
}

.main-nav a:hover,
.main-nav a.active {
  background-color: #004080;
  text-decoration: none;
}

/* --- BREADCRUMB --- */
.breadcrumb {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.breadcrumb a {
  color: #000066;
}

/* --- LAYOUT GRID (MAIN + SIDEBAR) --- */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 25px;
  margin-bottom: 40px;
}

@media (min-width: 992px) {
  .layout-grid {
    grid-template-columns: 7fr 3.5fr;
  }
}

/* --- CONTENUTO PRINCIPALE --- */
.content-area {
  background: #ffffff;
  padding: 28px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.main-article h1 {
  font-size: 28px;
  line-height: 1.3;
  color: #000066;
  margin-bottom: 15px;
}

.main-article h2 {
  font-size: 22px;
  color: #004080;
  margin: 28px 0 12px 0;
  border-left: 4px solid #e63946;
  padding-left: 12px;
}

.main-article h3 {
  font-size: 18px;
  color: #1a1a1a;
  margin: 20px 0 8px 0;
}

.main-article p {
  margin-bottom: 15px;
}

.main-article ul, .main-article ol {
  margin: 0 0 18px 22px;
}

.main-article li {
  margin-bottom: 8px;
}

.intro-text {
  font-size: 18px;
  color: #444;
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 15px 0 20px 0;
  display: block;
}

/* --- GEO KEY TAKEAWAYS / SUMMARY BOX --- */
.geo-summary {
  background-color: #f0f4f8;
  border: 1px solid #d0e1f9;
  border-left: 4px solid #000066;
  border-radius: 6px;
  padding: 18px;
  margin: 20px 0;
}

.geo-summary strong.geo-title {
  display: block;
  color: #000066;
  font-size: 16px;
  margin-bottom: 8px;
}

.geo-summary ul {
  margin-bottom: 0;
}

/* --- FAQ SECTION (GEO & SEO) --- */
.faq-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #e9ecef;
}

.faq-item {
  background: #f9fbfd;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 12px;
}

.faq-item h3 {
  margin-top: 0;
  font-size: 17px;
  color: #000066;
}

.faq-item p {
  margin-bottom: 0;
  font-size: 15px;
}

/* --- CATEGORY CARDS (HOMEPAGE) --- */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 22px 0;
}

@media (min-width: 600px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cat-card {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.cat-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.cat-card-body {
  padding: 15px;
}

.cat-card-body h3 {
  margin: 0 0 8px 0;
  font-size: 17px;
}

.cat-card-body p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

/* --- BOX AFFILIAZIONE PRODOTTO --- */
.affiliate-box {
  display: flex;
  flex-direction: column;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #e63946;
  border-radius: 6px;
  padding: 16px;
  margin: 25px 0;
  background-color: #fff9f9;
  gap: 16px;
}

@media (min-width: 576px) {
  .affiliate-box {
    flex-direction: row;
    align-items: center;
  }
}

.affiliate-img img {
  width: 130px;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}

.affiliate-details {
  flex: 1;
}

.affiliate-details h3 {
  font-size: 18px;
  color: #111;
  margin: 6px 0;
}

.badge {
  display: inline-block;
  background-color: #e63946;
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: bold;
}

.affiliate-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.price {
  font-weight: bold;
  color: #000066;
  font-size: 15px;
}

.btn-cta {
  background-color: #28a745;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-cta:hover {
  background-color: #218838;
  text-decoration: none;
}

/* --- SPAZI PUBBLICITARI / ADSENSE --- */
.ad-slot {
  background-color: #f8f9fa;
  border: 1px dashed #cccccc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  text-align: center;
}

.ad-placeholder {
  font-size: 12px;
  color: #888888;
  padding: 10px;
}

.ad-header { width: 100%; max-width: 728px; min-height: 90px; margin: 0; }
.ad-inarticle { width: 100%; min-height: 250px; }
.ad-sidebar { width: 100%; min-height: 300px; }

/* --- SIDEBAR & WIDGETS --- */
.sidebar .widget {
  background: #ffffff;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 25px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sidebar h3 {
  font-size: 18px;
  color: #000066;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.widget-list {
  list-style: none;
}

.widget-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f1f1;
}

.widget-list li:last-child {
  border-bottom: none;
}

.disclaimer-widget {
  background-color: #f8f9fa !important;
  color: #666;
}

.medical-notice {
  background-color: #eef5f9;
  border: 1px solid #cce0ee;
  padding: 12px 15px;
  border-radius: 5px;
  font-size: 13px;
  color: #444;
  margin-top: 25px;
}

.sticky-widget {
  position: sticky;
  top: 15px;
}

/* --- FOOTER --- */
.site-footer {
  background-color: #000066;
  color: #ffffff;
  padding: 25px 0;
  text-align: center;
  font-size: 14px;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: #cccccc;
  margin: 0 5px;
}
