@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,400;0,500;0,700;1,400&family=Unna:wght@400;700&display=swap');

/*Custom COLORS*/
object.svgSelected, object.buttonclicked {
    filter: brightness(0) saturate(100%) invert(19%) sepia(87%) saturate(882%) hue-rotate(177deg) brightness(97%) contrast(95%) !important;
}
span.svgSelected {
    filter: none !important;
}

#epaperModePage .btn-close, 
button#buyNowThroughItunes, /*inapp purchase button*/
button#buttonSearchArchive, /*search button*/
button#buttonResetSearch, /*reset search button*/
body > div.container > div.modalloading.modal.fade.bd-example-modal-lg > div:nth-child(2) > div > button, /*stop search popup*/
tr.tdpage,
.pagination>.active>a,
.glider-dot:hover,
.glider-dot:focus,
.glider-dot.active,
.navbar-default .navbar-toggle .icon-bar,
.divBlurrySeeNewspaperPreview,
.contReducedArticle,
img.imgLente,
img.imgLenteFooterMenu,
img.imgScaricaLeggi,
#subsBtn,
div#otheroptions,
button#proceedButton,
button#alreadyRegisterButton,
hr.headerBar,
#tutorial, /*help page*/
nav.links ul li a:hover, /*help page navigation*/
table#subscribe tr.top td, /*help page*/
/*#header > div,*/ /*purchase page header div*/
.btn-primary.disabled, /*payment page*/
.btn-primary:disabled, /*payment page*/
button.accordion-button.collapsed /*Accordion collapsed payment page*/
{
    background-color: #204C7F;
}

.accordion-button:not(.collapsed), .accordion-body {
    background: #204C7F;
    color: white;
}

.accordion-button:focus,
.btn-check:focus+.btn, 
.btn:focus{
    border-color: #204C7F;
    box-shadow: 0 0 0 0.25rem #204C7F;
}

.day-content.day-content-issue, 
.pagination>.active>a, 
.navbar-default, /*optionspage horizontal separator*/
.titlePic {
    border-bottom: 3px solid;
    border-color: #204C7F;
}

#slideArt p.quote,
button#restoreButton,
.theme2 #slideArt .maintitle span,
button.payclassbutton.white,
.day-content.day-content-issue,
.tdtitle, /*archive search result title*/
b.tdtitle, /*archive search result title*/
body > div.container > ul > li > a, /*archive search tabs*/
#helpSearch > h2 > b > font > a, /*archive search help titles*/
span.section-page-wrap-pageNum,
.buttonBlurrySeeNewspaperPreview,
.reducedArticle,
legend,
.svgSelected, /*sidebar selected label*/
.toc-section-page-wrap:hover,
.section-page-wrap-title:hover
{
    color: #204C7F !important;
}

.textHighlightingSVG {
    border: 1px solid #204C7F !important;
}

.blue {
    background: #204C7F;
    background: -webkit-gradient( linear, left top, left bottom, from(#2375B8), to(#204C7F) );
    background: -moz-linear-gradient(top, #2375B8, #204C7F);
}

.blue:hover {
    background: #204C7F;
    background: -webkit-gradient( linear, left top, left bottom, from(#2375B8), to(#204C7F) );
    background: -moz-linear-gradient(top, #2375B8, #204C7F);
    color: white;
}

/*END custom colors*/

.card-title.col-periodo /*purchase page card title*/
{
    color: #222;
}

#header > div > #main-title {
    color: #204C7F;
}
#header > div {
    background-color: #fff;
}

.bgcol-periodo:hover, .bgcol-periodo:hover, .bgcol-acquista:hover {
    background-color: #2375B8;
}

.payclassbutton:hover, .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary {
    background: #666;
}

.payclassbutton:focus {
    background: #999;
}

div#pullDown {
    background: #204C7F !important;
}
div#pullDown[style*=transparent] {
    background: transparent !important;
}

#purchase-form button img {
    border-radius: 5px;
}


/*CUSTOM APP PAYMENT*/
/*CUSTOM APP PAYMENT*/
form#subscribeForm {
    width: 100%;
}

#buy-edition-table tr:nth-of-type(odd) {
    background: #f5f5f5;
}

#buy-edition-table tr {
    background: #ededed;
    margin-bottom: 10px; /* Aggiungi 10px di spazio tra ogni riga */
}

#buy-edition-table td {
    padding: 2px;
}

/*#buy-edition-table td:first-child {
  border-radius: 10px 0 0 10px;
}

#buy-edition-table td:last-of-type {
  border-radius: 0 10px 10px 0;
}*/
/*CUSTOM APP PAYMENT*/
/*CUSTOM APP PAYMENT*/

/*recurring payment checkbox color*/
label[for=recurrok] {
    color: red;
    font-family: sans-serif;
    font-weight: bold;
}

button#submitButtonCreate {
    width: 49%;
    white-space: nowrap;
    padding: 14px 10px;
}

#formAccount .container {
    margin: 10px 0 0;
}

#formAccount .container h2 {
    margin-top: 10px;
}

/*Abbonati custom button hotspot1*/
img#hotspot1opt {
    height: 37px;
    margin: 0 auto;
}

/*override SPECIAL OFFERS style requested in TL 279935 20251111*/
button[group-id="special_offer"]{
    background: #204C7F !important;
}

/*hide checkbox in payment page*/
span:has(input[name="agree1_name"]), 
#form-check-1, 
span:has(input[name="agree2_name"]),
#form-check-2 {
    display: none;
}

/*TL284657 cambio interlinea sidebar della pagina di pagamento*/
span.well_span { line-height: 0.2em; } 
.well { line-height: 1.2em; } 
span.subscription-update-text.checkboxcustom { line-height: 1.2em; font-size: 0.95em; } 
.well p { margin-bottom: 0.5em; } 
p#sub_total { margin: 10px; }

/* =====================================================================
   FOGLIO SKIN — login e area privata Tecnavia (novembre 2026)
   Da aggiungere IN FONDO a eeLayout/ilfoglio/1.0.a/optionspage/template/csscustom.css.
   La riga @import dei font va invece IN CIMA al file (CSS richiede @import come prima regola).

   Tutte le regole sono limitate a:
     #bodyAccount              → area privata (account.php)
     body:has(#formAccount, #forgotpassword)    → pagina di login (createaccount.php / create.php)
   così edicola, archivio e checkout, che usano lo stesso file, non cambiano.
   Stile preso da www.ilfoglio.it: titoli Unna, testo Karla, blu #004C83, testo #3A3A3A,
   filetti sottili, angoli quasi squadrati, niente ombre.
   ===================================================================== */

#bodyAccount,
body:has(#formAccount, #forgotpassword) {
  --color-dark-blue: #004c83;
  --color-dark-blue2: #003f6b;
  --text-main: #3a3a3a;
  --text-muted: #636363;
  --color-gray: #d9d9d9;
  --color-gray2: #f6f7f8;
  --foglio-rule: #e2e2e2;
  --foglio-ink: #000;
  --foglio-light: #ebeff2;
  --radius-pill: 2px;
  --shadow-soft: none;
  --shadow-subtle: none;
  font-family: Karla, system-ui, sans-serif;
  color: var(--text-main);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Pulsanti (comuni) ---------- */
#bodyAccount .btn,
body:has(#formAccount, #forgotpassword) .payclassbutton,
body:has(#formAccount, #forgotpassword) button[type="submit"] {
  font-family: Karla, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 2px;
  padding: 14px 22px;
  min-height: 48px;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
#bodyAccount .btn-primary,
body:has(#formAccount, #forgotpassword) .payclassbutton:not(.disabledButton) {
  background: var(--color-dark-blue);
  border: 1px solid var(--color-dark-blue);
  color: #fff;
}
#bodyAccount .btn-primary:hover,
body:has(#formAccount, #forgotpassword) .payclassbutton:not(.disabledButton):hover {
  background: var(--color-dark-blue2);
  border-color: var(--color-dark-blue2);
  transform: none;
}
#bodyAccount .btn-secondary {
  background: #fff;
  color: var(--color-dark-blue);
  border: 1px solid var(--color-dark-blue);
}
#bodyAccount .btn-secondary:hover {
  background: var(--foglio-light);
  color: var(--color-dark-blue2);
}
/* "Disdici" non deve sembrare l'azione principale */
#bodyAccount #btn-cancel-sub {
  background: #fff;
  color: #650707;
  border: 1px solid var(--color-gray);
}
#bodyAccount #btn-cancel-sub:hover {
  border-color: #650707;
}

/* ---------- Campi (comuni) ---------- */
#bodyAccount label,
body:has(#formAccount, #forgotpassword) label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}
#bodyAccount .form-group input,
#bodyAccount .form-group select,
#bodyAccount input[type="text"],
#bodyAccount input[type="password"],
#bodyAccount input[type="email"],
body:has(#formAccount, #forgotpassword) input[type="text"],
body:has(#formAccount, #forgotpassword) input[type="password"],
body:has(#formAccount, #forgotpassword) input[type="email"] {
  font-family: Karla, sans-serif;
  font-size: 16px;
  color: var(--foglio-ink);
  background: #fff;
  border: 1px solid #bfbfbf;
  border-radius: 2px;
  padding: 12px 14px;
  min-height: 48px;
  margin: 0;
}
#bodyAccount .form-group input:focus,
#bodyAccount .form-group select:focus,
#bodyAccount input:focus,
body:has(#formAccount, #forgotpassword) input:focus {
  outline: none;
  border-color: var(--color-dark-blue);
  box-shadow: 0 0 0 3px rgba(0, 76, 131, 0.15);
}
#bodyAccount input[readonly] {
  background: var(--color-gray2) !important; /* lo script mette uno style inline */
  color: var(--text-muted);
}
#bodyAccount input::placeholder,
body:has(#formAccount, #forgotpassword) input::placeholder {
  color: #8c8c8c;
  font-size: 16px;
}

/* =====================================================================
   LOGIN
   ===================================================================== */
body:has(#formAccount, #forgotpassword) {
  padding: 0;
  align-items: center;
}
body:has(#formAccount, #forgotpassword) main {
  width: 100%;
}
body:has(#formAccount, #forgotpassword) #formAccount,
body:has(#formAccount, #forgotpassword) #forgotpassword {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--foglio-rule);
  border-radius: 2px;
  max-width: 400px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}
body:has(#formAccount, #forgotpassword) .imgcontainer {
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--foglio-ink);
  text-align: center;
}
body:has(#formAccount, #forgotpassword) img.avatar {
  max-width: 220px;
  width: 100%;
}
body:has(#formAccount, #forgotpassword) .container {
  padding: 0;
}
/* La label "Inserisci e-mail" diventa il titolo del riquadro */
body:has(#formAccount, #forgotpassword) label[for="username"] {
  font-family: Unna, Georgia, serif;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 400;
  color: var(--foglio-ink);
  text-align: left;
  margin: 0 0 6px;
}
body:has(#formAccount, #forgotpassword) label[for="username"] b {
  font-weight: 400;
}
body:has(#formAccount, #forgotpassword) label[for="username"]::after {
  content: "Accedi con l'email del tuo abbonamento. Se non hai un account lo creiamo al passo successivo.";
  display: block;
  font-family: Karla, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 10px 0 20px;
}
body:has(#formAccount, #forgotpassword) #submitButton,
body:has(#formAccount, #forgotpassword) .payclassbutton {
  width: 100%;
  margin: 16px 0 0;
}
body:has(#formAccount, #forgotpassword) .payclassbutton.disabledButton {
  background: var(--color-gray2);
  border: 1px solid var(--foglio-rule);
  color: #a6a6a6;
  opacity: 1;
}
body:has(#formAccount, #forgotpassword) p.error {
  color: #c73333;
  font-weight: 500;
  font-size: 14px;
  margin: 8px 0 0;
}
body:has(#formAccount, #forgotpassword) a {
  color: var(--color-dark-blue);
}

/* =====================================================================
   AREA PRIVATA
   ===================================================================== */
#bodyAccount {
  padding: 0;
}
#bodyAccount .subscriber-profile {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 48px;
  gap: 56px;
  flex-wrap: wrap;
}

/* Testata: logo su tutta la larghezza con filetto nero, come il sito */
#bodyAccount .content .imgcontainer {
  text-align: left;
  margin: 0 0 32px;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--foglio-ink);
}
#bodyAccount .content .imgcontainer img.avatar {
  max-width: 200px;
  max-height: none;
}

/* Colonna sinistra */
#bodyAccount .sidebar {
  width: 240px;
  flex: 0 0 240px;
  border-right: none;
  padding-top: 28px;
}
#bodyAccount .sidebar-header {
  border-bottom: 1px solid var(--foglio-rule);
  padding: 0 0 20px;
}
#bodyAccount .user-info {
  justify-content: flex-start;
}
#bodyAccount .user-details {
  text-align: left;
}
#bodyAccount .user-details::before {
  content: "Il mio account";
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-dark-blue);
  margin-bottom: 6px;
}
#bodyAccount .user-name {
  font-family: Unna, Georgia, serif;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 400;
  color: var(--foglio-ink);
}
#bodyAccount .user-email-row {
  justify-content: flex-start;
  margin-top: 4px;
}
#bodyAccount .user-email-show {
  font-size: 14px;
  color: var(--text-muted);
  word-break: break-all;
}

#bodyAccount .tabs {
  padding: 12px 0 0;
}
#bodyAccount .tab {
  font-family: Karla, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-main);
  padding: 13px 0 13px 14px;
  border-left: 3px solid transparent;
  gap: 12px;
}
#bodyAccount .tab:hover {
  background: none;
  color: var(--color-dark-blue);
}
#bodyAccount .tab.active {
  background: none;
  color: var(--color-dark-blue);
  font-weight: 700;
  border-left-color: var(--color-dark-blue);
}
#bodyAccount .tab-icon {
  width: 20px;
  font-size: 15px;
  opacity: 0.55;
}
#bodyAccount .tab.active .tab-icon {
  opacity: 1;
}
#bodyAccount .tab.logout-btn {
  margin-top: 12px;
  border-top: 1px solid var(--foglio-rule);
  padding-top: 18px;
  color: #8c8c8c;
}

/* Colonna destra */
#bodyAccount .content {
  flex: 1 1 520px;
  min-width: 0;
  max-width: 760px;
  padding: 0;
}
#bodyAccount .card,
#bodyAccount .consent-item {
  background: #fff;
  border: 1px solid var(--foglio-rule);
  border-radius: 2px;
  box-shadow: none;
  padding: 24px 28px;
  margin-bottom: 20px;
}
#bodyAccount .card h3 {
  font-family: Unna, Georgia, serif;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--foglio-ink);
  margin: 0 0 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--foglio-rule);
}
#bodyAccount .mt-2 {
  margin-top: 28px;
}
#bodyAccount .info-row {
  padding: 14px 0;
  border-bottom: 1px solid #ececec;
  align-items: baseline;
  gap: 16px;
}
#bodyAccount .info-row:last-child {
  border-bottom: none;
}
#bodyAccount .info-row .label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8c8c8c;
}
#bodyAccount .info-row .value {
  font-size: 16px;
  font-weight: 500;
  color: var(--foglio-ink);
  text-align: right;
}
#bodyAccount .info-row .value.status-active {
  color: #15803d;
  background: #e8f5ec;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
#bodyAccount .no-subscription {
  font-size: 16px;
  color: var(--text-muted);
  padding: 12px 0 4px;
}
#bodyAccount .actions {
  gap: 12px;
  margin-top: 20px;
}
#bodyAccount .actions .btn {
  flex: 0 1 auto;
}

/* Storico */
#bodyAccount .history-table {
  width: 100%;
  border-collapse: collapse;
}
#bodyAccount .history-table th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8c8c8c;
  text-align: left;
  padding: 12px 12px 10px 0;
  border-bottom: 1px solid var(--foglio-ink);
  background: none;
}
#bodyAccount .history-table td {
  font-size: 15px;
  color: var(--text-main);
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid #ececec;
}
#bodyAccount .history-table tr:hover {
  background: var(--color-gray2);
}
#bodyAccount .badge {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border: none;
}
#bodyAccount .badge-secondary {
  background: #ececec;
  color: var(--text-muted);
}
#bodyAccount .badge-success {
  background: #e8f5ec;
  color: #15803d;
}

/* Anagrafica e password */
#bodyAccount .form {
  background: none;
  box-shadow: none;
}
#bodyAccount .form-row {
  gap: 20px;
}
#bodyAccount .form-group {
  margin-bottom: 20px;
}
#bodyAccount .password-requirements {
  background: var(--color-gray2);
  border-left: 3px solid var(--color-dark-blue);
  border-radius: 0;
  padding: 18px 22px;
}
#bodyAccount .password-requirements p {
  font-weight: 700;
  color: var(--foglio-ink);
}
#bodyAccount .password-requirements li {
  font-size: 15px;
}
#bodyAccount .password-requirements li.valid,
#bodyAccount .password-requirements li.valid::before {
  color: #15803d;
}

/* Consensi */
#bodyAccount .alert.alert-info {
  background: none;
  border: none;
  border-bottom: 1px solid var(--foglio-ink);
  border-radius: 0;
  padding: 0 0 14px;
  margin-bottom: 20px;
  color: var(--foglio-ink);
}
#bodyAccount .alert.alert-info strong {
  font-family: Unna, Georgia, serif;
  font-size: 26px;
  font-weight: 400;
}
#bodyAccount .consent-item {
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
#bodyAccount .consent-info p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-main);
}
#bodyAccount .switch {
  width: 44px;
  height: 24px;
}
#bodyAccount .slider::before {
  width: 18px;
  height: 18px;
}
#bodyAccount .switch input:checked + .slider::before {
  transform: translateX(20px);
}
#bodyAccount .switch input:disabled + .slider {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Regala abbonamento */
#bodyAccount .subtitle:empty {
  display: none;
}
#bodyAccount .step-number {
  background: var(--color-dark-blue);
  border-radius: 50%;
  font-family: Unna, Georgia, serif;
  font-size: 20px;
}
#bodyAccount .step-content h4 {
  font-family: Unna, Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--foglio-ink);
}

/* Finestre (riscatta codice, conferme) */
#bodyAccount .modal-dialog {
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  padding: 32px;
}
#bodyAccount .modal-title b {
  font-family: Unna, Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--foglio-ink);
}
#bodyAccount .modal-title p + p {
  font-family: Karla, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  #bodyAccount .content {
    flex: 1 1 auto;
    overflow: visible;
    max-width: none;
  }
  #bodyAccount .subscriber-profile {
    padding: 0 16px 32px;
    gap: 0;
  }
  #bodyAccount .sidebar {
    width: 100%;
    flex-basis: auto;
    padding-top: 12px;
    border-bottom: 1px solid var(--foglio-rule);
  }
  #bodyAccount .sidebar-header {
    border-bottom: none;
    padding: 4px 0 12px;
  }
  #bodyAccount .user-details::before {
    display: none;
  }
  #bodyAccount .user-name {
    font-size: 22px;
  }
  #bodyAccount .user-info {
    justify-content: flex-end;
  }
  #bodyAccount .user-details,
  #bodyAccount .user-email-row {
    text-align: right;
    justify-content: flex-end;
  }
  #bodyAccount .tabs {
    padding-top: 80px;
  }
  #bodyAccount .tab {
    flex-direction: row;
    text-align: left;
    padding: 14px 20px;
  }
  #bodyAccount .content .imgcontainer {
    padding-top: 16px;
    margin-bottom: 20px;
    text-align: center;
  }
  #bodyAccount .card,
  #bodyAccount .consent-item {
    padding: 18px 16px;
  }
  #bodyAccount .card h3 {
    font-size: 23px;
  }
  #bodyAccount .actions .btn {
    flex: 1 1 100%;
  }
  #bodyAccount .info-row {
    flex-wrap: wrap;
  }
}
