/*  
Theme Name: FaradayTheme
Theme URI: https://faraday.it/
Author: Francesco Giuliani
Author URI: https://faraday.it/
Description: Tema superfast – Chrome Fixed Edition
Version: 2.6.1
Text Domain: faradaytheme
*/

:root{
  --container:max(92vw,280px);
  --maxw:1080px;
  --gap:22px;
  --red:#d72626;
  --red-strong:#bf1e1e;
  --red-soft:#ffe6ea;

  /* MODIFICA IMPORTANTE:
     queste variabili devono essere vuote
     perché riempite dinamicamente dal Customizer
  */
  --header-bg:initial;
  --header-text:initial;
  --menu-capsule-bg:initial;
  --menu-capsule-border:initial;
  --menu-capsule-active:initial;
  --hero-overlay:initial;
  --footer-bg:initial;
  --footer-text:initial;
  --accent:initial;
  --logo-width:initial;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  background:#fff;
  color:#111;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  line-height:1.65;
  text-rendering:optimizeLegibility;
}

img{
  max-width:100%;
  height:auto;
  display:block;
  opacity:1;
  filter:none;
  transition:none;
  image-rendering:auto;
}

/* LINKS / CONTAINER */
a{text-decoration:none;color:inherit;}
.container{width:min(var(--maxw),var(--container));margin:0 auto;}

.site-header{
  position:sticky;
  top:0;
  z-index:10000;
  background:var(--header-bg);
  border-bottom:1px solid #e9e9e9;
  box-shadow:0 2px 6px rgba(0,0,0,0.06);
}

.site-header a{color:var(--header-text);}

.h-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
}

/* LOGO */
.brand img.custom-logo{
  width:var(--logo-width);
  height:auto;
  max-width:none;
  max-height:none;
}

/* ========== MENU DESKTOP ========== */
.nav ul.menu-capsule{
  display:flex;
  gap:16px;
  list-style:none;
}
.nav ul.menu-capsule li a{
  background:var(--menu-capsule-bg);
  padding:7px 15px;
  border-radius:999px;
  border:1px solid var(--menu-capsule-border);
  font-weight:700;
  font-size:15px;
  transition:.18s;
}
.nav ul.menu-capsule li a:hover{
  border-color:var(--menu-capsule-active);
  background:var(--menu-capsule-active);
  color:#fff;
}

.frontpage{margin-top:22px;}

.fp-hero{
  margin-bottom:50px;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,0.13);
  background:#000;
}

.fp-hero-thumb{
  aspect-ratio:16/10;
  overflow:hidden;
}

.fp-hero-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:16px 16px 0 0;
}

@media(max-width:767px){
  .fp-hero-thumb{
    aspect-ratio:auto !important;
    height:auto !important;
    overflow:hidden !important;
  }
  .fp-hero-thumb img{
    width:100% !important;
    height:auto !important;
    object-fit:contain !important;
    object-position:center !important;
  }
  .fp-hero-blackbox{
    padding-top:14px !important;
  }
}

.fp-hero-blackbox{
  background:var(--hero-overlay);
  -webkit-backdrop-filter:blur(2px);
  backdrop-filter:blur(2px);
  padding:32px 28px;
  border-radius:0 0 16px 16px;
}

.fp-kicker,
.single-kicker{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 14px;
  background:var(--accent);
  color:#fff;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.03em;
  line-height:1;
  width:auto;
  max-width:max-content;
  white-space:nowrap;
}

.fp-hero-title{
  color:#fff !important;
  font-size:clamp(30px,4vw,42px);
  font-weight:900;
  line-height:1.22;
  margin:14px 0 18px;
}

.fp-hero-infos{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:6px;
}

.fp-hero-infos .info-box{
  background:rgba(255,255,255,0.12);
  color:#fff;
  padding:10px 14px;
  border-radius:6px;
  font-size:15px;
  line-height:1.45;
  backdrop-filter:blur(4px);
}

.fp-hero-subwrap{
  margin-top:30px;
  display:flex;
  flex-direction:row;
  gap:22px;
}

.fp-hero-subcard{
  background:rgba(0,0,0,0.28);
  border-radius:14px;
  overflow:hidden;
  transition:.25s;
  flex:1;
  display:flex;
  flex-direction:column;
}

.fp-hero-subcard:hover{
  transform:translateY(-3px);
  background:rgba(0,0,0,0.38);
}

.fp-hero-subthumb{
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
}

.fp-hero-subthumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.fp-hero-subcontent{
  padding:16px;
  display:flex;
  flex-direction:column;
}

.fp-hero-subcat{
  display:inline-block;
  padding:4px 12px;
  background:var(--accent);
  font-size:12px;
  color:#fff;
  font-weight:800;
  border-radius:999px;
  text-transform:uppercase;
  margin-bottom:6px;
}

.fp-hero-subtitle{
  color:#fff;
  font-size:17px;
  font-weight:800;
  line-height:1.32;
}

@media(max-width:760px){
  .fp-hero-subwrap{
    flex-direction:column;
  }
}

.fp-cat-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}

.fp-cat-title{
  font-size:23px;
  font-weight:900;
  padding-left:10px;
  margin:0;
  border-left:6px solid(var(--catColor));
}

.fp-cat-more{
  font-size:15px;
  font-weight:700;
  color:var(--catColor);
  padding:4px 8px;
  border-radius:6px;
  transition:.2s;
}

.fp-cat-more:hover{
  background:rgba(0,0,0,0.05);
}

/* ================================
   CATEGORY STRIP — VERSIONE MODERNA NEON
   ================================ */

.fp-line-strip{
  position:relative;
  width:100%;
  height:6px;
  margin:24px 0 30px;
  border-radius:6px;
  background:rgba(0,0,0,0.06);
  overflow:hidden;
}

.fp-line-strip::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,
      var(--catColor),
      transparent 70%);
  opacity:1;
  mix-blend-mode:normal;
}

.fp-line-strip::after{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:radial-gradient(circle at 0% 50%,
      var(--catColor) 0%,
      transparent 70%);
  opacity:.35;
  animation:fpGlowMove 4s linear infinite;
}

@keyframes fpGlowMove{
  0%{transform:translateX(-50%);}
  100%{transform:translateX(200%);}
}

/* ================================
   BLOCCHI CATEGORIA
   ================================ */

.fp-block{
  margin:55px 0;
}

.fp-line-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:26px;
}

.fp-line-card{
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 8px 22px rgba(0,0,0,.07);
  transition:.2s;
}

.fp-line-card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 30px rgba(0,0,0,.12);
}

.fp-line-thumb{
  aspect-ratio:3/2;
  overflow:hidden;
}

.fp-line-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.fp-line-title{
  font-size:19px;
  font-weight:900;
  padding:14px 14px 10px;
  line-height:1.28;
}

.fp-line-meta{
  font-size:13px;
  color:#777;
  padding:10px 14px 16px;
}
/* ================================
   PAGINA ARTICOLO
   ================================ */

.single-wrapper{
  display:flex;
  gap:40px;
  margin-top:25px;
}

.single-main{width:75%;}
.single-sidebar{width:25%;}

@media(max-width:900px){
  .single-wrapper{flex-direction:column;}
  .single-main,.single-sidebar{width:100%;}
}

.single-title{
  font-size:38px;
  font-weight:900;
  line-height:1.14;
  margin:12px 0 10px;
}

@media(max-width:700px){
  .single-title{font-size:30px;}
}

.single-meta{
  font-size:14px;
  color:#666;
  margin-bottom:14px;
}

.single-hero{
  margin:16px 0 34px;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(0,0,0,0.12);
}

.single-hero img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
}

.single-content{
  font-size:18px;
  line-height:1.58;
}

.single-content p{margin-bottom:14px;}

.single-content h2{
  font-size:26px;
  font-weight:900;
  margin:30px 0 12px;
}


/* ================================
   SIDEBAR
   ================================ */

.sidebar-title{
  font-size:20px;
  font-weight:900;
  margin-bottom:16px;
  padding-left:10px;
  border-left:4px solid(var(--accent));
}

.sidebar-list{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.sidebar-item{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid #eee;
  transition:.15s;
}

.sidebar-item:hover .side-title{color:var(--accent);}

.side-num{
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  border-radius:50%;
  background:var(--accent);
  color:#fff;
  font-weight:800;
  font-size:13px;
  margin-top:3px;
}

.side-title{
  font-size:15px;
  font-weight:700;
  line-height:1.38;
  padding-top:2px;
}


/* ================================
   FOOTER
   ================================ */

.site-footer{
  background:var(--footer-bg);
  border-top:1px solid #eee;
  margin-top:50px;
  color:#555;
}

.footer-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  flex-wrap:wrap;
  padding:26px 0;
}

.footer-brand{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:200px;
}

.footer-text{
  font-size:14px;
}

.footer-menu{
  display:flex;
  gap:10px;
  list-style:none;
  flex-wrap:wrap;
}

.footer-menu li a{
  background:var(--menu-capsule-bg);
  border:1px solid(var(--menu-capsule-border));
  padding:6px 13px;
  border-radius:999px;
  font-weight:600;
  font-size:13px;
  color:var(--footer-text);
  transition:.15s;
}

.footer-menu li a:hover{
  background:var(--menu-capsule-active);
  border-color:var(--menu-capsule-active);
  color:#fff;
}


/* ================================
   AUTHOR AVATAR
   ================================ */

.author-inline-box img.author-avatar,
.author-photo img.author-avatar{
  width:64px !important;
  height:64px !important;
  min-width:64px !important;
  min-height:64px !important;
  max-width:64px !important;
  max-height:64px !important;
  border-radius:50% !important;
  object-fit:cover !important;
  display:block !important;
}

.author-avatar-xl{
  width:160px !important;
  height:160px !important;
  border-radius:50% !important;
  object-fit:cover !important;
  display:block !important;
}