/*!**********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./src/themes/retro90s/styles/retro.css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************/
/* ==========================================================================
   TEMA "LEGACY" — replica pixel-per-pixel di bosettiegatti.eu
   CSS scoped sotto [data-theme="retro90s"]
   Font: Calibri per contenuto, Tahoma per navigazione
   Layout: frameset simulato con CSS Grid (sidebar 160px + header 135px)
   Immagini reali: /themes/legacy/img/
   ========================================================================== */

/* ---------- Base ---------- */

[data-theme="retro90s"] {
  font-family: Calibri, "Segoe UI", Tahoma, sans-serif;
  background-color: #f5fdfe;
  color: #000000;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

[data-theme="retro90s"] * {
  box-sizing: border-box;
}

/* ---------- Link (stile bosettiegatti) ---------- */

[data-theme="retro90s"] a {
  color: #0000ff;
  text-decoration: underline;
}

[data-theme="retro90s"] a:visited {
  color: #551a8b;
}

[data-theme="retro90s"] a:hover {
  color: #FF0000;
  font-weight: bold;
}

/* ---------- Frameset layout ---------- */

.legacy-frameset {
  display: grid;
  grid-template-columns: 160px 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

/* ---------- Sidebar (frame sinistro) ---------- */

.legacy-sidebar {
  grid-column: 1;
  grid-row: 1 / 3;
  background-color: #FF0000;
  width: 160px;
  min-height: 100vh;
  overflow-y: auto;
  padding: 4px;
  font-family: Calibri, "Segoe UI", Tahoma, sans-serif;
  font-size: 13px;
  text-align: center;
}

.legacy-sidebar table {
  margin: 0 auto;
}

.legacy-sidebar a {
  color: #FFFFC4;
  text-decoration: underline;
  font-weight: bold;
}

.legacy-sidebar a:hover {
  color: #FFFFFF;
}

.legacy-sidebar-section {
  margin-bottom: 4px;
  text-align: center;
}

/* Riga affiancata per icone/loghi */
.legacy-sidebar-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* Link-icona nella sidebar (stile targhette Bosetti) */
.legacy-sidebar-icon-link {
  font-size: 11px !important;
  padding: 2px 5px;
  background: #CC0000;
  border: 1px outset #FF4444;
  color: #FFFFC4 !important;
  text-decoration: none !important;
  font-weight: bold;
  display: inline-block;
  white-space: nowrap;
}

.legacy-sidebar-icon-link:hover {
  background: #DD0000;
  color: #FFFFFF !important;
}

/* "Come arrivare" */
.legacy-sidebar-come-arrivare {
  font-family: Calibri, sans-serif;
  font-size: 18px !important;
  color: #FFFFC4 !important;
  font-weight: bold;
  text-decoration: underline;
  display: block;
  text-align: center;
  line-height: 1.2;
}

.legacy-sidebar-come-arrivare:hover {
  color: #FFFFFF !important;
}

/* Banner NormaBot */
.legacy-sidebar-banner {
  background: #FFFF00;
  padding: 10px 4px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  color: #FF0000;
  border: 2px outset #CC0000;
  margin: 2px auto;
  width: 107px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Times New Roman", serif;
  letter-spacing: 1px;
}

.legacy-sidebar-links {
  padding: 4px 4px;
}

.legacy-sidebar-links a {
  display: block;
  padding: 2px 4px;
  font-family: Calibri, sans-serif;
  font-size: 13px;
  color: #FFFFC4;
  font-weight: bold;
}

.legacy-sidebar-links a:hover {
  color: #FFFFFF;
}

.legacy-sidebar-utilita {
  background-color: #FFFF00;
  padding: 4px;
  margin: 6px 2px;
  text-align: center;
}

.legacy-sidebar-utilita a,
.legacy-sidebar-utilita span {
  color: #FF0000 !important;
  font-weight: bold;
  font-size: 13px;
  text-decoration: none;
}

.legacy-sidebar-email {
  text-align: center;
  padding: 6px 4px;
  color: #FFFFFF;
  font-weight: bold;
  font-size: 13px;
}

.legacy-sidebar-email a {
  color: #FFFFFF;
  font-size: 12px;
}

.legacy-sidebar-pec {
  text-align: center;
  padding: 3px;
  color: #FFFFC4;
  font-size: 11px;
  font-weight: bold;
}

.legacy-sidebar-codice {
  text-align: center;
  padding: 4px 2px;
  color: #FFFF00;
  font-size: 11px;
  font-weight: bold;
}

/* ---------- Header (frame superiore) ---------- */

.legacy-header {
  grid-column: 2;
  grid-row: 1;
  background-color: #FF0000;
  min-height: 135px;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.legacy-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex: 1;
  overflow: hidden;
  gap: 8px;
}

/* Targhina piccola — ora usa immagine reale, stile CSS di fallback */
.legacy-header-targhina {
  background: linear-gradient(180deg, #C9A84C, #FFD700, #C9A84C);
  border: 1px outset #DAA520;
  padding: 2px 6px;
  font-family: Tahoma, sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: #800000;
  text-align: center;
  display: inline-block;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  max-width: 130px;
}

/* Griglia navigazione */
.legacy-nav-grid {
  border-collapse: collapse;
  font-family: Tahoma, sans-serif;
}

.legacy-nav-grid th {
  font-size: 10px;
  color: #FFFFC4;
  font-weight: normal;
  padding: 0 3px 1px;
  text-align: center;
  font-family: Tahoma, sans-serif;
}

.legacy-nav-col-header {
  font-size: 10px !important;
  color: #FFFFC4 !important;
  font-weight: normal !important;
  font-family: Tahoma, sans-serif;
}

.legacy-nav-grid td {
  padding: 1px 3px;
  vertical-align: middle;
}

.legacy-nav-label {
  color: #FFFF00;
  font-family: Tahoma, sans-serif;
  font-size: 11px;
  font-weight: bold;
  text-align: right;
  padding-right: 4px;
  white-space: nowrap;
}

/* Pallini gialli — legacy CSS fallback */
.legacy-nav-dots {
  color: #FFD700;
  font-size: 10px;
  letter-spacing: -1px;
}

.legacy-nav-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #FFD700;
  border: 1px outset #FFE44D;
  cursor: pointer;
  margin: 1px;
  vertical-align: middle;
}

.legacy-nav-dot:hover {
  background-color: #FFFF00;
  border-color: #FFFF66;
}

/* Logo/targa dorata — ora usa immagine reale */
.legacy-logo-targa {
  background: linear-gradient(180deg, #C9A84C, #FFD700, #E8C84C, #FFD700, #C9A84C);
  border: 2px outset #DAA520;
  padding: 8px 20px;
  text-align: center;
  font-family: "Times New Roman", Georgia, serif;
  font-weight: bold;
  color: #000000;
  font-size: 24px;
  letter-spacing: 2px;
  white-space: nowrap;
  align-self: center;
  flex-shrink: 0;
  min-height: 54px;
  line-height: 54px;
}

/* Marquee header */
.legacy-marquee-container {
  overflow: hidden;
  background: transparent;
  padding: 3px 0;
  white-space: nowrap;
  border-top: 1px solid #CC0000;
}

.legacy-marquee-text {
  display: inline-block;
  animation: legacy-marquee-scroll 28s linear infinite;
  color: #FFFF00;
  font-family: Tahoma, sans-serif;
  font-size: 11px;
  font-weight: bold;
}

@keyframes legacy-marquee-scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ---------- Area contenuto principale ---------- */

.legacy-main-content {
  grid-column: 2;
  grid-row: 2;
  background: url("/themes/legacy/img/fondonuvole.jpg") repeat;
  background-color: #f5fdfe;
  padding: 12px 16px;
  font-family: Calibri, "Segoe UI", Tahoma, sans-serif;
  font-size: 14px;
  color: #000000;
  min-height: calc(100vh - 135px);
}

/* ---------- Titolo norma (stile bosettiegatti) ---------- */

.legacy-act-title {
  text-align: center;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: bold;
  margin: 12px 0;
  color: #000000;
}

.legacy-act-subtitle {
  text-align: center;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 13px;
  color: #00b04f;
  margin-bottom: 12px;
}

/* ---------- Tabella indice articoli ---------- */

.legacy-index-table {
  border-collapse: separate;
  border-spacing: 3px;
  width: 100%;
  margin-bottom: 16px;
}

.legacy-index-table td {
  background-color: #FFFFFF;
  padding: 3px 6px;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 13px;
  vertical-align: top;
}

.legacy-index-table a {
  color: #0000ff;
  text-decoration: underline;
}

.legacy-index-table a:hover {
  color: #FF0000;
  font-weight: bold;
}

/* ---------- Articolo (stile bosettiegatti) ---------- */

.legacy-article {
  margin-bottom: 16px;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #000000;
}

.legacy-article-header {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
}

.legacy-comma {
  text-align: left;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 14px;
  margin: 4px 0;
  color: #000000;
}

.legacy-lettera {
  margin-left: 32px;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #000000;
}

/* Testo soppresso */
.legacy-soppresso {
  color: #C0C0C0;
  font-style: italic;
}

/* Testo innovato */
.legacy-innovato {
  font-weight: bold;
  font-style: italic;
}

/* ---------- Classi tipografiche (da bosettiegatti) ---------- */

.nero12 {
  font-family: Verdana, sans-serif;
  font-size: 12px;
  color: #000000;
}

.red12bold {
  font-family: Verdana, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #D12323;
}

/* ---------- Tabella dati generica ---------- */

.legacy-table {
  border-collapse: collapse;
  width: 100%;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 13px;
}

.legacy-table th,
.legacy-table td {
  border: 1px solid #808080;
  padding: 4px 6px;
  text-align: left;
}

.legacy-table th {
  background-color: #E0E0E0;
  font-weight: bold;
  font-size: 12px;
}

.legacy-table tr:nth-child(even) {
  background-color: #F0F0F0;
}

.legacy-table tr:nth-child(odd) {
  background-color: #FFFFFF;
}

.legacy-table tr:hover {
  background-color: #FFFFC4;
}

.legacy-table a {
  color: #0000ff;
}

.legacy-table a:hover {
  color: #FF0000;
  font-weight: bold;
}

/* ---------- Form classico ---------- */

.legacy-input {
  background: #FFFFFF;
  border: 1px solid #808080;
  padding: 3px 6px;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 13px;
  color: #000000;
  outline: none;
}

.legacy-input:focus {
  border-color: #0000ff;
}

.legacy-select {
  background: #FFFFFF;
  border: 1px solid #808080;
  padding: 2px 4px;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 13px;
  color: #000000;
  cursor: pointer;
}

.legacy-textarea {
  background: #FFFFFF;
  border: 1px solid #808080;
  padding: 4px 6px;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 13px;
  color: #000000;
  outline: none;
  resize: vertical;
}

.legacy-textarea:focus {
  border-color: #0000ff;
}

.legacy-btn {
  background: #E0E0E0;
  border: 2px outset #DFDFDF;
  padding: 3px 12px;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 13px;
  color: #000000;
  cursor: pointer;
  font-weight: bold;
}

.legacy-btn:active {
  border-style: inset;
}

.legacy-btn:hover {
  background: #D0D0D0;
}

.legacy-btn-primary {
  background: #E0E0E0;
  color: #000000;
  border: 2px outset #DFDFDF;
}

.legacy-btn:disabled {
  color: #808080;
  cursor: default;
}

/* ---------- Filtri tipo (link style) ---------- */

.legacy-filter-link {
  display: inline-block;
  padding: 1px 6px;
  margin: 1px;
  color: #0000ff;
  text-decoration: underline;
  font-size: 12px;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: Calibri, "Segoe UI", sans-serif;
}

.legacy-filter-link:hover {
  color: #FF0000;
  font-weight: bold;
}

.legacy-filter-active {
  color: #FF0000 !important;
  font-weight: bold !important;
  text-decoration: none !important;
}

/* ---------- Paginazione ---------- */

.legacy-pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 13px;
}

.legacy-pagination a,
.legacy-pagination span {
  color: #0000ff;
  cursor: pointer;
  text-decoration: underline;
}

.legacy-pagination a:hover,
.legacy-pagination span:hover {
  color: #FF0000;
  font-weight: bold;
}

.legacy-page-active {
  color: #FF0000 !important;
  font-weight: bold !important;
  text-decoration: none !important;
}

/* ---------- Badge tipo atto ---------- */

.legacy-badge {
  display: inline;
  font-size: 12px;
  font-weight: bold;
  color: #D12323;
  font-family: Verdana, sans-serif;
}

/* ---------- Highlight ricerca ---------- */

.legacy-highlight {
  background: #FFFF00;
  color: #000000;
  padding: 0 1px;
  font-weight: bold;
}

/* ---------- Chat (stile forum anni 2000) ---------- */

.legacy-chat-area {
  background: #FFFFFF;
  border: 1px solid #808080;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #000000;
  padding: 8px 12px;
  overflow-y: auto;
  min-height: 300px;
  max-height: 500px;
  line-height: 1.5;
}

.legacy-chat-question {
  margin-bottom: 12px;
  padding: 6px 8px;
  background: #F0F0F0;
  border-left: 3px solid #0000ff;
}

.legacy-chat-question-label {
  font-weight: bold;
  color: #0000ff;
  font-size: 12px;
  margin-bottom: 2px;
}

.legacy-chat-answer {
  margin-bottom: 12px;
  padding: 6px 8px;
}

.legacy-chat-answer-label {
  font-weight: bold;
  color: #D12323;
  font-size: 12px;
  margin-bottom: 2px;
}

.legacy-chat-sources {
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px solid #C0C0C0;
  font-size: 12px;
}

.legacy-chat-sources a {
  color: #0000ff;
}

.legacy-chat-sources a:hover {
  color: #FF0000;
  font-weight: bold;
}

/* ---------- Errore ---------- */

.legacy-error {
  color: #FF0000;
  font-weight: bold;
  padding: 4px;
  font-size: 13px;
}

.legacy-success {
  color: #008000;
  font-weight: bold;
  padding: 4px;
  font-size: 13px;
}

/* ---------- Link citazione nel testo ---------- */

.legacy-citation-link {
  color: #0000ff;
  text-decoration: underline;
  text-decoration-style: dotted;
  cursor: pointer;
}

.legacy-citation-link:hover {
  color: #FF0000;
  font-weight: bold;
}

/* ---------- HR stile classico ---------- */

[data-theme="retro90s"] hr {
  border: none;
  border-top: 1px solid #808080;
  margin: 8px 0;
}

/* ---------- Homepage layout (stile bosettiegatti indehome.htm) ---------- */

.legacy-home-topbar {
  width: 100%;
  border-collapse: collapse;
  border: none;
  background-color: #FF0000;
  margin-bottom: 0;
}

.legacy-home-2col {
  display: flex;
  flex-direction: row;
  gap: 0;
  width: 100%;
  min-height: 80vh;
}

.legacy-home-sidebar {
  width: 23%;
  min-width: 180px;
  max-width: 260px;
  flex-shrink: 0;
  background-color: #FFFFDF;
  padding: 8px 6px;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 12px;
  border-right: 1px solid #C0C0C0;
}

.legacy-home-quicklinks {
  padding: 0 4px;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1.6;
}

.legacy-home-quicklinks a {
  color: #0000ff;
  text-decoration: underline;
  font-size: 12px;
}

.legacy-home-quicklinks a:hover {
  color: #FF0000;
  font-weight: bold;
}

.legacy-home-content {
  flex: 1;
  padding: 8px 12px;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 14px;
  background-color: #f5fdfe;
}

/* ---------- Sezione header con tab (stile bosettiegatti normellpp.htm) ---------- */

.legacy-section-header {
  width: 100%;
  border-collapse: collapse;
  border: 3px solid #FF0000;
  margin-bottom: 0;
}

.legacy-section-header td {
  padding: 3px;
  font-family: Calibri, "Segoe UI", sans-serif;
}

/* Tab attiva nella sezione header */
.legacy-section-tab-active {
  background-color: #DCFCFE;
  font-weight: bold;
  color: #FF0000;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 13px;
  padding: 3px 10px;
  text-align: center;
  cursor: default;
}

/* Tab inattiva nella sezione header */
.legacy-section-tab {
  background-color: #FFFFFF;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 13px;
  padding: 3px 10px;
  text-align: center;
  cursor: pointer;
}

.legacy-section-tab a,
.legacy-section-tab span {
  color: #0000FF;
  text-decoration: underline;
  cursor: pointer;
}

.legacy-section-tab:hover {
  background-color: #F0FFFE;
}

/* Banner rosa con link a sezione correlata */
.legacy-banner-link {
  background-color: #FFC4C4;
  padding: 3px 8px;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 12px;
  border-bottom: 1px solid #E0B0B0;
}

.legacy-banner-link a,
.legacy-banner-link span {
  color: #0000FF;
  text-decoration: underline;
  cursor: pointer;
}

.legacy-banner-link:hover {
  background-color: #FFD4D4;
}

/* ---------- Tabella sentenze (cod azzurro) ---------- */

.legacy-sentenze-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 13px;
}

.legacy-sentenze-table td.cod {
  background-color: #E1FFFF;
  font-weight: bold;
  text-align: center;
  vertical-align: top;
  padding: 3px 4px;
  width: 40px;
}

.legacy-sentenze-table td.argomento {
  background-color: #FFFFFF;
  font-weight: bold;
  vertical-align: top;
  padding: 3px 6px;
}

.legacy-sentenze-table td.oggetto {
  background-color: #FFFFFF;
  vertical-align: top;
  padding: 3px 6px;
}

.legacy-sentenze-table td.anno {
  font-family: Tahoma, sans-serif;
  font-size: 12px;
  text-align: center;
  vertical-align: top;
  padding: 3px 4px;
  color: #808080;
  width: 40px;
}

/* ---------- Tabella pareri (cod rosa chiaro) ---------- */

.legacy-pareri-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 13px;
}

.legacy-pareri-table td.cod {
  background-color: #FFD9D9;
  font-weight: bold;
  text-align: center;
  vertical-align: top;
  padding: 3px 4px;
  width: 40px;
}

.legacy-pareri-table td.argomento {
  background-color: #FFFFFF;
  font-weight: bold;
  vertical-align: top;
  padding: 3px 6px;
}

.legacy-pareri-table td.oggetto {
  background-color: #FFFFFF;
  vertical-align: top;
  padding: 3px 6px;
}

/* ---------- Frecce di navigazione (stile Bosetti p_up/p_sx/p_exit/p_dx) ---------- */

.legacy-nav-arrows {
  text-align: center;
  margin: 12px 0;
}

.legacy-nav-arrows a {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border: 1px outset #C0C0C0;
  background-color: #E0E0E0;
  cursor: pointer;
  font-family: Tahoma, sans-serif;
  font-size: 12px;
  color: #000000;
  text-decoration: none;
  margin: 1px;
  vertical-align: middle;
}

.legacy-nav-arrows a:hover {
  background-color: #D0D0D0;
  color: #FF0000;
  font-weight: normal;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .legacy-frameset {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }

  .legacy-sidebar {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    padding: 4px 8px;
  }

  .legacy-header {
    grid-column: 1;
    grid-row: 2;
    min-height: auto;
  }

  .legacy-main-content {
    grid-column: 1;
    grid-row: 3;
  }

  .legacy-logo-targa {
    font-size: 16px;
    padding: 4px 8px;
    min-width: auto;
  }

  .legacy-nav-grid {
    font-size: 8px;
  }

  .legacy-home-2col {
    flex-direction: column;
  }

  .legacy-home-sidebar {
    width: 100%;
    max-width: none;
    min-width: auto;
    border-right: none;
    border-bottom: 1px solid #C0C0C0;
    min-height: auto;
  }
}

