/* ============================================================
   INDEBITAMENTO.IT
   TEMPLATE MASTER PAGINE INTERNE
   Derivato dalla Home V3 approvata
   ============================================================ */

:root{
  --int-blue:#123f5d;
  --int-blue-dark:#0b3f60;
  --int-blue-light:#eaf2f6;
  --int-gold:#d5a75f;
  --int-text:#18394f;
  --int-muted:#587286;
  --int-soft:#f4f7f9;
  --int-line:#e2e9ed;
  --int-white:#ffffff;
}

/* ------------------------------------------------------------
   LAYOUT GENERALE
   ------------------------------------------------------------ */

body:not(.home-v2){
  background:#fff;
  color:var(--int-text);
}

body:not(.home-v2) main{
  min-height:520px;
}

body:not(.home-v2) .container,
body:not(.home-v2) .narrow{
  width:min(1148px,calc(100% - 36px));
  margin-left:auto;
  margin-right:auto;
}

body:not(.home-v2) .narrow{
  max-width:960px;
}

/* ------------------------------------------------------------
   HERO INTERNA
   ------------------------------------------------------------ */

.page-hero{
  position:relative;
  overflow:hidden;
  padding:58px 0 52px;
  background:
    radial-gradient(circle at 83% 35%,rgba(213,167,95,.22),transparent 18%),
    linear-gradient(110deg,#ffffff 0%,#faf7f1 56%,#eef4f7 100%);
  border-bottom:1px solid var(--int-line);
}

.page-hero::after{
  content:"";
  position:absolute;
  width:430px;
  height:150px;
  right:-70px;
  bottom:-105px;
  border:12px solid rgba(255,255,255,.85);
  border-radius:50%;
  transform:rotate(-8deg);
}

.page-hero .eyebrow{
  position:relative;
  z-index:2;
  margin:0 0 10px;
  font-size:11px;
  line-height:1.2;
  letter-spacing:.13em;
  font-weight:800;
  color:#28526b;
}

.page-hero h1{
  position:relative;
  z-index:2;
  max-width:850px;
  margin:0 0 14px;
  color:var(--int-blue);
  font-family:Georgia,"Times New Roman",serif;
  font-size:48px;
  line-height:1.03;
  letter-spacing:-1px;
}

.page-hero .lead{
  position:relative;
  z-index:2;
  max-width:800px;
  margin:0;
  color:#3f6075;
  font-size:18px;
  line-height:1.5;
}

/* ------------------------------------------------------------
   BREADCRUMB
   ------------------------------------------------------------ */

.breadcrumb-wrap{
  background:#fff;
  border-bottom:1px solid #edf1f3;
}

.breadcrumb{
  width:min(1148px,calc(100% - 36px));
  margin:0 auto;
  padding:11px 0;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  font-size:11px;
  color:#6a8190;
}

.breadcrumb a{
  color:#285b79;
}

.breadcrumb .sep{
  opacity:.55;
}

/* ------------------------------------------------------------
   CONTENUTO
   ------------------------------------------------------------ */

.section{
  padding:44px 0;
}

.section:nth-child(even){
  background:#fff;
}

.content{
  color:#29495d;
}

.content > section{
  padding:8px 0 26px;
  margin-bottom:24px;
  border-bottom:1px solid var(--int-line);
}

.content > section:last-child{
  border-bottom:0;
}

.content h2{
  margin:0 0 14px;
  color:var(--int-blue);
  font-family:Georgia,"Times New Roman",serif;
  font-size:30px;
  line-height:1.15;
}

.content h3{
  margin:26px 0 10px;
  color:var(--int-blue);
  font-family:Georgia,"Times New Roman",serif;
  font-size:22px;
}

.content p,
.content li{
  font-size:16px;
  line-height:1.65;
}

.content ul,
.content ol{
  padding-left:22px;
}

.content li{
  margin:7px 0;
}

/* ------------------------------------------------------------
   CARD / TOPIC
   ------------------------------------------------------------ */

.topic-list{
  display:grid;
  gap:14px;
}

.topic-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:25px;
  padding:22px 24px;
  background:#fff;
  border:1px solid var(--int-line);
  border-radius:8px;
  box-shadow:0 5px 17px rgba(15,63,93,.04);
  transition:transform .18s ease,box-shadow .18s ease;
}

.topic-row:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 25px rgba(15,63,93,.09);
}

.topic-row h2{
  margin:0 0 4px;
  font-size:25px;
}

.topic-row p{
  margin:0;
  color:var(--int-muted);
  font-size:14px;
}

.topic-row > span{
  color:var(--int-gold);
  font-size:25px;
}

/* ------------------------------------------------------------
   BOX INFORMATIVI
   ------------------------------------------------------------ */

.notice{
  margin:18px 0;
  padding:18px 20px;
  background:#edf5f8;
  border-left:4px solid #5488a4;
  border-radius:5px;
  color:#26495d;
}

.notice.warning,
.warning{
  background:#fff8eb;
  border-left-color:var(--int-gold);
}

.notice strong{
  color:var(--int-blue);
}

/* ------------------------------------------------------------
   COMPONENTI FUTURI RIUTILIZZABILI
   ------------------------------------------------------------ */

.internal-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin:24px 0;
}

.internal-card{
  padding:22px;
  background:#fff;
  border:1px solid var(--int-line);
  border-radius:8px;
  box-shadow:0 5px 18px rgba(13,61,90,.04);
}

.internal-card h3{
  margin-top:0;
}

.solution-strip{
  margin:35px 0 5px;
  padding:26px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  background:linear-gradient(90deg,#103f5c,#1d5e80);
  color:#fff;
  border-radius:7px;
}

.solution-strip h2,
.solution-strip h3{
  color:#fff;
  margin:0 0 5px;
}

.solution-strip p{
  margin:0;
  color:#dfeaf0;
}

.source-box{
  margin-top:30px;
  padding:20px;
  background:#f7f9fa;
  border:1px solid var(--int-line);
  border-radius:7px;
}

.source-box h3{
  margin-top:0;
}

/* ------------------------------------------------------------
   PAGINE LEGALI
   ------------------------------------------------------------ */

body.page-legal .content{
  max-width:900px;
}

body.page-legal .content h2{
  margin-top:25px;
}

.legal-placeholder{
  color:#9b6423;
  font-weight:700;
}

/* ------------------------------------------------------------
   FORM / FUTURA AREA LOGIN
   ------------------------------------------------------------ */

.form-card{
  max-width:620px;
  margin:0 auto;
  padding:30px;
  background:#fff;
  border:1px solid var(--int-line);
  border-radius:8px;
  box-shadow:0 12px 28px rgba(13,61,90,.07);
}

/* ------------------------------------------------------------
   FOOTER / HEADER
   ------------------------------------------------------------ */

body:not(.home-v2) .site-header{
  font-family:"Segoe UI",Arial,sans-serif;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media(max-width:1050px){

  .page-hero h1{
    font-size:43px;
  }

  .internal-grid{
    grid-template-columns:1fr 1fr;
  }

}

@media(max-width:700px){

  body:not(.home-v2) .container,
  body:not(.home-v2) .narrow,
  .breadcrumb{
    width:min(100% - 24px,1148px);
  }

  .page-hero{
    padding:42px 0 38px;
  }

  .page-hero h1{
    font-size:37px;
  }

  .page-hero .lead{
    font-size:17px;
  }

  .section{
    padding:34px 0;
  }

  .content h2{
    font-size:27px;
  }

  .internal-grid{
    grid-template-columns:1fr;
  }

  .solution-strip{
    flex-direction:column;
    align-items:flex-start;
  }

}

/* ============================================================
   TIPI DI DEBITO / PAGINE VERTICALI
   ============================================================ */

.debt-intro{
  max-width:880px;
  margin:0 0 30px;
  font-size:18px;
  line-height:1.65;
  color:#3b5d72;
}

.debt-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin:25px 0 10px;
}

.debt-card{
  position:relative;
  min-height:190px;
  padding:23px 22px 21px;
  background:#fff;
  border:1px solid var(--int-line);
  border-radius:9px;
  box-shadow:0 6px 18px rgba(13,61,90,.05);
  text-decoration:none;
  color:inherit;
  transition:.18s ease;
}

.debt-card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 28px rgba(13,61,90,.10);
}

.debt-card h2{
  margin:0 0 8px;
  font-size:23px;
}

.debt-card p{
  margin:0;
  font-size:14px;
  line-height:1.5;
  color:var(--int-muted);
}

.stage-grid,
.check-grid,
.action-list{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
  margin:22px 0;
}

.stage-card,
.check-box,
.action-item{
  padding:20px;
  border:1px solid var(--int-line);
  border-radius:8px;
  background:#fff;
}

.action-item{
  border-left:4px solid var(--int-gold);
  background:#faf8f3;
}

.documents-list{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px 25px;
  margin:18px 0;
  padding:0;
  list-style:none;
}

.documents-list li{
  position:relative;
  padding-left:23px;
}

.documents-list li::before{
  content:"✓";
  position:absolute;
  left:0;
  color:#4f7f68;
  font-weight:800;
}

.official-sources{
  margin-top:35px;
  padding:24px;
  background:#f7f9fa;
  border:1px solid var(--int-line);
  border-radius:8px;
}

@media(max-width:700px){
  .debt-grid,
  .stage-grid,
  .check-grid,
  .action-list,
  .documents-list{
    grid-template-columns:1fr;
  }
}

