@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root{
  --bg:#ffffff;
  --surface:#ffffff;
  --soft:#f7f7f7;
  --line:#ededed;
  --line-strong:#dddddd;
  --text:#000000;
  --muted:#818181;
  --faint:#a6a6a6;
  --accent:#e5006d;
  --accent-strong:#ab0d59;
  --secondary:#818181;
  --acid:#eeee22;
  --safe-bottom:env(safe-area-inset-bottom,0px);
  --article-scale:1;
}

*{box-sizing:border-box}
html,body,#app{margin:0;min-height:100%;background:var(--bg);color:var(--text)}
body{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
button,input{font:inherit}
button{cursor:pointer}
a{color:inherit}
img{max-width:100%}

.app-shell{
  min-height:100vh;
  background:#fff;
  padding-bottom:calc(76px + var(--safe-bottom));
}

.app-header{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:68px;
  padding:12px 18px;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--line);
}

.logo{
  display:flex;
  align-items:center;
  flex:0 0 auto;
}
.brand-logo{
  width:54px;
  height:54px;
  display:block;
  object-fit:contain;
}
.header-title{
  flex:1;
  min-width:0;
}
.header-title b{
  display:block;
  font-size:16px;
  font-weight:900;
  line-height:1;
}
.header-title span{
  display:block;
  margin-top:3px;
  font-size:11px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.header-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
}
.icon-btn{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:#000;
}
.icon-btn svg{width:21px;height:21px;stroke:currentColor}

.screen{
  width:100%;
}
.scrollable{
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
.content-pad{
  padding:18px 18px 24px;
  max-width:760px;
  margin:0 auto;
}

.hero-intro{
  display:grid;
  gap:8px;
  margin:4px 0 18px;
}
.eyebrow{
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:.13em;
  font-size:11px;
  font-weight:900;
}
.hero-intro h1{
  margin:0;
  font-size:30px;
  line-height:1.02;
  letter-spacing:-.04em;
}
.hero-intro p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}

.category-rail{
  display:flex;
  gap:9px;
  overflow:auto;
  padding:2px 18px 14px;
  max-width:760px;
  margin:0 auto;
}
.category-pill{
  flex:0 0 auto;
  border:1px solid var(--line-strong);
  background:#fff;
  color:#000;
  border-radius:999px;
  padding:10px 15px;
  font-size:14px;
  font-weight:800;
  white-space:nowrap;
}
.category-pill.active{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}
.category-pill small{
  margin-left:7px;
  color:var(--muted);
}
.category-pill.active small{color:rgba(255,255,255,.72)}

.article-list{
  display:grid;
  gap:14px;
}
.article-card{
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 12px 30px rgba(0,0,0,.045);
}
.article-card.hero{
  border-radius:24px;
}
.card-image{
  width:100%;
  aspect-ratio:16/10;
  background:#f2f2f2;
  object-fit:cover;
  display:block;
}
.card-body{
  padding:14px;
}
.card-kicker{
  display:block;
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:10px;
  font-weight:900;
  margin-bottom:7px;
}
.card-title{
  margin:0;
  font-size:18px;
  line-height:1.16;
  letter-spacing:-.025em;
  font-weight:900;
}
.article-card.hero .card-title{
  font-size:25px;
}
.card-excerpt{
  margin:8px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}
.card-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:12px;
  font-size:12px;
  color:var(--muted);
}
.card-save{
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:#000;
  padding:7px 10px;
  font-weight:900;
}
.card-save.saved{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}

.load-more{
  width:100%;
  border:0;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  padding:13px 16px;
  font-weight:900;
  margin:16px 0 2px;
}

.bottom-nav{
  position:fixed;
  z-index:25;
  left:0;
  right:0;
  bottom:0;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  padding:8px 10px calc(8px + var(--safe-bottom));
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(18px);
  border-top:1px solid var(--line);
}
.bottom-nav button{
  border:0;
  background:transparent;
  color:var(--muted);
  display:grid;
  place-items:center;
  gap:3px;
  font-size:11px;
  font-weight:800;
  padding:6px 0;
}
.bottom-nav button.active{
  color:var(--accent);
}
.bottom-nav svg{
  width:22px;
  height:22px;
  stroke:currentColor;
}

.search-wrap{
  display:grid;
  gap:12px;
}
.search-input{
  width:100%;
  border:1px solid var(--line-strong);
  border-radius:18px;
  padding:14px 16px;
  font-size:16px;
  background:#fff;
  color:#000;
}
.search-input:focus{
  outline:2px solid rgba(229,0,109,.18);
  border-color:var(--accent);
}
.empty{
  border:1px dashed var(--line-strong);
  border-radius:20px;
  padding:22px;
  color:var(--muted);
  line-height:1.5;
}

.topic-head h1,
.support-page h1,
.settings-page h1{
  margin:0 0 7px;
  font-size:28px;
  letter-spacing:-.04em;
}
.topic-head p,
.support-page .muted,
.settings-page .muted{
  margin:0 0 16px;
  color:var(--muted);
  line-height:1.5;
}
.topic-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.topic-card{
  min-height:74px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  color:#000;
  padding:13px;
  text-align:left;
}
.topic-card span{
  display:block;
  font-size:14px;
  font-weight:900;
  line-height:1.2;
}
.topic-card small{
  display:block;
  margin-top:7px;
  color:var(--muted);
  font-size:11px;
}
.topic-card.active{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}
.topic-card.active small{color:rgba(255,255,255,.75)}
.topic-title-card,
.support-card,
.settings-card{
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  padding:16px;
  margin:0 0 14px;
  box-shadow:0 12px 30px rgba(0,0,0,.04);
}
.topic-title-card span{
  color:var(--accent);
  text-transform:uppercase;
  font-size:11px;
  letter-spacing:.12em;
  font-weight:900;
}
.topic-title-card h1{
  margin:5px 0 6px;
  font-size:28px;
}
.topic-title-card p,
.support-card p,
.support-card li,
.settings-card p{
  color:var(--muted);
  line-height:1.55;
  font-size:14px;
}
.support-card h2,
.settings-card h2{
  margin:0 0 7px;
  font-size:17px;
}
.settings-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.settings-btn{
  border:1px solid var(--line);
  border-radius:999px;
  background:#f7f7f7;
  color:#000;
  padding:9px 12px;
  font-weight:900;
  font-size:13px;
}
.settings-btn.primary{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}
.settings-btn.danger{
  color:#ab0d59;
}

.article-header{
  position:sticky;
  top:0;
  z-index:24;
  display:flex;
  align-items:center;
  gap:8px;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--line);
  padding:10px 12px;
}
.article-header .brand-logo{
  width:44px;
  height:44px;
}
.article-tools{
  margin-left:auto;
  display:flex;
  gap:6px;
}
.article-tools button{
  min-width:38px;
  height:38px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:#000;
  font-weight:900;
}
.article{
  max-width:760px;
  margin:0 auto;
}
.article-cover{
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
  background:#f2f2f2;
}
.article-pad{
  padding:18px;
}
.article-kicker{
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:11px;
  font-weight:900;
}
.article-title{
  margin:8px 0 10px;
  font-size:32px;
  line-height:1.04;
  letter-spacing:-.045em;
}
.article-excerpt{
  color:var(--muted);
  font-size:16px;
  line-height:1.5;
  margin:0 0 14px;
}
.article-meta{
  color:var(--muted);
  font-size:12px;
  margin-bottom:18px;
}
.article-body{
  font-size:calc(16px * var(--article-scale));
  line-height:1.75;
}
.article-body p{margin:0 0 17px}
.article-body h2{font-size:calc(22px * var(--article-scale));line-height:1.2;margin:28px 0 10px}
.article-body h3{font-size:calc(18px * var(--article-scale));line-height:1.25;margin:24px 0 8px}
.article-body img{border-radius:16px;margin:12px 0}
.article-body a{color:var(--accent)}
.article-body blockquote{
  border-left:4px solid var(--accent);
  margin:20px 0;
  padding:4px 0 4px 15px;
  color:#333;
}
.tag-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:22px;
}
.tag-chip{
  border:1px solid rgba(229,0,109,.25);
  background:rgba(229,0,109,.06);
  color:var(--accent);
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  font-weight:900;
}

.privacy-banner{
  position:fixed;
  left:12px;
  right:12px;
  bottom:calc(80px + var(--safe-bottom));
  z-index:40;
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  color:#000;
  box-shadow:0 22px 60px rgba(0,0,0,.16);
}
.privacy-copy{flex:1}
.privacy-copy b{display:block;font-size:14px;font-weight:900;margin-bottom:3px}
.privacy-copy span{display:block;color:var(--muted);font-size:12px;line-height:1.35}
.privacy-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.privacy-actions button,.privacy-modal-actions button{
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 11px;
  font-size:12px;
  font-weight:900;
}
.privacy-primary{background:var(--accent);border-color:var(--accent)!important;color:#fff}
.privacy-secondary{background:#f7f7f7;color:#000}
.privacy-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:50;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  background:rgba(0,0,0,.34);
  padding:14px;
}
.privacy-modal{
  width:100%;
  max-width:520px;
  max-height:88vh;
  overflow:auto;
  background:#fff;
  color:#000;
  border-radius:24px;
  padding:18px;
}
.privacy-modal-head{display:flex;justify-content:space-between;align-items:center}
.privacy-modal h2{margin:0;font-size:21px}
.privacy-close{border:0;background:#f3f3f3;color:#818181;width:34px;height:34px;border-radius:999px;font-size:24px;line-height:1}
.privacy-modal-intro{color:var(--muted);font-size:14px;line-height:1.55}
.privacy-option{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
  border-top:1px solid var(--line);
}
.privacy-option b{display:block}
.privacy-option span{display:block;color:var(--muted);font-size:12px;line-height:1.45;margin-top:3px}
.privacy-option input{width:22px;height:22px;accent-color:var(--accent)}
.privacy-status{font-size:11px!important;font-weight:900;color:var(--faint)!important;white-space:nowrap}
.privacy-modal-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:14px}

.toast{
  position:fixed;
  left:18px;
  right:18px;
  bottom:calc(82px + var(--safe-bottom));
  z-index:60;
  background:#000;
  color:#fff;
  border-radius:999px;
  padding:12px 15px;
  text-align:center;
  font-weight:800;
  font-size:13px;
  opacity:0;
  transform:translateY(10px);
  transition:.22s ease;
}
.toast.show{opacity:1;transform:translateY(0)}

@media(min-width:760px){
  .app-shell{max-width:520px;margin:0 auto;border-left:1px solid var(--line);border-right:1px solid var(--line)}
  .bottom-nav{left:50%;right:auto;transform:translateX(-50%);width:520px}
  .privacy-banner{left:calc(50% - 248px);right:calc(50% - 248px)}
}
@media(max-width:430px){
  .content-pad{padding-left:15px;padding-right:15px}
  .category-rail{padding-left:15px;padding-right:15px}
  .hero-intro h1{font-size:28px}
  .article-title{font-size:29px}
  .privacy-banner{display:block}
  .privacy-actions{margin-top:10px;justify-content:flex-start}
}


/* Draft.it PWA v1.3 · normalizzazione contenuti Gutenberg */
.article-body{
  overflow-wrap:anywhere;
}
.article-body > *:first-child{
  margin-top:0;
}
.article-body > *:last-child{
  margin-bottom:0;
}
.article-body .wp-block-image,
.article-body figure{
  margin:18px 0;
}
.article-body .wp-block-image img,
.article-body figure img,
.article-body .wp-caption img{
  width:100%;
  height:auto;
  display:block;
  border-radius:16px;
}
.article-body figcaption,
.article-body .wp-caption-text{
  margin:8px 2px 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}
.article-body .wp-block-gallery{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:18px 0;
}
.article-body .wp-block-gallery figure{
  margin:0;
}
.article-body .wp-block-gallery img{
  aspect-ratio:1/1;
  object-fit:cover;
}
.article-body .wp-block-embed,
.article-body .wp-block-video,
.article-body .wp-block-audio{
  margin:20px 0;
}
.article-body iframe,
.article-body video{
  width:100%;
  max-width:100%;
  border:0;
  border-radius:16px;
  background:#f2f2f2;
}
.article-body .wp-block-embed__wrapper{
  position:relative;
  width:100%;
  overflow:hidden;
  border-radius:16px;
}
.article-body .wp-block-embed__wrapper iframe{
  aspect-ratio:16/9;
  height:auto;
  min-height:210px;
}
.article-body .wp-block-quote,
.article-body blockquote{
  border-left:4px solid var(--accent);
  margin:22px 0;
  padding:4px 0 4px 16px;
  color:#222;
}
.article-body .wp-block-quote p,
.article-body blockquote p{
  margin-bottom:8px;
}
.article-body cite{
  color:var(--muted);
  font-size:12px;
  font-style:normal;
}
.article-body .wp-block-pullquote{
  margin:24px 0;
  padding:18px;
  border-top:3px solid var(--accent);
  border-bottom:3px solid var(--accent);
  background:#fafafa;
  text-align:left;
}
.article-body .wp-block-pullquote blockquote{
  border:0;
  margin:0;
  padding:0;
}
.article-body .wp-block-table{
  overflow-x:auto;
  margin:20px 0;
}
.article-body table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}
.article-body th,
.article-body td{
  border:1px solid var(--line);
  padding:9px;
  vertical-align:top;
}
.article-body th{
  background:#f7f7f7;
  font-weight:900;
}
.article-body .wp-block-separator{
  border:0;
  border-top:1px solid var(--line);
  margin:28px 0;
}
.article-body .wp-block-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:20px 0;
}
.article-body .wp-block-button__link{
  display:inline-block;
  background:var(--accent);
  color:#fff!important;
  border-radius:999px;
  padding:10px 14px;
  font-weight:900;
  text-decoration:none;
}
.article-body .wp-block-file{
  border:1px solid var(--line);
  border-radius:16px;
  padding:13px;
  background:#fafafa;
  margin:18px 0;
}
.article-body .wp-block-file a{
  font-weight:800;
}
.article-body .wp-block-columns{
  display:grid;
  gap:14px;
  margin:20px 0;
}
.article-body .wp-block-column{
  min-width:0;
}
.article-body .alignleft,
.article-body .alignright,
.article-body .aligncenter,
.article-body .alignwide,
.article-body .alignfull{
  float:none!important;
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
}
.article-body .wp-block-cover{
  position:relative;
  min-height:220px;
  border-radius:18px;
  overflow:hidden;
  margin:22px 0;
  padding:18px;
  display:flex;
  align-items:flex-end;
  background:#111;
  color:#fff;
}
.article-body .wp-block-cover img,
.article-body .wp-block-cover__image-background{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
  border-radius:0;
}
.article-body .wp-block-cover::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.58));
  z-index:1;
}
.article-body .wp-block-cover__inner-container{
  position:relative;
  z-index:2;
}
.article-body .wp-block-cover p{
  color:#fff;
}
.article-body .wp-block-media-text{
  display:grid;
  gap:14px;
  margin:22px 0;
}
.article-body .wp-block-media-text__media img{
  width:100%;
  height:auto;
  border-radius:16px;
}
.article-body .wp-block-media-text__content{
  padding:0!important;
}
.article-body .sharedaddy,
.article-body .jp-relatedposts,
.article-body .post-tags,
.article-body .td-a-rec,
.article-body .td_block_wrap,
.article-body script,
.article-body style{
  display:none!important;
}
.article-body pre,
.article-body code{
  white-space:pre-wrap;
  word-break:break-word;
  background:#f7f7f7;
  border-radius:8px;
}
.article-body pre{
  padding:14px;
  overflow:auto;
}
@media(min-width:560px){
  .article-body .wp-block-columns{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .article-body .wp-block-media-text{
    grid-template-columns:1fr 1fr;
    align-items:center;
  }
}
@media(max-width:430px){
  .article-body .wp-block-gallery{
    gap:6px;
  }
  .article-body .wp-block-embed__wrapper iframe{
    min-height:190px;
  }
}
