/*!
 * STYLE2026.CSS - Comunitazione.it
 * Versione pulita (senza duplicati)
 * Include: Base + Header + Navbar + Modali + Sidebar + Footer + Dark Mode
 */

/* ============================================
 * RESET & BASE
 * ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

a {
  color: #e90101;
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover { color: #c00000; }

img { max-width: 100%; height: auto; display: block; }

/* ============================================
 * TYPOGRAPHY
 * ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #1a1a1a;
}
h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.75em; }
h4 { font-size: 1.5em; }
h5 { font-size: 1.25em; }
h6 { font-size: 1em; }

p { margin-bottom: 1em; }

/* ============================================
 * STICKY NAVBAR (drawer a sinistra)
 * ============================================ */

.sticky-navbar {
  position: fixed;
  left: -320px;
  top: 0;
  width: 320px;
  height: 100vh;
  background: #1a1a1a;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  transition: left 0.4s ease;
  overflow-y: auto;
}
.sticky-navbar.active { left: 0; }

.sticky-navbar .logo { margin-bottom: 40px; text-align: center; }
.sticky-navbar .logo img { width: 60px; height: auto; }

.sticky-navbar .site-menu { flex: 1; width: 100%; padding: 0 20px; }
.sticky-navbar .site-menu ul { list-style: none; padding: 0; margin: 0; }
.sticky-navbar .site-menu ul li { width: 100%; border-bottom: 1px solid #333; }

.sticky-navbar .site-menu > ul > li > a {
  display: block;
  padding: 15px 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.sticky-navbar .site-menu > ul > li > a:hover {
  background: #e90101;
  padding-left: 30px;
}

.sticky-navbar .site-menu ul ul {
  display: none;
  padding-left: 20px;
  background: #2a2a2a;
}
.sticky-navbar .site-menu ul ul li a {
  padding: 10px 15px;
  font-size: 13px;
  color: #ccc;
}

.sticky-navbar .search-button {
  margin-top: auto;
  color: #fff;
  cursor: pointer;
  padding: 15px;
  text-align: center;
  width: 100%;
  transition: background 0.3s ease;
}
.sticky-navbar .search-button:hover { background: #e90101; }

/* ============================================
 * SCROLLUP BUTTON
 * ============================================ */

.scrollup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #e90101;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1500;
  transition: all 0.3s ease;
}
.scrollup:hover { background: #c00000; transform: scale(1.1); }
.scrollup.active { display: flex; }

.progress-circle { transform: rotate(-90deg); }
.progress-circle path {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-dasharray: 308;
  stroke-dashoffset: 308;
  transition: stroke-dashoffset 0.3s;
}

/* ============================================
 * HEADER
 * ============================================ */

.header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
}

.header .left-side,
.header .right-side {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header .logo { max-width: 200px; }
.header .logo img { max-width: 100%; height: auto; }

/* Social Media Header */
.social-media { position: relative; }
.social-media .label {
  font-size: 11px;
  font-weight: 700;
  color: #999;
  cursor: pointer;
}

.social-media ul {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-media ul li a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 50%;
  color: #333;
  transition: all 0.3s ease;
}
.social-media ul li a:hover { background: #e90101; color: #fff; }

.social-info {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  padding: 15px;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  min-width: 200px;
  z-index: 100;
}
.social-media:hover .social-info { opacity: 1; visibility: visible; }

.social-info ol { list-style: none; padding: 0; margin: 0; }
.social-info ol li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}
.social-info ol li:last-child { border-bottom: none; }
.social-info ol li span {
  float: right;
  color: #e90101;
  font-weight: 700;
}

/* Custom Switch (Dark Mode) */
.custom-control { position: relative; display: flex; align-items: center; gap: 10px; }
.custom-control-input { position: absolute; opacity: 0; }
.custom-control-label { cursor: pointer; font-size: 13px; color: #666; }

.custom-switch .custom-control-label::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 20px;
  background: #ddd;
  border-radius: 20px;
  margin-right: 10px;
  transition: all 0.3s ease;
}
.custom-switch .custom-control-input:checked + .custom-control-label::before {
  background: #e90101;
}

/* Login Button */
.loginlogon {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e90101;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.loginlogon:hover { background: #c00000; transform: translateY(-2px); }
.loginlogon i { font-size: 18px; }

/* ============================================
 * NAVBAR (main menu bar)
 * ============================================ */

.navbar {
  padding: 1rem 0;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  width: 100%;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hamburger-menu { display: none; font-size: 24px; color: #333; cursor: pointer; }
.navbar .logo { display: none; }

/* Site Menu */
.site-menu ul { list-style: none; margin: 0; padding: 0; }
.site-menu > ul { display: flex; align-items: center; gap: 12px; }
.site-menu > ul > li { position: relative; }

.site-menu > ul > li > a {
  display: block;
  padding: 12px 12px 1px 12px; /* era 18px - aumentato padding orizzontale */
  color: #333;
  text-decoration: none;
  margin-right:2vw;
  font-weight: 400;
  font-size: 14px;
  transition: color 0.3s ease;
  border-bottom: 3px solid transparent;
}
.site-menu > ul > li > a:hover,
.site-menu > ul > li.active > a { color: #e90101; }

/* Dropdown submenu */
.site-menu ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 240px;
  box-shadow: 0 8px 16px rgba(0,0,0,.15);
  border-radius: 0 0 8px 8px;
  padding: 10px 0;
  z-index: 1000;
}
.site-menu > ul > li:hover > ul { display: block; }

.site-menu ul ul li { width: 100%; }
.site-menu ul ul li a {
  display: block;
  padding: 12px 20px;
  color: #666;
  font-weight: 400;
  font-size: 14px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}
.site-menu ul ul li a:hover {
  background: #f8f9fa;
  color: #e90101;
  border-left-color: #e90101;
  padding-left: 25px;
}

/* Search button in navbar */
.navbar .search-button {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s ease;
}
.navbar .search-button:hover { color: #e90101; }
.navbar .search-button i { font-size: 16px; }

/* ============================================
 * MODALS (login-box, search-box, side-widget)
 * ============================================ */

.login-box,
.search-box,
.side-widget {
  position: fixed;
  top: 0;
  right: -100%;
  width: 400px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,.2);
  z-index: 3000;
  overflow-y: auto;
  transition: right 0.4s ease;
  padding: 30px;
}

.login-box.active,
.search-box.active,
.side-widget.active { right: 0; }

.search-box {
  width: 100%;
  right: -100%;
  background: rgba(0,0,0,.95);
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-box.active { right: 0; }
.search-box .container { max-width: 800px; }
.search-box form { position: relative; }

.search-box input {
  width: 100%;
  padding: 20px 60px 20px 20px;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 24px;
  border-radius: 50px;
}
.search-box input::placeholder { color: rgba(255,255,255,.5); }
.search-box input:focus { outline: none; border-color: #e90101; }

.close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}
.close-button:hover { background: #e90101; color: #fff; }
.close-button i { font-size: 18px; }

/* Login box specific */
.login-box h3 { margin-bottom: 25px; color: #1a1a1a; }
.login-box label { display: block; margin-bottom: 8px; font-weight: 600; color: #333; }

.login-box input[type="text"],
.login-box input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 14px;
}
.login-box input[type="checkbox"] { margin-right: 8px; }

.login-box input[type="submit"] {
  width: 100%;
  padding: 12px;
  background: #e90101;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
}
.login-box input[type="submit"]:hover { background: #c00000; }

/* Side widget (mobile menu) */
.side-widget { width: 320px; }
.side-widget .logo { text-align: center; margin-bottom: 30px; }
.side-widget .logo img { max-width: 150px; margin: 0 auto; }
.side-widget .inner { padding: 20px 0; }
.side-widget .widget { margin-bottom: 30px; }

.side-widget .account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
  cursor: pointer;
}
.side-widget .account i { font-size: 24px; color: #e90101; }

/* ============================================
 * SIDEBAR & WIDGETS
 * ============================================ */

.sidebar { padding-left: 30px; }
.sticky-top { position: sticky; top: 100px; z-index: 10; }

.widget {
  background: #f8f9fa;
  padding: 25px;
  margin-bottom: 30px;
  border-radius: 8px;
}
.widget h4,
.widget h6 {
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e90101;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
}
.widget ul li:last-child { border-bottom: none; }

.widget-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: #1a1a1a; }

/* ============================================
 * TABS (sidebar)
 * ============================================ */

.tab-content { position: relative; }

.tab-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 2px solid #e5e5e5;
}
.tab-nav li { flex: 1; }

.tab-nav li a {
  display: block;
  padding: 15px 20px;
  text-align: center;
  background: #f8f9fa;
  color: #666;
  font-weight: 600;
  font-size: 13px;
  border-right: 1px solid #e5e5e5;
  transition: all 0.3s ease;
}
.tab-nav li:last-child a { border-right: none; }

.tab-nav li a:hover,
.tab-nav li.active a {
  background: #fff;
  color: #e90101;
  border-bottom: 2px solid #e90101;
  margin-bottom: -2px;
}

.tab-item { display: none; padding: 20px 0; }
.tab-item.active-item { display: block; }

/* ============================================
 * BLOG POST MIAMI (sidebar articles)
 * ============================================ */

.blog-post.miami {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}
.blog-post.miami:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.blog-post.miami .post-image {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.blog-post.miami .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.blog-post.miami:hover .post-image img { transform: scale(1.1); }

.blog-post.miami .post-content { flex: 1; padding: 0; }

.blog-post.miami .post-title {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 8px;
  font-weight: 600;
}
.blog-post.miami .post-title a { color: #333; transition: color 0.3s ease; }
.blog-post.miami .post-title a:hover { color: #e90101; }

.blog-post.miami .metas {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #999;
}
.blog-post.miami .views,
.blog-post.miami .read-time { display: flex; align-items: center; gap: 5px; }
.blog-post.miami .views img { width: 14px; height: 14px; }
.blog-post.miami .read-time i { font-size: 12px; }

/* ============================================
 * SIDE NEWSLETTER
 * ============================================ */

.side-newsletter {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
}
.side-newsletter h3 { font-size: 18px; margin-bottom: 15px; color: #333; }

/* ============================================
 * BLOG & POSTS
 * ============================================ */

.blog-post { margin-bottom: 40px; }
.post-content { padding: 30px 0; }
.post-title { font-size: 2.2em; margin-bottom: 15px; }

.post-meta { color: #999; font-size: 14px; margin-bottom: 20px; }
.post-meta a { color: #999; }
.post-meta a:hover { color: #e90101; }

.post-categories {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 0;
}
.post-categories li { margin: 0; }

.post-categories li a {
  display: inline-block;
  background: #e90101;
  color: #fff;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.post-categories li a:hover { background: #c00000; transform: translateY(-2px); }

.read-more {
  display: inline-block;
  background: #e90101;
  color: #fff;
  padding: 10px 25px;
  border-radius: 4px;
  font-weight: 600;
  margin-top: 15px;
}
.read-more:hover { background: #c00000; color: #fff; }

/* ============================================
 * SINGLE HEADER (Article Hero)
 * ============================================ */

.single-header {
  height: 400px;
  background-size: cover !important;
  background-position: center !important;
  position: relative;
  display: flex;
  align-items: flex-end;
  margin-bottom: 40px;
  width: 100%;
}
.single-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
}
.single-header .container { position: relative; z-index: 1; padding-bottom: 40px; }
.single-header h1 { color: #fff; margin-bottom: 10px; }

.bookmark {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.95);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e90101;
  font-size: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 10;
}
.bookmark:hover { background: #e90101; color: #fff; transform: scale(1.1); }

/* ============================================
 * CONTENT SECTION
 * ============================================ */

.content-section { padding: 60px 0; width: 100%; }

/* ============================================
 * AUTHOR INFO
 * ============================================ */

.author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666;
}
.author figure {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0;
}
.author figure img { width: 100%; height: 100%; object-fit: cover; }

.metas {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  color: #666;
  font-size: 14px;
}
.metas .dot { width: 4px; height: 4px; background: #999; border-radius: 50%; }
.date { font-style: italic; color: #999; }
.comments { color: #e90101; font-weight: 500; }

.read-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #666;
  font-size: 0.9em;
}
.read-time i { color: #e90101; }

/* ============================================
 * AUTHOR INFO BOX
 * ============================================ */

.author-info-box {
  display: flex;
  gap: 20px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-top: 40px;
}
.author-info-box figure {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin: 0;
}
.author-info-box figure img { width: 100%; height: 100%; object-fit: cover; }

.author-info-box .content h5 { margin-top: 0; margin-bottom: 10px; }
.author-info-box .content h5 a { color: #333; }
.author-info-box .content h5 a:hover { color: #e90101; }

.author-info-box .content ul {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 10px 0;
  padding: 0;
}
.author-info-box .content ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #fff;
  border-radius: 50%;
  color: #333;
  transition: all 0.3s ease;
}
.author-info-box .content ul li a:hover { background: #e90101; color: #fff; }

.author-info-box .content p {
  margin: 10px 0 0 0;
  font-size: 0.95em;
  color: #666;
  line-height: 1.6;
}

/* ============================================
 * FORMS & BUTTONS
 * ============================================ */

.form-control,
.formIngresso {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}
.form-control:focus,
.formIngresso:focus { outline: none; border-color: #e90101; }

textarea.form-control { min-height: 120px; resize: vertical; }

.button,
.btn-primary {
  display: inline-block;
  background: #e90101;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.button:hover,
.btn-primary:hover {
  background: #c00000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,.2);
}

.btn-secondary { background: #6c757d; }
.btn-secondary:hover { background: #5a6268; }

/* ============================================
 * CARDS & FEATURE BOXES
 * ============================================ */

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 5px 20px rgba(0,0,0,.15); }

.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-title { font-size: 1.3em; margin-bottom: 10px; }
.card-text { color: #666; margin-bottom: 15px; }

.feature-box {
  text-align: center;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 30px;
}
.feature-box i { font-size: 48px; color: #e90101; margin-bottom: 20px; }
.feature-box h4 { margin-bottom: 15px; }

/* =========================
   FOOTER 2026 (new design)
   ========================= */

.footer.footer--2026{
  background:#0f0f10;
  color:#fff;
  padding:64px 0 28px;
  margin-top:80px;
  width:100%;
}

.footer.footer--2026 a{ color:#d7d7d7; text-decoration:none; }
.footer.footer--2026 a:hover{ color:#e90101; }

.footer.footer--2026 ul,
.footer.footer--2026 ol{ list-style:none; margin:0; padding:0; }

/* AUTHORS ROW */
.authors--row{
  display:flex;
  flex-wrap:wrap;
  gap:36px;
  padding:20px 0 28px;
  border-bottom:1px solid rgba(255,255,255,.08);
  margin-bottom:34px;
}

.author-card{
  display:flex;
  align-items:center;
  gap:16px;
  margin:0;
  position:relative;
}

.author-card > img{
  width:84px;
  height:84px;
  border-radius:999px;
  object-fit:cover;
  flex:0 0 84px;
  display:block;
}

.author-card .author-badge{
  position:absolute;
  left:58px;
  top:58px;
  width:26px;
  height:26px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(233,1,1,.95);
  color:#fff;
  transition:all .2s ease;
}

.author-card .author-badge:hover{
  background:#c00000;
  transform:scale(1.08);
}

.author-card figcaption{
  max-width:520px;
}

.author-card figcaption small{
  display:block;
  opacity:.75;
  margin-bottom:6px;
  font-weight:600;
}

.author-card figcaption b{
  display:block;
  font-weight:700;
  line-height:1.25;
  color:#fff;
}

/* MAIN GRID */
.footer-main{ padding-top:10px; }

.footer-left{
  padding-right:28px;
  border-right:1px solid rgba(255,255,255,.08);
}

.footer-logo{ margin:0 0 18px 0; text-align:left; }
.footer-logo img{ max-width:220px; height:auto; display:block; opacity:.95; }

/* Newsletter block */
.footer-newsletter{ margin:18px 0 26px; }
.footer-newsletter h3{
  font-size:34px;
  line-height:1.05;
  margin:0 0 10px;
  font-weight:800;
}
.footer-newsletter p{
  margin:0 0 14px;
  opacity:.8;
}

.footer-newsletter__form{
  display:flex;
  align-items:center;
  gap:10px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:10px 10px 10px 14px;
  max-width:520px;
}

.footer-newsletter__form input{
  flex:1;
  background:transparent;
  border:0;
  outline:0;
  color:#fff;
  font-size:16px;
  padding:10px 6px;
}

.footer-newsletter__form input::placeholder{ color:rgba(255,255,255,.55); }

.footer-newsletter__form button{
  width:44px;
  height:44px;
  border-radius:999px;
  border:0;
  background:#fff;
  color:#111;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .2s ease;
}

.footer-newsletter__form button:hover{ transform:scale(1.04); }

.footer-newsletter__note{
  display:block;
  margin-top:10px;
  opacity:.65;
}

/* Left links */
.footer-links-block{ margin-top:14px; }
.FondoTitoletti{
  display:inline-block;
  font-weight:800;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  padding-bottom:8px;
  margin-bottom:12px;
  border-bottom:2px solid #e90101;
}

.footer-links li{ margin:0 0 10px; }
.footer-links a{ color:rgba(255,255,255,.78); }
.footer-links a:hover{ color:#e90101; }

/* Social */
.footer-social{
  display:flex;
  gap:12px;
  margin-top:20px;
  flex-wrap:wrap;
}

.footer-social a{
  width:44px;
  height:44px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.08);
  color:#fff;
  transition:all .2s ease;
}

.footer-social a:hover{
  background:#e90101;
  transform:translateY(-2px);
}

/* RIGHT MENU 3 columns */
.footer-right{ padding-left:28px; }

.footer-menu--3col{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:22px 34px;
}

.footer-col__title{
  display:block;
  color:#fff !important;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:13px;
  margin-bottom:12px;
  padding-bottom:10px;
  border-bottom:2px solid var(--maccolor, #e90101);
}

.footer-col__list li{ margin:0 0 10px; }
.footer-col__list a{
  color:rgba(255,255,255,.65);
  font-size:13px;
  line-height:1.6;
}
.footer-col__list a:hover{
  color:#e90101;
  padding-left:5px;
}

/* Bottom centered */
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  margin-top:34px;
  padding-top:18px;
  text-align:center;
  color:rgba(255,255,255,.65);
  font-size:12px;
  line-height:1.9;
}

/* Responsive */
@media (max-width: 991px){
  .footer-left{
    border-right:0;
    padding-right:0;
    margin-bottom:26px;
  }
  .footer-right{ padding-left:0; }
  .footer-menu--3col{ grid-template-columns:1fr; }
  .authors--row{ gap:22px; }
  .footer-newsletter h3{ font-size:28px; }
}

/* Copyright */
.copyright{
  display: block;
  text-align: center;
  font-size: 12px;
  line-height: 2;
  color: #999;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #333;
}
.copyright .column { display: block; }
.copyright a { color: #00d9ff; }
.copyright a:hover { color: #e90101; }

/* ============================================
 * UTILITIES
 * ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

.pt-40 { padding-top: 40px; }
.pb-40 { padding-bottom: 40px; }

.clearfix::after { content: ""; display: block; clear: both; }

/* ============================================
 * RESPONSIVE
 * ============================================ */

@media (max-width: 991px) {
  .sticky-navbar { left: -320px; }
  .sticky-navbar.active { left: 0; }

  .hamburger-menu { display: block; }

  .navbar .logo { display: block; }
  .navbar .logo img { max-width: 120px; }

  .site-menu { display: none; }

  .navbar .search-button { font-size: 0; }
  .navbar .search-button i { font-size: 20px; }

  .sidebar { padding-left: 0; margin-top: 40px; }

  .author-info-box { flex-direction: column; text-align: center; }
  .author-info-box figure { margin: 0 auto; }
  .author-info-box .content ul { justify-content: center; }

  .login-box, .side-widget { width: 90%; }

  .footer .footer-menu { grid-template-columns: 1fr; }
  .footer .footer-social { justify-content: flex-start; margin-top: 20px; }

  .footer .authors { gap: 24px; }
  .footer .authors figcaption b { max-width: 320px; }
}

@media (max-width: 768px) {
  h1 { font-size: 2em; }
  h2 { font-size: 1.75em; }
  h3 { font-size: 1.5em; }

  .post-title { font-size: 1.8em; }
  .single-header { height: 300px; }
}

@media (max-width: 480px) {
  .content-section { padding: 30px 0; }
  .widget { padding: 15px; }
  .login-box, .side-widget { width: 100%; }
  .footer { padding: 40px 0 20px; }
}

/* ============================================
 * DARK MODE
 * ============================================ */

body.dark-mode { background: #1a1a1a; color: #e0e0e0; }

body.dark-mode .header {
  background: #2a2a2a;
  box-shadow: 0 2px 4px rgba(0,0,0,.5);
}

body.dark-mode .navbar { background: #2a2a2a; border-top-color: #333; }

body.dark-mode .site-menu > ul > li > a { color: #e0e0e0; }
body.dark-mode .site-menu > ul > li > a:hover { color: #e90101; }

body.dark-mode .site-menu ul ul { background: #1a1a1a; }
body.dark-mode .site-menu ul ul li a { color: #ccc; }

body.dark-mode .widget { background: #2a2a2a; }
body.dark-mode .tab-nav li a { background: #333; color: #ccc; }
body.dark-mode .tab-nav li.active a { background: #2a2a2a; color: #e90101; }

body.dark-mode .blog-post.miami .post-title a { color: #e0e0e0; }
body.dark-mode .blog-post.miami .post-title a:hover { color: #e90101; }

body.dark-mode .side-newsletter { background: #333; }
body.dark-mode .post-title { color: #e0e0e0; }
body.dark-mode .post-content { color: #ccc; }

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 { color: #e0e0e0; }

body.dark-mode .author-info-box { background: #2a2a2a; }
body.dark-mode .author-info-box .content h5 a { color: #e0e0e0; }

body.dark-mode .form-control,
body.dark-mode .formIngresso {
  background: #333;
  border-color: #444;
  color: #e0e0e0;
}

body.dark-mode .card { background: #2a2a2a; }
body.dark-mode .feature-box { background: #2a2a2a; }

body.dark-mode .login-box,
body.dark-mode .search-box,
body.dark-mode .side-widget { background: #1a1a1a; }

body.dark-mode .close-button { background: #333; color: #e0e0e0; }
body.dark-mode .close-button:hover { background: #e90101; color: #fff; }

/* Logo swap (se usi .logo-light/.logo-dark) */
body.dark-mode .logo-light { display: block; }
body.dark-mode .logo-dark { display: none; }
body .logo-light { display: none; }
body .logo-dark { display: block; }

/* ============================================
 * FONTAWESOME FIX (versione unica e corretta)
 * ============================================ */

/* Brands */
.fab, .fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}
/* Solid */
.fas, .fa-solid {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}
/* Regular */
.far, .fa-regular {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
}

/* Evita override sbagliati del font-style */
.fal, .fas, .far, .fab,
.fa-brands, .fa-solid, .fa-regular {
  font-style: normal !important;
}

/* =========================================================
   ACCOUNT NAV — per HTML con:
   <nav class="account-nav">
     <div class="site-menu"><div class="container">
       <ul class="account-nav__list">
         <li class="account-nav__item"> ... <ul class="account-nav__dropdown">...</ul>
   ========================================================= */

.account-nav{
  position: relative;
  z-index: 10050;
}

/* Difesa: se .site-menu/.container fanno cose strane */
.account-nav .site-menu,
.account-nav .container{
  overflow: visible !important;
}

.account-nav .site-menu{
  background: transparent !important;
  padding: 0 !important;
}

/* Lista top */
.account-nav .account-nav__list{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Item top */
.account-nav .account-nav__item{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;

  padding: 6px 10px;
  border-radius: 12px;
}

/* Avatar piccolo (sovrascrive regole globali) */
.account-nav .account-nav__item img{
  width: 22px !important;
  height: 22px !important;
  border-radius: 999px !important;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
}

/* Dropdown */
.account-nav .account-nav__dropdown{
  list-style: none !important;
  margin: 0 !important;

  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;

  min-width: 220px;
  padding: 10px;

  background: #111;
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);

  /* Stato chiuso */
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(6px);
  pointer-events: none;

  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 10060;
}

/* Triangolino */
.account-nav .account-nav__dropdown::before{
  content: "";
  position: absolute;
  right: 18px;
  top: -8px;
  width: 12px;
  height: 12px;
  background: #111;
  border-left: 1px solid rgba(255,255,255,.08);
  border-top: 1px solid rgba(255,255,255,.08);
  transform: rotate(45deg);
}

/* Apertura (hover + tastiera) */
.account-nav .account-nav__item:hover > .account-nav__dropdown,
.account-nav .account-nav__item:focus-within > .account-nav__dropdown{
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0);
  pointer-events: auto;
}

/* Voci */
.account-nav .account-nav__dropdown > li{
  margin: 0;
  padding: 0;
}

.account-nav .account-nav__dropdown > li > a{
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;

  color: rgba(255,255,255,.92);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.account-nav .account-nav__dropdown > li > a:hover{
  background: rgba(255,255,255,.08);
  color: #fff;
  transform: translateX(2px);
}

/* Esci */
.account-nav .account-nav__dropdown a.logout:hover{
  background: rgba(233,1,1,.15);
}

/* Mobile: dropdown “cade” a sinistra */
@media (max-width: 991px){
  .account-nav .account-nav__dropdown{
    left: 0 !important;
    right: auto !important;
    min-width: 260px;
  }
}
/* --- FIX: menu che sparisce (hover gap) --- */

/* 1) riduci la distanza: invece di +10px, attaccalo */
.account-nav .account-nav__dropdown{
  top: calc(100% + 2px) !important; /* prima era +10px */
}

/* 2) ponte invisibile tra trigger e dropdown */
.account-nav .account-nav__item::after{
  content:"";
  position:absolute;
  left:-10px;
  right:-10px;
  top: 100%;
  height: 14px;          /* “ponte” */
  background: transparent;
}

/* 3) assicurati che il ponte non blocchi click, ma tenga l’hover */
.account-nav .account-nav__item::after{
  pointer-events: auto;  /* serve per mantenere hover mentre ci passi sopra */
}

/* 4) (opzionale) rendi più “perdonante” l’area del dropdown */
.account-nav .account-nav__dropdown{
  padding-top: 12px;      /* un filo di aria interna */
}
.account-nav .account-nav__dropdown{
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .06s;
}
.account-nav .account-nav__item:hover > .account-nav__dropdown,
.account-nav .account-nav__item:focus-within > .account-nav__dropdown{
  transition: opacity .22s ease, transform .22s ease, visibility 0s;
}

/* ============================================ */
/* ACCOUNT NAV - User Menu Dropdown */
/* ============================================ */

.account-nav {
  position: relative;
  margin-left: auto;
  display: flex;
  align-items: center;
}

.account-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 24px;
  transition: background 0.2s ease;
}

.account-toggle:hover {
  background: rgba(0,0,0,.05);
}

.account-toggle img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e5e5;
}

.account-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-toggle i {
  font-size: 12px;
  color: #999;
  transition: transform 0.3s ease;
}

.account-nav:hover .account-toggle i {
  transform: rotate(180deg);
}

/* Dropdown menu */
.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 240px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 9999;
}

.account-nav:hover .account-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-dropdown li {
  margin: 0;
  padding: 0;
}

.account-dropdown li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.account-dropdown li a:hover {
  background: #f8f8f8;
}

.account-dropdown li a i {
  width: 18px;
  font-size: 16px;
  color: #666;
}

/* Divider */
.account-dropdown li.divider {
  height: 1px;
  background: #e5e5e5;
  margin: 8px 0;
}

/* Logout link - rosso */
.account-dropdown li a.logout {
  color: #dc3545;
}

.account-dropdown li a.logout:hover {
  background: #fff5f5;
}

.account-dropdown li a.logout i {
  color: #dc3545;
}

/* Dark mode */
body.dark-mode .account-toggle {
  background: transparent;
}

body.dark-mode .account-toggle:hover {
  background: rgba(255,255,255,.05);
}

body.dark-mode .account-name {
  color: #fff;
}

body.dark-mode .account-dropdown {
  background: #1a1a1a;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}

body.dark-mode .account-dropdown li a {
  color: #fff;
}

body.dark-mode .account-dropdown li a:hover {
  background: #2a2a2a;
}

body.dark-mode .account-dropdown li.divider {
  background: #333;
}

/* Mobile */
@media (max-width: 991px) {
  .account-nav {
    margin: 0;
  }
  
  .account-name {
    max-width: 120px;
  }
  
  .account-dropdown {
    right: auto;
    left: 0;
  }
}

/* Mobile - tap to open */
@media (max-width: 991px) {
  .account-nav.active .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .account-nav.active .account-toggle i {
    transform: rotate(180deg);
  }
}
