:root{
  --ink:#21180f;
  --brown:#6f5434;
  --rule:#786247;
  --paper:#e6d3a9;
}

*{box-sizing:border-box}

html{
  background:#b59a6e;
}

body{
  margin:0;
  padding:18px;
  color:var(--ink);
  font-family:Georgia,"Times New Roman",serif;

  background:
    radial-gradient(circle at 5% 10%,rgba(88,56,24,.15),transparent 18%),
    radial-gradient(circle at 92% 18%,rgba(93,57,21,.12),transparent 14%),
    radial-gradient(circle at 15% 88%,rgba(98,62,28,.13),transparent 20%),
    linear-gradient(97deg,transparent 47%,rgba(95,65,34,.045) 50%,transparent 53%),
    linear-gradient(8deg,transparent 45%,rgba(80,51,24,.04) 49%,transparent 54%),
    #c8ad7e;
}

.newspaper{
  max-width:1500px;
  margin:auto;
  padding:28px 38px 18px;
  position:relative;
  overflow:hidden;

  background:
    radial-gradient(circle at 12% 15%,rgba(110,74,33,.10),transparent 15%),
    radial-gradient(circle at 78% 20%,rgba(117,77,34,.08),transparent 17%),
    radial-gradient(circle at 62% 72%,rgba(117,77,34,.07),transparent 18%),
    repeating-linear-gradient(
      12deg,
      transparent 0,
      transparent 30px,
      rgba(90,61,31,.018) 31px,
      transparent 32px
    ),
    #ead9b4;

  box-shadow:
    0 0 30px rgba(45,28,10,.45),
    inset 0 0 80px rgba(89,54,20,.14);

  border:1px solid rgba(73,48,24,.35);
}

.newspaper:before{
  content:"";
  pointer-events:none;
  position:absolute;
  inset:0;

  background:
    linear-gradient(90deg,rgba(91,60,29,.08),transparent 2%,transparent 98%,rgba(91,60,29,.1)),
    linear-gradient(rgba(91,60,29,.09),transparent 2%,transparent 98%,rgba(91,60,29,.08));

  mix-blend-mode:multiply;
}

a{color:inherit}

.mast-top{
  display:grid;
  grid-template-columns:220px 1fr 250px;
  border-top:1px solid var(--rule);
  border-bottom:1px solid var(--rule);
}

.motto-box,
.mission{
  min-height:150px;
  padding:20px;
  text-align:center;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.motto-box{
  border-right:1px solid var(--rule);
  font-size:1.15rem;
}

.mission{
  border-left:1px solid var(--rule);
  font-size:.93rem;
}

.orn{
  display:block;
  margin:12px 0;
}

.brand{
  text-align:center;
  padding:8px 20px 12px;
}

.orn-line{
  margin:-2px 0 -15px;
}

.brand h1{
  font-size:clamp(4.5rem,8vw,8.5rem);
  line-height:.9;
  margin:0;
  letter-spacing:.025em;
}

.brand p{
  font-size:1.55rem;
  font-style:italic;
  margin:5px 0;
}

.edition-bar{
  display:flex;
  justify-content:space-between;
  gap:15px;
  border-bottom:3px double var(--ink);
  padding:7px 12px;
  font-size:.9rem;
  letter-spacing:.04em;
}

.main-nav{
  min-height:48px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:2px solid var(--ink);
}

.nav-links{
  display:flex;
  align-items:center;
}

.nav-links a{
  padding:13px 24px;
  text-decoration:none;
  font-weight:bold;
}

.search{
  width:310px;
  padding:8px 12px;
  font-size:.84rem;
  font-style:italic;
  border-bottom:1px solid var(--rule);
  color:#655039;
}

.front-grid{
  display:grid;
  grid-template-columns:400px minmax(460px,1fr) 395px;
  border-bottom:1px solid var(--rule);
}

.engraving{
  padding:18px 20px 18px 0;
}

.engraving-inner{
  min-height:370px;
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:25px;
  border:1px solid rgba(64,45,25,.5);

  background:
    repeating-linear-gradient(
      165deg,
      rgba(33,24,15,.08) 0,
      rgba(33,24,15,.08) 1px,
      transparent 1px,
      transparent 4px
    ),
    radial-gradient(circle at center,#cfb88a,#aa8e60);
}

.book-stack{
  width:72%;
}

.book-stack span{
  display:block;
  padding:7px 15px;
  margin:3px 0;
  border:3px double var(--ink);
  background:rgba(225,205,165,.8);
  font-weight:bold;
  font-size:1.55rem;
  text-align:center;
}

.feather{
  position:absolute;
  right:22px;
  top:25px;
  font-size:8rem;
  transform:rotate(-18deg);
}

.lead{
  padding:18px 28px;
  border-left:1px solid var(--rule);
  border-right:1px solid var(--rule);
}

.rubrica{
  margin:0 0 8px;
  color:#60492f;
  font-size:.82rem;
  font-weight:bold;
  letter-spacing:.12em;
}

.lead h2{
  font-size:clamp(2.6rem,4.4vw,4.7rem);
  line-height:.98;
  margin:6px 0 14px;
}

.occhiello{
  font-size:1.2rem;
  font-style:italic;
}

.article-rule{
  border-top:1px solid var(--rule);
  margin:18px 0;
}

.dropcap{
  font-size:1.06rem;
}

.dropcap:first-letter{
  float:left;
  font-size:4.7rem;
  line-height:.75;
  padding-right:8px;
  padding-top:9px;
}

.continua{
  display:inline-block;
  margin-top:10px;
  font-weight:bold;
}

.right-column{
  padding:0;
}

.deadline{
  padding:14px 18px;
  border-bottom:1px solid var(--rule);
}

.deadline h2{
  font-size:2rem;
  margin:0 0 10px;
}

.deadline-inner{
  display:grid;
  grid-template-columns:130px 1fr;
  gap:16px;
  align-items:center;
}

.calendar{
  border:1px solid var(--rule);
  text-align:center;
  padding:8px;
}

.calendar small{
  display:block;
  font-weight:bold;
}

.calendar strong{
  display:block;
  font-size:4rem;
  line-height:1.05;
}

.deadline h3{
  font-size:1.55rem;
}

.mini-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
}

.mini-grid section{
  padding:14px 18px;
  border-right:1px solid var(--rule);
}

.mini-grid section:last-child{
  border-right:0;
}

.mini-grid a{
  display:block;
  margin-top:10px;
  font-weight:bold;
}

.weather-symbol,
.zodiac{
  float:left;
  font-size:3.2rem;
  margin-right:10px;
}

.mini-grid h3{
  margin:8px 0;
}

.mini-grid h3 strong{
  font-size:2.2rem;
}

.section-title{
  text-align:center;
  font-weight:bold;
  font-size:1.35rem;
  margin:-1px 0 0;
}

.section-title span{
  background:#ead9b4;
  display:inline-block;
  padding:0 18px;
  transform:translateY(-15px);
}

.rubriche{
  display:grid;
  grid-template-columns:repeat(8,1fr);
  border:1px solid var(--rule);
}

.rubriche a{
  min-height:118px;
  padding:12px 8px;
  border-right:1px solid var(--rule);
  text-decoration:none;
  text-align:center;
  font-weight:bold;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.rubriche a:last-child{
  border-right:0;
}

.icon{
  font-size:2.7rem;
  display:block;
  line-height:1;
  margin-bottom:7px;
}

.bottom-grid{
  display:grid;
  grid-template-columns:1.7fr 1fr;
  margin-top:12px;
}

.newsletter{
  display:grid;
  grid-template-columns:125px 1fr 1.15fr;
  gap:20px;
  align-items:center;
  padding:14px;
  border:1px solid var(--rule);
}

.mini-paper{
  border:2px solid var(--ink);
  padding:18px 8px;
  text-align:center;
  transform:rotate(-2deg);
}

.mini-paper strong,
.mini-paper span{
  display:block;
}

.newsletter h2,
.archive h2{
  margin:2px 0 8px;
}

.subscribe label{
  display:block;
  font-weight:bold;
  margin-bottom:7px;
}

.subscribe div{
  display:flex;
}

.subscribe input{
  flex:1;
  min-width:0;
  padding:11px;
  border:1px solid var(--rule);
  background:#f2e6cb;
}

.subscribe button{
  padding:11px 25px;
  color:#f4e8cd;
  background:var(--ink);
  border:0;
}

.archive{
  display:grid;
  grid-template-columns:145px 1fr;
  gap:16px;
  align-items:center;
  padding:15px;
  border-top:1px solid var(--rule);
  border-right:1px solid var(--rule);
  border-bottom:1px solid var(--rule);
}

.books{
  font-size:4rem;
  line-height:.6;
  text-align:center;
  transform:rotate(-5deg);
}

.archive a{
  font-weight:bold;
}

footer{
  margin-top:18px;
  padding:9px 0 3px;
  border-top:2px solid var(--ink);
  display:grid;
  grid-template-columns:1fr 1.5fr 1fr;
  align-items:center;
  gap:20px;
  font-size:.72rem;
}

.footer-brand{
  text-align:center;
}

.footer-brand strong{
  font-size:1.25rem;
  letter-spacing:.08em;
}

@media(max-width:1100px){

  .mast-top{
    grid-template-columns:1fr;
  }

  .motto-box,
  .mission{
    display:none;
  }

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

  .engraving{
    display:none;
  }

  .lead{
    border-left:0;
    border-right:0;
  }

  .rubriche{
    grid-template-columns:repeat(4,1fr);
  }

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

  .archive{
    border-left:1px solid var(--rule);
  }
}

@media(max-width:700px){

  body{
    padding:0;
  }

  .newspaper{
    padding:14px;
  }

  .brand h1{
    font-size:4rem;
  }

  .brand p{
    font-size:1rem;
  }

  .edition-bar{
    display:block;
    text-align:center;
  }

  .nav-links{
    flex-wrap:wrap;
    justify-content:center;
  }

  .nav-links a{
    padding:8px 10px;
  }

  .search{
    display:none;
  }

  .rubriche{
    grid-template-columns:repeat(2,1fr);
  }

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

  .mini-paper{
    display:none;
  }

  footer{
    grid-template-columns:1fr;
    text-align:center;
  }
}

.newsletter-note{
  margin:0 0 8px;
  font-size:.82rem;
  font-style:italic;
}

.subscribe button{
  white-space:nowrap;
}

/* INCISIONE PRINCIPALE FISCOWEB */

.vintage-scene{
  position:absolute;
  inset:0;
  overflow:hidden;
  padding:38px 32px;
  display:flex;
  align-items:flex-end;

  background:
    radial-gradient(ellipse at 50% 115%,
      rgba(31,22,13,.28) 0,
      rgba(31,22,13,.08) 35%,
      transparent 62%),
    repeating-linear-gradient(
      168deg,
      rgba(42,30,18,.09) 0,
      rgba(42,30,18,.09) 1px,
      transparent 1px,
      transparent 3px
    );
}

.books-vintage{
  width:72%;
  position:relative;
  z-index:2;
  transform:rotate(-1deg);
}

.books-vintage span{
  position:relative;
  display:block;
  margin:-1px 0 0;
  padding:8px 18px;

  border:3px double #2c2115;
  border-radius:3px 12px 12px 3px;

  background:
    linear-gradient(
      90deg,
      rgba(38,27,16,.16),
      rgba(238,216,172,.75) 12%,
      rgba(214,187,139,.62) 80%,
      rgba(42,29,17,.15)
    );

  box-shadow:
    3px 3px 0 rgba(38,27,16,.17),
    inset 5px 0 0 rgba(46,31,17,.12);

  text-align:center;
  font-size:1.35rem;
  font-weight:bold;
  letter-spacing:.04em;
}

.books-vintage span:nth-child(2){
  margin-left:8px;
  width:96%;
}

.books-vintage span:nth-child(3){
  margin-left:-5px;
  width:103%;
}

.books-vintage span:nth-child(4){
  margin-left:5px;
  width:98%;
}

.quill{
  position:absolute;
  right:24px;
  top:20px;
  z-index:3;

  font-size:9rem;
  line-height:1;

  transform:rotate(-24deg);
  text-shadow:2px 2px rgba(239,215,170,.25);
}

.inkwell{
  position:absolute;
  right:52px;
  bottom:37px;
  z-index:4;

  width:72px;
  height:55px;

  border:4px double #21180f;
  border-radius:8px 8px 16px 16px;

  background:
    linear-gradient(
      135deg,
      #21180f,
      #755b39 45%,
      #21180f
    );

  box-shadow:4px 4px 0 rgba(30,20,10,.2);
}

.inkwell:before{
  content:"";
  position:absolute;
  width:35px;
  height:15px;
  left:14px;
  top:-17px;

  border:3px solid #21180f;
  background:#a88a5c;
}

.engraving-inner{
  filter:sepia(.35) contrast(1.08);
}

/* INCISIONI RUBRICHE */

.engraved-icon{
  width:58px;
  height:48px;
  object-fit:contain;
  display:block;
  margin:0 auto 7px;
  opacity:.92;
  filter:sepia(.7) contrast(1.35);
}

.rubriche a:hover .engraved-icon{
  transform:scale(1.05);
}

.books img{
  width:105px;
  height:85px;
  object-fit:contain;
  filter:sepia(.7) contrast(1.35);
}

.books{
  transform:none;
  font-size:0;
}

/* INCISIONI METEO E OROSCOPO */

.special-engraving{
  width:76px;
  height:62px;
  object-fit:contain;
  float:left;
  margin:0 12px 6px 0;
  opacity:.92;
  filter:sepia(.7) contrast(1.35);
}

.mini-grid section{
  overflow:hidden;
}


/* ==================================================
   CARTA ANTICA FISCOWEB
   texture locale leggera - nessuna risorsa esterna
   ================================================== */

body{
  background-color:#b9a074;
}

.newspaper{
  position:relative;
  isolation:isolate;
  background-color:#e4d3a9;
  background-image:
    linear-gradient(
      90deg,
      rgba(77,52,27,.055) 0%,
      transparent 4%,
      transparent 47%,
      rgba(255,247,217,.08) 50%,
      transparent 53%,
      transparent 96%,
      rgba(77,52,27,.045) 100%
    ),
    linear-gradient(
      180deg,
      rgba(79,53,26,.035),
      transparent 7%,
      transparent 93%,
      rgba(79,53,26,.055)
    ),
    url('/assets/img/carta-antica.svg');
  box-shadow:
    0 8px 25px rgba(42,29,16,.22),
    inset 0 0 38px rgba(80,54,29,.09);
}

/* bordo leggermente consumato */
.newspaper::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:-1;
  box-shadow:
    inset 0 0 8px rgba(55,37,20,.18),
    inset 0 0 24px rgba(91,62,32,.08);
}

/* imperfezione molto discreta della stampa */
.newspaper h1,
.newspaper h2,
.newspaper h3,
.brand{
  text-shadow:
    .25px .25px 0 rgba(45,31,19,.18);
}


/* ==========================================
   RECLAME STUDIO COMMERCIALE DAL 1921
   ========================================== */

.reclame-1921{
  position:relative;
  margin:8px 0;
  padding:7px;
  border-top:2px solid #352616;
  border-bottom:2px solid #352616;
  text-align:center;
}

.reclame-1921 img{
  display:block;
  width:100%;
  max-height:390px;
  object-fit:cover;
  object-position:center;
  filter:sepia(.28) contrast(1.05);
}

.reclame-label{
  position:absolute;
  top:12px;
  right:12px;
  z-index:2;
  padding:2px 6px;
  background:#e4d3a9;
  border:1px solid #352616;
  font-size:9px;
  letter-spacing:2px;
}

.reclame-caption{
  padding:6px 4px 2px;
  border-top:1px solid #5d452b;
}

.reclame-caption strong{
  display:block;
  font-size:16px;
  letter-spacing:1px;
}

.reclame-caption span{
  display:block;
  margin-top:2px;
  font-style:italic;
  font-size:12px;
}

/* ETICHETTA RECLAME PIU LEGGIBILE */
.reclame-label{
  top:10px;
  right:10px;
  padding:3px 7px;
  background:#e4d3a9;
  border:1px solid #352616;
  color:#24190f;
  font-weight:bold;
  font-size:9px;
  letter-spacing:1.5px;
  box-shadow:0 1px 2px rgba(40,25,12,.18);
}

/* ==========================================
   PAGINA ARTICOLO FISCOWEB
   ========================================== */

.article-page{
  max-width:760px;
  margin:0 auto;
  padding:28px 34px 40px;
}

.article-page h1{
  margin:6px 0 8px;
  font-size:44px;
  line-height:.95;
}

.article-subtitle{
  margin:0 0 14px;
  font-size:18px;
  font-style:italic;
}

.article-meta{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  margin:8px 0 12px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.5px;
}

.article-body{
  font-size:17px;
  line-height:1.55;
}


.article-body p{
  margin:0 0 18px;
}

.article-body ul{
  margin:8px 0 24px 22px;
  padding:0;
}

.article-body li{
  margin:0 0 10px;
  padding-left:4px;
  line-height:1.55;
}

.article-body p:first-child:first-letter{
  float:left;
  font-size:58px;
  line-height:.8;
  padding:6px 7px 0 0;
}

.article-body h2{
  margin-top:28px;
  font-size:27px;
}

.article-body h3{
  margin-top:22px;
  font-size:21px;
}

.article-body a{
  color:inherit;
  text-decoration:underline;
}

.article-footer{
  margin-top:34px;
  padding-top:12px;
  border-top:1px solid #5d452b;
  font-weight:bold;
}

@media (max-width:700px){
  .article-page{
    padding:20px 18px 30px;
  }

  .article-page h1{
    font-size:34px;
  }

  .article-body{
    font-size:16px;
  }
}

/* ==========================================
   PAGINE RUBRICHE FISCOWEB
   ========================================== */

.category-page{
  max-width:900px;
  margin:0 auto;
  padding:28px 34px 45px;
}

.category-page > h1{
  margin:5px 0 8px;
  font-size:44px;
  line-height:1;
}

.category-description{
  max-width:720px;
  font-size:17px;
  font-style:italic;
  line-height:1.4;
}

.category-articles{
  margin-top:20px;
}

.category-item{
  padding:18px 0;
  border-bottom:1px solid #6d5436;
}

.category-item h2{
  margin:4px 0 7px;
  font-size:28px;
  line-height:1.05;
}

.category-item h2 a{
  color:inherit;
  text-decoration:none;
}

.category-item h2 a:hover{
  text-decoration:underline;
}

.category-item > p:last-child{
  margin-bottom:0;
  font-size:15px;
  line-height:1.45;
}

.category-empty{
  padding:28px 0;
  text-align:center;
  font-style:italic;
}

.category-empty strong{
  display:block;
  margin-bottom:8px;
  font-size:22px;
  font-style:normal;
}

@media(max-width:700px){
  .category-page{
    padding:20px 18px 30px;
  }

  .category-page > h1{
    font-size:34px;
  }

  .category-item h2{
    font-size:24px;
  }
}

/* Titolo grafico della testata nelle pagine interne */
.masthead-title{
  font-size:inherit;
  font-weight:bold;
  line-height:inherit;
  margin:0;
}

/* FISCOWEB - testata grande pagine interne */
.masthead-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 4.4rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.06em;
    text-align: center;
    margin: 0;
    color: #21180d;
}

@media (max-width: 800px) {
    .masthead-title {
        font-size: 2.8rem;
    }
}


/* =========================================================
   FISCOWEB ARCHIVIO DIGITALE
   ========================================================= */

.archive-entry {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0,0,0,.22);
}

.archive-entry:first-child {
  padding-top: 0;
}

.archive-entry h2 {
  margin: .25rem 0 .5rem;
}

.archive-entry h2 a {
  color: inherit;
  text-decoration: none;
}

.archive-entry h2 a:hover {
  text-decoration: underline;
}

.archive-entry .article-meta {
  margin: .25rem 0 .75rem;
}


/* HOME DEFINITIVA FISCOWEB - 17 RUBRICHE */

.rubriche{
  display:grid;
  grid-template-columns:repeat(9,minmax(0,1fr));
  border:1px solid var(--rule);
}

.rubriche a{
  min-width:0;
  min-height:112px;
  padding:10px 6px;
  border-right:1px solid var(--rule);
  border-bottom:1px solid var(--rule);
  text-decoration:none;
  text-align:center;
  font-weight:bold;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  line-height:1.08;
  box-sizing:border-box;
}

.rubriche a:nth-child(9n){
  border-right:0;
}

.rubriche a:nth-last-child(-n+8){
  border-bottom:0;
}

.rubrica-symbol{
  width:38px;
  height:38px;
  margin:0 auto 7px;
  border:1px solid #352616;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:Georgia, "Times New Roman", serif;
  font-size:13px;
  font-weight:bold;
  line-height:1;
}

.reclame-caption strong{
  display:block;
  font-size:17px;
  letter-spacing:.8px;
}

.reclame-caption span{
  display:block;
  max-width:1000px;
  margin:3px auto 0;
  padding:0 10px;
  font-style:italic;
  font-size:13px;
  line-height:1.3;
}

@media (max-width:1350px){
  .rubriche{
    grid-template-columns:repeat(6,minmax(0,1fr));
  }

  .rubriche a:nth-child(9n){
    border-right:1px solid var(--rule);
  }

  .rubriche a:nth-child(6n){
    border-right:0;
  }

  .rubriche a:nth-last-child(-n+8){
    border-bottom:1px solid var(--rule);
  }
}

@media (max-width:900px){
  .rubriche{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .rubriche a:nth-child(6n){
    border-right:1px solid var(--rule);
  }

  .rubriche a:nth-child(3n){
    border-right:0;
  }
}

@media (max-width:520px){
  .rubriche{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .rubriche a{
    min-height:105px;
  }

  .rubriche a:nth-child(3n){
    border-right:1px solid var(--rule);
  }

  .rubriche a:nth-child(2n){
    border-right:0;
  }
}


/* FISCOWEB V9 - BORDI RUBRICHE RESPONSIVE */

/*
 * I bordi della griglia vengono gestiti in modo neutro.
 * Evitiamo regole nth-child dipendenti dal numero di colonne.
 */

.rubriche{
  gap:0;
}

.rubriche a{
  border-right:1px solid var(--rule);
  border-bottom:1px solid var(--rule);
}

/* desktop: 9 colonne */
@media (min-width:1351px){
  .rubriche a:nth-child(9n){
    border-right:0;
  }

  .rubriche a:nth-child(n+10){
    border-bottom:0;
  }
}

/* tablet largo: 6 colonne */
@media (min-width:901px) and (max-width:1350px){
  .rubriche a:nth-child(6n){
    border-right:0;
  }

  .rubriche a:nth-child(n+13){
    border-bottom:0;
  }
}

/* tablet/mobile: 3 colonne */
@media (min-width:521px) and (max-width:900px){
  .rubriche a:nth-child(3n){
    border-right:0;
  }

  .rubriche a:nth-child(n+16){
    border-bottom:0;
  }
}

/* smartphone: 2 colonne */
@media (max-width:520px){
  .rubriche a:nth-child(2n){
    border-right:0;
  }

  .rubriche a:nth-child(n+17){
    border-bottom:0;
  }
}

