/* Notizia — header, footer, comments (Fervio AI / IT) */
:root {
  --notizia-blue: #000099;
  --notizia-blue-hover: #0000cc;
  --notizia-text: #212335;
  --notizia-muted: #687087;
  --notizia-border: #e4e7ec;
  --notizia-bg: #f4f5f6;
}

/* Custom Scrollbar Styles */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--notizia-blue) var(--notizia-bg);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--notizia-bg);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--notizia-blue);
  border-radius: 4px;
  border: 1px solid var(--notizia-bg);
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--notizia-blue-hover);
}


body[data-layout="articolo"] {
  padding-top: 0;
  margin: 0;
  font-family: "Public Sans", "Source Sans Pro", Arial, Helvetica, sans-serif;
}

.notizia-header {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 100;
  height: 64px;
  background: #fff;
  border-bottom: 3px solid var(--notizia-blue);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Main layout — centered column, no extra top gap */
main {
  padding-top: 0;
  margin-top: 0;
}

main .leaf {
  border-bottom: 0;
  padding-top: 0;
  margin-top: 0;
}

main .leaf .article.normal_width {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

main .leaf .article.normal_width .article__header {
  padding-top: 12px;
  margin-top: 0;
}

main .leaf .article.normal_width .article__title {
  margin-top: 0;
}

main .leaf .article.normal_width > .grid-x {
  justify-content: center;
}

main .leaf .article.normal_width .sidegutterright {
  width: 100% !important;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none;
}

main .leaf .article.normal_width .sidegutterright > .grid-x {
  justify-content: center;
}

main .leaf .article.normal_width .sidegutterright .cell {
  width: 100%;
  flex: 0 0 100%;
  max-width: 100%;
}

main .leaf .article.normal_width .article__content {
  max-width: 100%;
}

main .leaf .article.normal_width .hRGCvE > p,
main .leaf .article.normal_width .hRGCvE > hr,
main .leaf .article.normal_width .hRGCvE > figure,
main .leaf .article.normal_width .hRGCvE > div {
  max-width: 100%;
}

.notizia-header__inner {
  max-width: 1296px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.notizia-logo {
  font-family: "Inter Tight", "Public Sans", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--notizia-blue);
  text-decoration: none;
  line-height: 1;
}

.notizia-logo:hover {
  color: var(--notizia-blue-hover);
}

.notizia-ad-label-bar {
  background: #fff;
  border-bottom: 1px solid var(--notizia-border);
}

.notizia-ad-label-bar__inner {
  max-width: 1296px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.notizia-ad-label {
  margin: 0;
  padding: 0;
  font-family: "Public Sans", "Source Sans Pro", Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  color: var(--notizia-muted);
}

.notizia-ad-label::first-letter {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  padding: 0;
  float: none;
}

.notizia-footer {
  background: var(--notizia-bg);
  border-top: 1px solid var(--notizia-border);
  color: var(--notizia-text);
}

/* Rain footer — full width, always visible */
footer {
  display: block !important;
  width: 100%;
  clear: both;
  margin-top: 0;
}

footer .rain-prefooter .prefooter {
  display: block !important;
}

@media (max-width: 767px) {
  footer .rain-prefooter .prefooter {
    display: none !important;
  }
}

/* Legal block between prefooter and dark bar */
.site-legal-block {
  display: block !important;
  background: #f4f5f6;
  border-top: 1px solid #e4e7ec;
  padding: 28px 20px 24px;
  box-sizing: border-box;
}

.site-legal-block .prefooter__container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
}

.site-legal-block__disclaimer {
  font-size: 0.78rem;
  line-height: 1.55;
  color: #495057;
  max-width: 960px;
  margin: 0 auto;
}

.site-legal-block__disclaimer p {
  margin: 0 0 12px;
}

.site-legal-block__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e4e7ec;
}

.site-legal-block__nav a {
  color: #000099;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

/* Legal content inside dark footer bar */
.site-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rain-dark-footer .site-legal-block__disclaimer {
  font-size: 0.78rem;
  line-height: 1.55;
  color: #c8ccd0;
  max-width: 960px;
  margin: 0 auto 20px;
}

.rain-dark-footer .site-legal-block__disclaimer p {
  margin: 0 0 12px;
}

.rain-dark-footer .site-legal-block__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin: 0 auto 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rain-dark-footer .site-legal-block__nav a {
  color: #e5e7eb;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.rain-dark-footer .site-legal-block__nav a:hover {
  text-decoration: underline;
}

.rain-dark-footer .site-company-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 0;
  padding-top: 4px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #b1b6b8;
}

.site-company-footer span {
  display: block;
}

.rain-dark-footer {
  display: block !important;
  background: #1a1d26;
  color: #b1b6b8;
  padding: 24px 20px 32px;
  width: 100%;
  box-sizing: border-box;
}

.rain-dark-footer .footer-container {
  max-width: 1296px;
  margin: 0 auto;
}

.rain-dark-footer .footer-details {
  font-size: 0.78rem;
  line-height: 1.55;
}

.rain-dark-footer .footer-details a {
  color: #e5e7eb;
  text-decoration: none;
}

.rain-dark-footer .footer-details a:hover {
  text-decoration: underline;
}

.notizia-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 40px;
}

.notizia-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--notizia-border);
}

.notizia-footer__nav a {
  color: var(--notizia-blue);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.notizia-footer__nav a:hover {
  text-decoration: underline;
}

.notizia-footer__disclaimer {
  font-size: 0.78rem;
  line-height: 1.55;
  color: #495057;
}

.notizia-footer__disclaimer p {
  margin: 0 0 12px;
}

.notizia-footer__company {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--notizia-border);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--notizia-muted);
}

.notizia-footer__company p {
  margin: 0;
}

.notizia-footer__company a {
  color: var(--notizia-blue);
}

/* Comments */
.comments-section {
  max-width: 100%;
  margin: 40px auto 24px;
  padding-top: 24px;
  border-top: 2px solid var(--notizia-border);
}

.comments-section__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--notizia-text);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--notizia-blue);
  display: inline-block;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-item {
  background: #fff;
  border: 1px solid var(--notizia-border);
  border-radius: 6px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.comment-item--admin {
  border-left: 4px solid var(--notizia-blue);
  background: #f8f9ff;
}

.comment-item__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.comment-item__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-item__author {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--notizia-text);
  line-height: 1.3;
}

.comment-item__body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #313131;
}

.comment-item__body p {
  margin: 0;
}

.comment-item__photo {
  margin: 12px 0 0;
}

.comment-item__photo img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--notizia-border);
}

.comment-item__likes {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--notizia-muted);
}

.comments-section__cta {
  display: block;
  max-width: 520px;
  margin: 28px auto 0;
  padding: 14px 24px;
  background: var(--notizia-blue);
  color: #fff !important;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.95rem;
}

.comments-section__cta:hover {
  background: var(--notizia-blue-hover);
  color: #fff !important;
}

@media (max-width: 767px) {
  main .leaf .article.normal_width {
    padding-left: 16px;
    padding-right: 16px;
  }

  .notizia-header {
    height: 56px;
  }

  .notizia-logo {
    font-size: 1.65rem;
  }
}

/* Custom styles migrated from index.html inline style block */
.notizia-ad-label-bar {
  background: #fff;
  border-bottom: 1px solid #e4e7ec;
}

.notizia-ad-label-bar__inner {
  max-width: 1296px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  justify-content: flex-end;
}

.notizia-ad-label {
  margin: 0;
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  color: #687087;
}

.photo2,
.photo5 {
  width: 60%;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .photo2,
  .photo5 {
    width: 100%;
  }
}

.article__content .hRGCvE {
  max-width: 100%;
}

.article__content .hRGCvE h2,
.article__content .hRGCvE h3 {
  font-family: inherit;
}

.article__content .hRGCvE p,
.article__content .hRGCvE li {
  font-size: 1.125rem;
  line-height: 1.6;
}

.article__content .hRGCvE .i-figure img {
  width: 100%;
  height: auto;
}

.hRGCvE .article-meta-date {
  color: #000099;
}

