/**
* 
* 
* Updated: Aug 08 2024 with Bootstrap v5.3.3
* 
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "EB Garamond",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "EB Garamond",  sans-serif;
  --nav-font: "Inter",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
	
  --background-color: #121212; /* Colore scuro di riserva se la foto non si carica */
  --default-color: #e0e0e0; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #d9744b; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #d9744b; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #444444; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - Configurato con sfondo grigio e testi bianchi */
:root {
  --nav-color: #cfd8dc;  /* <--- CAMBIA QUESTO CODICE COLORE */
  --nav-hover-color: #ffffff; 
  --nav-mobile-background-color: #343a40; /* Sfondo del menu quando visualizzato da smartphone */
  --nav-dropdown-background-color: #444444; /* Sfondo dei menu a tendina (Dropdown) in grigio */
  --nav-dropdown-color: #ffffff; /* Testo dentro i menu a tendina in BIANCO */
  --nav-dropdown-hover-color: #cfd8dc; /* Testo a tendina al passaggio del mouse */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f9f9f9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: #000000; /* Questo valore rimane attivo di base per Mobile e Tablet */
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 10px 0;
  transition: all 0.5s;
  z-index: 997;
  
  /* --- AGGIUNTA SPECIFICA: Cambia lo sfondo in grigio trasparente SOLO su Desktop --- */
  @media (min-width: 1200px) {
    background-color: rgba(0, 0, 0, 0.1); 
    backdrop-filter: blur(10px); /* Aggiunge anche l'effetto sfocato su desktop */
  }
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 500;
  color: var(--heading-color);
}

.header .header-social-links {
  padding-right: 15px;
}

.header .header-social-links a {
  color: #d9744b;
  padding-left: 6px;
  display: inline-block;
  transition: 0.3s;
  font-size: 22px;
}


.header .header-social-links a:hover {
  color: var(--accent-color);
}

.header .header-social-links a i {
  line-height: 0px;
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .header-social-links {
    order: 2;
  }

  .header .navmenu {
    order: 3;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(#999999);
    padding: 18px 15px;
    font-size: 14px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }


  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: #FFFFFF; /* Bianco luminoso come i titoli dei post */
    font-weight: 700; /* Effetto grassetto */
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 13px;
    text-transform: none;
    color: #999999; /* Grigio per i link del sotto-menu */
    font-weight: 500;
  }


  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: #FFFFFF;
    font-weight: 700;
  }


  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/*--------------------------------------------------------------
# Navigation Menu - Desktop (Oltre 1200px)
--------------------------------------------------------------*/
/* Qui vanno le regole per il menu desktop che avevi già nel file */


/*--------------------------------------------------------------
# Navigation Menu - Tablet & Mobile (Sotto i 1200px)
--------------------------------------------------------------*/
@media (max-width: 1199px) {
  
  .mobile-nav-toggle {
    display: block !important;
    color: var(--nav-color);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 9999;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: block;
    list-style: none;
    position: fixed;
    top: 0;
    right: -300px;                  
    bottom: 0;
    width: 280px;                   
    padding: 70px 0 20px 0;         
    margin: 0;
    background-color: rgba(33, 37, 41, 0.40); 
    backdrop-filter: blur(12px);               
    -webkit-backdrop-filter: blur(12px);       
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    transition: right 0.3s ease;    
    z-index: 9998;
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .navmenu ul {
    right: 0;                       
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: fixed;                
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 12px 24px;
    font-family: var(--nav-font);
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    margin-left: 20px !important;
    font-size: 12px;
    line-height: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  /* --- SOTTOMENU / DROPDOWN MOBILE (Restretto con contorno visibile) --- */
  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    width: auto; 
    margin: 10px 20px;
    background-color: rgba(20, 22, 24, 0.9) !important; 
    border: 1px solid rgba(255, 255, 255, 0.15) !important; 
    border-radius: 4px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px !important;
    font-size: 15px; 
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.2);
  }

  .navmenu .dropdown > .dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

} /* <--- QUESTA PARENTESI CHIUDE IL BLOCCO @MEDIA ED EVITA DI ROVINARE LO SLIDER DESKTOP */



/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  position: relative;
}

.footer .footer-top {
  padding-top: 50px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 22px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer .copyright {
  padding: 25px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 8px;
  font-size: 13px;
}

.footer .credits a {
  color: var(--default-color);
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 50px;
  z-index: 99999;
  background-color: #9FB1C9; /* Aggiornato con il tuo colore */
  width: 40px;
  height: 40px;
  border-radius: 4px;
  
  /* Sposta inizialmente il pulsante a destra di 80px */
  transform: translateX(80px);
  /* Aumentato a 0.8s con ease-out per un effetto di movimento e fade più lento e morbido */
  transition: all 0.8s ease-out;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: #9FB1C9; /* Aggiornato con il tuo colore */
  color: var(--contrast-color);
}

/* Quando è attivo, torna a opacità 1 e scivola nella sua posizione originale */
.scroll-top.active {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}


/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 25px 0;
  position: relative;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.page-title h1 {
  font-size: 24px;
  font-weight: 700;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 40px 0;
  scroll-margin-top: 90px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  margin-bottom: 60px;
  position: relative;
}

.section-title .section-title-container {
  padding-bottom: 10px;
  border-bottom: 1px solid #333333; /* oppure un colore grigio/trasparente come rgba(255, 255, 255, 0.2) */
}

.section-title h2 {
  font-size: 40px;
  font-weight: 0;
}

.section-title p {
  margin-bottom: 0;
}

.section-title p a {
  color: var(--default-color);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  border-bottom: 1.5px solid var(--default-color);
  font-family: var(--nav-font);
  font-weight: 500;
  padding-bottom: 2px;
}

/*--------------------------------------------------------------
# Slider Section
--------------------------------------------------------------*/
.slider {
  background-color: transparent;
}

.slider .swiper-pagination .swiper-pagination-bullet {
  background-color: color-mix(in srgb, var(--default-color) 90%, white 15%);
}

.slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.slider .swiper-wrapper {
  height: auto !important;
}

.slider .swiper-slide {
  min-height: 400px;   /*--# Slider Section altezza modifica prima 500 #-- 
--------------------------------------------------------------*/
  position: relative;
  display: flex;
  align-items: flex-end;
  background-repeat: no-repeat;
  background-size: cover;
}

.slider .swiper-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent; /* Forzato trasparente */
}

@media (max-width: 575px) {
  .slider .swiper-slide {
    min-height: 300px;
  }
}

.slider .swiper-button-prev:after,
.slider .swiper-button-next:after {
  font-size: 24px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.slider .content {
  padding: 60px 80px;
  max-width: 700px;
  position: relative;
}

.slider .content a,
.slider .content h2,
.slider .content p {
  color: var(--default-color);
}

/*--------------------------------------------------------------
# Trending Category Section
--------------------------------------------------------------*/
.trending-category .post-entry {
  margin-bottom: 30px;
}

.trending-category .post-entry img {
  margin-bottom: 30px;
}

.trending-category .post-entry h2 {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.trending-category .post-entry h2 a {
  color: var(--heading-color);
}

.trending-category .post-entry h2 a:hover {
  text-decoration: underline;
}

.trending-category .post-entry.lg h2 {
  font-size: 30px;
  line-height: 1;
}

.trending-category .post-meta {
  font-size: 11px;
  letter-spacing: 0.07rem;
  text-transform: uppercase;
  font-weight: 600;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin-bottom: 10px;
}

.trending-category .custom-border {
  border-color: color-mix(in srgb, var(--default-color), transparent 90%) !important;
}

@media (max-width: 768px) {
  .trending-category .custom-border {
    border: none !important;
  }
}

.trending-category .author .photo {
  margin-right: 10px;
}

.trending-category .author .photo img {
  width: 40px;
  border-radius: 50%;
  margin-bottom: 0;
}

.trending-category .author .name h3 {
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-family: var(--default-font);
}

.trending-category .trending {
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.trending-category .trending>h3 {
  color: var(--default-color);
  padding: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.trending-category .trending .trending-post {
  padding: 0;
  margin: 0;
}

.trending-category .trending .trending-post li {
  padding: 0;
  margin: 0;
  list-style: none;
  display: block;
}

.trending-category .trending .trending-post li a {
  display: block;
  padding: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.trending-category .trending .trending-post li a .number {
  position: absolute;
  z-index: 1;
  font-size: 5rem;
  left: -10px;
  top: -20px;
  font-weight: 700;
  font-family: var(--heading-font);
  color: color-mix(in srgb, var(--default-color), transparent 95%);
}

.trending-category .trending .trending-post li a h3 {
  font-size: 16px;
  color: var(--default-color);
  transition: 0.3s;
}

.trending-category .trending .trending-post li a .author {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-weight: 500;
}

.trending-category .trending .trending-post li a:hover h3 {
  color: var(--default-color);
  text-decoration: underline;
}

.trending-category .trending .trending-post li:last-child a {
  border-bottom: none;
}

/*--------------------------------------------------------------
# Culture Category Section
--------------------------------------------------------------*/
.culture-category .post-entry {
  margin-bottom: 30px;
}

.culture-category .post-entry h3 a {
  color: var(--heading-color);
  font-weight: 600;
}

.culture-category .post-entry h3 a:hover {
  text-decoration: underline;
}

.culture-category .post-entry .thumbnail {
  flex: 0 0 65%;
}

@media (max-width: 960px) {
  .culture-category .post-entry .thumbnail {
    flex: 0 0 100%;
    margin-bottom: 20px;
  }
}

.culture-category .post-entry.half .thumbnail {
  flex: 0 0 50%;
}

@media (max-width: 768px) {
  .culture-category .post-entry.half .thumbnail {
    flex: 0 0 100%;
    margin-bottom: 20px;
  }
}

.culture-category .post-entry.small-img .thumbnail {
  flex: 0 0 30%;
}

@media (max-width: 768px) {
  .culture-category .post-entry.small-img .thumbnail {
    flex: 0 0 100%;
    margin-bottom: 20px;
  }
}

.culture-category .border-bottom {
  border-color: color-mix(in srgb, var(--default-color), transparent 90%) !important;
}

.culture-category .post-meta {
  font-size: 8px;
  letter-spacing: 0.07rem;
  text-transform: uppercase;
  font-weight: 600;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin-bottom: 10px;
}

.culture-category .author .photo {
  margin-right: 10px;
}

.culture-category .author .photo img {
  width: 40px;
  border-radius: 50%;
  margin-bottom: 0;
}

.culture-category .author .name h3 {
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-family: var(--default-font);
}

.culture-category .post-list {
  margin-bottom: 30px;
}

.culture-category .post-list img {
  margin-bottom: 30px;
}

.culture-category .post-list h2 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.culture-category .post-list h2 a {
  color: var(--heading-color);
}

.culture-category .post-list h2 a:hover {
  text-decoration: underline;
}

.culture-category .post-list.lg h2 {
  font-size: 40px;
  line-height: 1;
}

/*--------------------------------------------------------------
# Business Category Section
--------------------------------------------------------------*/
.business-category .post-entry {
  margin-bottom: 30px;
}

.business-category .post-entry h3 a {
  color: var(--heading-color);
  font-weight: 600;
}

.business-category .post-entry h3 a:hover {
  text-decoration: underline;
}

.business-category .post-entry .thumbnail {
  flex: 0 0 65%;
}

@media (max-width: 960px) {
  .business-category .post-entry .thumbnail {
    flex: 0 0 100%;
    margin-bottom: 20px;
  }
}

.business-category .post-entry.half .thumbnail {
  flex: 0 0 50%;
}

@media (max-width: 768px) {
  .business-category .post-entry.half .thumbnail {
    flex: 0 0 100%;
    margin-bottom: 20px;
  }
}

.business-category .post-entry.small-img .thumbnail {
  flex: 0 0 30%;
}

@media (max-width: 768px) {
  .business-category .post-entry.small-img .thumbnail {
    flex: 0 0 100%;
    margin-bottom: 20px;
  }
}

.business-category .border-bottom {
  border-color: color-mix(in srgb, var(--default-color), transparent 90%) !important;
}

.business-category .post-meta {
  font-size: 11px;
  letter-spacing: 0.07rem;
  text-transform: uppercase;
  font-weight: 600;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin-bottom: 10px;
}

.business-category .author .photo {
  margin-right: 10px;
}

.business-category .author .photo img {
  width: 40px;
  border-radius: 50%;
  margin-bottom: 0;
}

.business-category .author .name h3 {
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-family: var(--default-font);
}

.business-category .post-list {
  margin-bottom: 30px;
}

.business-category .post-list img {
  margin-bottom: 30px;
}

.business-category .post-list h2 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.business-category .post-list h2 a {
  color: var(--heading-color);
}

.business-category .post-list h2 a:hover {
  text-decoration: underline;
}

.business-category .post-list.lg h2 {
  font-size: 40px;
  line-height: 1;
}

/*--------------------------------------------------------------
# Lifestyle Category Section
--------------------------------------------------------------*/
.lifestyle-category .post-meta {
  font-size: 11px;
  letter-spacing: 0.07rem;
  text-transform: uppercase;
  font-weight: 600;
  color: #D1D5DB !important; /* <--- Grigio molto chiaro e luminoso */
  margin-bottom: 10px;
}

.lifestyle-category .post-meta a {
  color: #D1D5DB !important; /* <--- Applica il grigio chiaro anche ai link */
}

.lifestyle-category .post-meta a {
  color: #A0A5B0 !important; /* <--- Applica lo stesso grigio se sono link */
}

.lifestyle-category .post-meta a {
  color: #FF6B00 !important;
}

/* Questa regola serve se la scritta contiene dei link cliccabili, così cambiano anche loro */
.lifestyle-category .post-meta a {
  color: #E0E0E0 !important;
}

.lifestyle-category .author .photo {
  margin-right: 10px;
}

.lifestyle-category .author .photo img {
  width: 40px;
  border-radius: 50%;
  margin-bottom: 0;
}

.lifestyle-category .author .name h3 {
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-family: var(--default-font);
}

.lifestyle-category .custom-border,
.lifestyle-category .border-bottom {
  border-color: color-mix(in srgb, var(--default-color), transparent 90%) !important;
}

.lifestyle-category .post-list {
  margin-bottom: 30px;
}

.lifestyle-category .post-list img {
  margin-bottom: 30px;
}

.lifestyle-category .post-list h2 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.lifestyle-category .post-list h2 a {
  color: var(--heading-color);
}

.lifestyle-category .post-list h2 a:hover {
  text-decoration: underline;
}

.lifestyle-category .post-list.lg h2 {
  font-size: 40px;
  line-height: 1;
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content .who-we-are {
  text-transform: uppercase;
  margin-bottom: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.about .content h3 {
  font-size: 2rem;
  font-weight: 700;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  padding-bottom: 10px;
}

.about .content ul i {
  font-size: 1.25rem;
  margin-right: 4px;
  color: var(--accent-color);
}

.about .content p:last-child {
  margin-bottom: 0;
}

.about .content .read-more {
  background: var(--accent-color);
  color: var(--contrast-color);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  padding: 12px 24px;
  border-radius: 5px;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.about .content .read-more i {
  font-size: 18px;
  margin-left: 5px;
  line-height: 0;
  transition: 0.3s;
}

.about .content .read-more:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
  padding-right: 19px;
}

.about .content .read-more:hover i {
  margin-left: 10px;
}

.about .about-images img {
  border-radius: 10px;
}

/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
.team .team-member {
  background-color: var(--surface-color);
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  border-radius: 5px;
  transition: 0.5s;
  padding: 30px;
  height: 100%;
}

@media (max-width: 468px) {
  .team .team-member {
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
  }
}

.team .team-member .pic {
  overflow: hidden;
  width: 150px;
  border-radius: 50%;
  flex-shrink: 0;
}

.team .team-member .pic img {
  transition: ease-in-out 0.3s;
}

.team .team-member:hover {
  transform: translateY(-10px);
}

.team .team-member .member-info {
  padding-left: 30px;
}

@media (max-width: 468px) {
  .team .team-member .member-info {
    padding: 30px 0 0 0;
    text-align: center;
  }
}

.team .team-member h4 {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 20px;
}

.team .team-member span {
  display: block;
  font-size: 15px;
  padding-bottom: 10px;
  position: relative;
  font-weight: 500;
}

.team .team-member span::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 85%);
  bottom: 0;
  left: 0;
}

@media (max-width: 468px) {
  .team .team-member span::after {
    left: calc(50% - 25px);
  }
}

.team .team-member p {
  margin: 10px 0 0 0;
  font-size: 14px;
}

.team .team-member .social {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: start;
  width: 100%;
}

@media (max-width: 468px) {
  .team .team-member .social {
    justify-content: center;
  }
}

.team .team-member .social a {
  background: color-mix(in srgb, var(--default-color), transparent 94%);
  transition: ease-in-out 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  width: 36px;
  height: 36px;
}

.team .team-member .social a i {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-size: 16px;
  margin: 0 2px;
}

.team .team-member .social a:hover {
  background: var(--accent-color);
}

.team .team-member .social a:hover i {
  color: var(--contrast-color);
}

.team .team-member .social a+a {
  margin-left: 8px;
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/
.starter-section {
  /* Add your styles here */
}

/*--------------------------------------------------------------
# Blog Details Section
--------------------------------------------------------------*/
.blog-details {
  padding-bottom: 30px;
}

.blog-details .article {
  background-color: var(--surface-color);
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog-details .post-img {
  margin: -30px -30px 20px -30px;
  overflow: hidden;
}

.blog-details .title {
  color: var(--heading-color);
  font-size: 28px;
  font-weight: 700;
  padding: 0;
  margin: 30px 0;
}

.blog-details .content {
  margin-top: 20px;
}

.blog-details .content h3 {
  font-size: 22px;
  margin-top: 30px;
  font-weight: bold;
}

.blog-details .content blockquote {
  overflow: hidden;
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
  padding: 60px;
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.blog-details .content blockquote p {
  color: var(--default-color);
  line-height: 1.6;
  margin-bottom: 0;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
}

.blog-details .content blockquote:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--accent-color);
  margin-top: 20px;
  margin-bottom: 20px;
}

.blog-details .meta-top {
  margin-top: 20px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
}

.blog-details .meta-top ul li+li {
  padding-left: 20px;
}

.blog-details .meta-top i {
  font-size: 16px;
  margin-right: 8px;
  line-height: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 14px;
  display: inline-block;
  line-height: 1;
}

.blog-details .meta-bottom {
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.blog-details .meta-bottom i {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  display: inline;
}

.blog-details .meta-bottom a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  transition: 0.3s;
}

.blog-details .meta-bottom a:hover {
  color: var(--accent-color);
}

.blog-details .meta-bottom .cats {
  list-style: none;
  display: inline;
  padding: 0 20px 0 0;
  font-size: 14px;
}

.blog-details .meta-bottom .cats li {
  display: inline-block;
}

.blog-details .meta-bottom .tags {
  list-style: none;
  display: inline;
  padding: 0;
  font-size: 14px;
}

.blog-details .meta-bottom .tags li {
  display: inline-block;
}

.blog-details .meta-bottom .tags li+li::before {
  padding-right: 6px;
  color: var(--default-color);
  content: ",";
}

.blog-details .meta-bottom .share {
  font-size: 16px;
}

.blog-details .meta-bottom .share i {
  padding-left: 5px;
}

/*--------------------------------------------------------------
# Blog Comments Section
--------------------------------------------------------------*/
.blog-comments {
  padding: 10px 0;
}

.blog-comments .comments-count {
  font-weight: bold;
}

.blog-comments .comment {
  margin-top: 30px;
  position: relative;
}

.blog-comments .comment .comment-img {
  margin-right: 14px;
}

.blog-comments .comment .comment-img img {
  width: 60px;
}

.blog-comments .comment h5 {
  font-size: 16px;
  margin-bottom: 2px;
}

.blog-comments .comment h5 a {
  font-weight: bold;
  color: var(--default-color);
  transition: 0.3s;
}

.blog-comments .comment h5 a:hover {
  color: var(--accent-color);
}

.blog-comments .comment h5 .reply {
  padding-left: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.blog-comments .comment h5 .reply i {
  font-size: 20px;
}

.blog-comments .comment time {
  display: block;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 5px;
}

.blog-comments .comment.comment-reply {
  padding-left: 40px;
}

/*--------------------------------------------------------------
# Comment Form Section
--------------------------------------------------------------*/
.comment-form {
  padding-top: 10px;
}

.comment-form form {
  background-color: var(--surface-color);
  margin-top: 30px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.comment-form form h4 {
  font-weight: bold;
  font-size: 22px;
}

.comment-form form p {
  font-size: 14px;
}

.comment-form form input {
  background-color: var(--surface-color);
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  font-size: 14px;
  border-radius: 4px;
  padding: 10px 10px;
}

.comment-form form input:focus {
  color: var(--default-color);
  background-color: var(--surface-color);
  box-shadow: none;
  border-color: var(--accent-color);
}

.comment-form form input::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.comment-form form textarea {
  background-color: var(--surface-color);
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  border-radius: 4px;
  padding: 10px 10px;
  font-size: 14px;
  height: 120px;
}

.comment-form form textarea:focus {
  color: var(--default-color);
  box-shadow: none;
  border-color: var(--accent-color);
  background-color: var(--surface-color);
}

.comment-form form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.comment-form form .form-group {
  margin-bottom: 25px;
}

.comment-form form .btn-primary {
  border-radius: 4px;
  padding: 10px 20px;
  border: 0;
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.comment-form form .btn-primary:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*--------------------------------------------------------------
# Blog Posts Section
--------------------------------------------------------------*/
.blog-posts article {
  background-color: var(--surface-color);
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.blog-posts .post-img img {
  transition: 0.5s;
}

.blog-posts .post-date {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  position: absolute;
  right: 0;
  bottom: 0;
  text-transform: uppercase;
  font-size: 13px;
  padding: 6px 12px;
  font-weight: 500;
}

.blog-posts .post-content {
  padding: 30px;
}

.blog-posts .post-title {
  font-size: 20px;
  color: var(--heading-color);
  font-weight: 700;
  transition: 0.3s;
  margin-bottom: 15px;
}

.blog-posts .meta i {
  font-size: 16px;
  color: var(--accent-color);
}

.blog-posts .meta span {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-posts p {
  margin-top: 20px;
}

.blog-posts hr {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  margin-bottom: 15px;
}

.blog-posts .readmore {
  display: flex;
  align-items: center;
  font-weight: 600;
  line-height: 1;
  transition: 0.3s;
  color: color-mix(in srgb, var(--heading-color), transparent 20%);
}

.blog-posts .readmore i {
  line-height: 0;
  margin-left: 6px;
  font-size: 16px;
}

.blog-posts article:hover .post-title,
.blog-posts article:hover .readmore {
  color: var(--accent-color);
}

.blog-posts article:hover .post-img img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Blog Pagination Section
--------------------------------------------------------------*/
.blog-pagination {
  padding-top: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-pagination ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.blog-pagination li {
  margin: 0 5px;
  transition: 0.3s;
}

.blog-pagination li a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-pagination li a.active,
.blog-pagination li a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.blog-pagination li a.active a,
.blog-pagination li a:hover a {
  color: var(--contrast-color);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-item+.info-item {
  margin-top: 40px;
}

.contact .info-item i {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .php-email-form {
  height: 100%;
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: color-mix(in srgb, var(--background-color), transparent 50%);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widgets-container {
  margin: 40px 0 30px 0;
}

.widget-title {
  color: var(--heading-color);
  font-size: 20px;
  font-weight: 600;
  padding: 0 0 0 10px;
  margin: 0 0 20px 0;
  border-left: 4px solid var(--accent-color);
}

.widget-item {
  margin-bottom: 30px;
  background-color: color-mix(in srgb, var(--default-color), transparent 98%);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding: 30px;
  border-radius: 5px;
}

.widget-item:last-child {
  margin-bottom: 0;
}

.blog-author-widget img {
  max-width: 120px;
  margin-right: 20px;
}

.blog-author-widget h4 {
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 0px;
  padding: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.blog-author-widget .social-links {
  margin: 5px 0;
}

.blog-author-widget .social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  margin-right: 5px;
  font-size: 18px;
}

.blog-author-widget .social-links a:hover {
  color: var(--accent-color);
}

.blog-author-widget p {
  font-style: italic;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 10px 0 0 0;
}

.search-widget form {
  background: var(--background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 75%);
  padding: 3px 10px;
  position: relative;
  border-radius: 50px;
  transition: 0.3s;
}

.search-widget form input[type=text] {
  border: 0;
  padding: 4px 10px;
  border-radius: 4px;
  width: calc(100% - 40px);
  background-color: var(--background-color);
  color: var(--default-color);
}

.search-widget form input[type=text]:focus {
  outline: none;
}

.search-widget form button {
  background: none;
  color: var(--default-color);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  font-size: 16px;
  padding: 0 16px;
  transition: 0.3s;
  line-height: 0;
}

.search-widget form button i {
  line-height: 0;
}

.search-widget form button:hover {
  color: var(--accent-color);
}

.search-widget form:is(:focus-within) {
  border-color: var(--accent-color);
}

.recent-posts-widget .post-item {
  display: flex;
  margin-bottom: 15px;
}

.recent-posts-widget .post-item:last-child {
  margin-bottom: 0;
}

.recent-posts-widget .post-item img {
  width: 120px; /* Riduce e ingrandisce la foto degli album in uscita */
  margin-right: 15px;
}

.recent-posts-widget .post-item h4 {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 5px;
}

.recent-posts-widget .post-item h4 a {
  color: var(--default-color);
  transition: 0.3s;
}

.recent-posts-widget .post-item h4 a:hover {
  color: var(--accent-color);
}

.recent-posts-widget .post-item time {
  display: block;
  font-style: italic;
  font-size: 16px;
  color: #BEBEBE; /* Un grigio ancora più chiaro e pulito rispetto a prima */
}

.tags-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags-widget ul li {
  display: inline-block;
}

.tags-widget ul a {
  background-color: color-mix(in srgb, var(--default-color), transparent 94%);
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  border-radius: 50px;
  font-size: 14px;
  padding: 5px 15px;
  margin: 0 6px 8px 0;
  display: inline-block;
  transition: 0.3s;
}

.tags-widget ul a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.tags-widget ul a span {
  padding-left: 5px;
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  font-size: 14px;
}

.blog-author-widget-2 img {
  max-width: 160px;
}

.blog-author-widget-2 h4 {
  font-weight: 600;
  font-size: 24px;
  margin: 15px 0 0 0;
  padding: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.blog-author-widget-2 .social-links {
  margin: 5px 0;
}

.blog-author-widget-2 .social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  margin: 0 3px;
  font-size: 18px;
}

.blog-author-widget-2 .social-links a:hover {
  color: var(--accent-color);
}

.blog-author-widget-2 p {
  font-style: italic;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 10px 0 0 0;
}







/* Blocca la selezione del testo su tutto il sito */
body, html {
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE10+ */
  user-select: none;         /* Standard */
}




/* Impedisce il trascinamento e il salvataggio rapido delle immagini */
img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}



/* 2. Nasconde l'icona del contatore ShinyStat per un look pulito */
footer a[href*="shinystat"], 
#footer img[src*="shinystat"],
footer img[src*="shinystat"] {
    display: none !important;
}



/* REGOLA UNIVERSALE PER I TITOLI DEI POST */
.post-list h2 a, 
.post-list h5 a,
.post-entry h2 a,
.post-entry h5 a {
  color: #d9744b !important;
  transition: color 0.2s ease !important;
}



/* EFFETTO AL PASSAGGIO DEL MOUSE (BIANCO LUMINOSO) */
.post-list h2 a:hover, 
.post-list h5 a:hover,
.post-entry h2 a:hover,
.post-entry h5 a:hover {
  color: #FFFFFF !important;
  text-decoration: none !important;
}



/* Forza l'arancione rock anche sui titoli con il tag H3 grandi */
.post-list.lg h3 a,
.post-list h3 a {
  color: #d9744b !important;
  transition: color 0.2s ease !important;
}

/* Li fa diventare bianchi luminosi quando ci passi sopra con il mouse */
.post-list.lg h3 a:hover,
.post-list h3 a:hover {
  color: #FFFFFF !important;
  text-decoration: none !important;
}





/* 1. Gestione globale dello sfondo e dei testi all'interno delle diapositive */
.swiper-slide {
  background-size: cover;          /* Riempie lo spazio senza deformare l'immagine */
  background-position: center;     /* Centra l'immagine sia in verticale che in orizzontale */
  background-repeat: no-repeat;
  
  /* Allinea i testi centralmente sopra lo sfondo */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-sizing: border-box;
}

/* 2. Definizione dell'altezza dello slider per Desktop */
#slider .swiper {
  width: 100%;
  height: 550px; /* Scegli l'altezza che preferisci per i monitor grandi */
}

/* 3. Ottimizzazione RESPONSIVE per Tablet (sotto i 992px) e Smartphone (sotto i 576px) */
@media (max-width: 992px) {
  #slider .swiper {
    height: 450px; /* Riduce l'altezza per i Tablet */
  }
}

@media (max-width: 576px) {
  #slider .swiper {
    height: 380px; /* Riduce l'altezza per gli Smartphone */
  }
  
  /* Opzionale: Rende i testi più leggibili sui display piccoli */
  #slider .content {
    padding: 20px;
    text-align: center;
  }
  #slider .content h2 {
    font-size: 1.5rem; /* Diminuisce la dimensione del titolo per non coprire tutto */
  }
}


/* ========================================================
   STRUTTURA DELLO SLIDER E RIPRISTINO PALLINI BIANCHI
   ======================================================== */

/* Definisce l'altezza reale dello slider sul Desktop */
#slider .swiper {
  height: 550px !important;
  margin-bottom: 0px !important;
  padding-bottom: 0px !important;
  position: relative !important;
}

/* Gestione delle immagini responsive e allineamento IN BASSO A SINISTRA */
#slider .swiper-slide {
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  
  display: flex !important;
  align-items: flex-end !important;    /* FORZA IL TESTO IN BASSO */
  justify-content: flex-start !important; /* FORZA IL TESTO A SINISTRA */
  box-sizing: border-box !important;
}

/* PALLINI IN PRIMO PIANO */
#slider .swiper-pagination {
  bottom: 15px !important; /* Li tiene distanti dal fondo, totalmente visibili */
  z-index: 999 !important;  /* Li porta davanti alle foto */
  text-align: center !important;
  width: 100% !important;
  left: 0 !important;
}

/* Stile dei pallini bianchi e visibili */
#slider .swiper-pagination-bullet {
  background: #ffffff !important;
  opacity: 0.4 !important;
  width: 11px !important;
  height: 11px !important;
  margin: 0 5px !important;
}

#slider .swiper-pagination-bullet-active {
  background: #ffffff !important;
  opacity: 1 !important;
}

/* Spazio controllato con il resto del sito main */
#slider + *, 
.slider + *,
#slider + section {
  padding-top: 30px !important;
  margin-top: 0px !important;
}

/* ========================================================
   TESTO IN BASSO A SINISTRA CON ANIMAZIONE AL CAMBIO FOTO
   ======================================================== */
#slider .content {
  max-width: 600px !important;
  margin-left: 8% !important;  /* Distanza dal bordo sinistro dello schermo */
  margin-bottom: 50px !important; /* Spazio dal fondo per non coprire i pallini dello slider */
  text-align: left !important;  /* Allinea le righe di testo a sinistra */
  padding: 25px !important;
  background: rgba(0, 0, 0, 0.65) !important; /* Sfondo scuro per massima leggibilità */
  border-radius: 8px !important;
  box-sizing: border-box !important;
  
  /* Stato iniziale: nascosto e spostato a sinistra */
  opacity: 0;
  transform: translateX(-30px);
}

/* L'animazione si attiva grazie alla classe nativa che Swiper assegna al cambio slide */
#slider .swiper-slide-active .content {
  animation: slideLeftReveal 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
  animation-delay: 0.1s !important;
}

#slider .content h2 a {
  color: #ffffff !important;
  text-decoration: none !important;
}

@keyframes slideLeftReveal {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================================
   OTTIMIZZAZIONE PER SMARTPHONE (MOBILE)
   ======================================================== */
@media (max-width: 768px) {
  #slider .swiper {
    height: 420px !important; /* Riduce l'altezza per renderlo proporzionato su Mobile */
  }

  #slider .content {
    max-width: 86% !important;
    margin-left: 7% !important; 
    margin-bottom: 45px !important; /* Mantiene il testo sopra i pallini anche su smartphone */
    padding: 15px 20px !important;
  }

  #slider .content h2 {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
  }

  #slider .content p {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    color: #dddddd !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; /* Riduce la descrizione a 2 righe su mobile per non riempire lo schermo */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
}



/* ========================================================
   STRUTTURA DELLO SLIDER ED EMERGENZA PALLINI
   ======================================================== */
#slider .swiper {
  height: 550px !important; /* Altezza Desktop stabile */
  margin-bottom: 0px !important;
  padding-bottom: 0px !important;
  position: relative !important;
}

#slider .swiper-slide {
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative !important; /* Rende la slide la base per l'ancoraggio del testo */
}

/* Forzatura visiva dei pallini sul fondo dello slider */
#slider .swiper-pagination {
  bottom: 15px !important;
  z-index: 999 !important;
  text-align: center !important;
  width: 100% !important;
  left: 0 !important;
}

#slider .swiper-pagination-bullet {
  background: #ffffff !important;
  opacity: 0.4 !important;
  width: 11px !important;
  height: 11px !important;
  margin: 0 5px !important;
}

#slider .swiper-pagination-bullet-active {
  background: #ffffff !important;
  opacity: 1 !important;
}

/* ========================================================
   TESTO ANCORATO IN BASSO A SINISTRA (100% FUNZIONANTE)
   ======================================================== */
#slider .content {
  /* Sgancia il testo dai blocchi del tema e lo inchioda in basso a sinistra */
  position: absolute !important;
  bottom: 50px !important;       /* Posizionato sopra i pallini bianchi */
  left: 5% !important;           /* Spinto a sinistra vicino al bordo dello schermo */
  
  display: block !important;     /* Impedisce al testo di sparire */
  visibility: visible !important;
  opacity: 1 !important;
  
  max-width: 600px !important;
  text-align: left !important;    /* Allinea tutte le righe di testo a sinistra */
  padding: 25px !important;
  z-index: 100 !important;        /* Lo porta sopra lo sfondo */
  
  /* Riquadro trasparente moderno richiesto */
  background: rgba(0, 0, 0, 0.30) !important; 
  backdrop-filter: blur(4px) !important; 
  -webkit-backdrop-filter: blur(4px) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
}

/* Ombra protettiva per rendere leggibili i testi sopra lo sfondo trasparente */
#slider .content h2 a,
#slider .content p {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9) !important;
}

#slider .content h2 a {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* ========================================================
   RIDUZIONE DELLO SPAZIO BIANCO SOTTO LO SLIDER
   ======================================================== */
#slider + *, 
.slider + *,
#slider + section {
  padding-top: 0px !important;
  margin-top: -20px !important; /* Avvicina la sezione del main dello schermo */
}

/* ========================================================
   OTTIMIZZAZIONE TOTALE PER SMARTPHONE (MOBILE)
   ======================================================== */
@media (max-width: 768px) {
  #slider .swiper {
    height: 420px !important; /* Riduce l'altezza dello slider sui telefoni */
  }

  #slider .content {
    left: 5% !important;            /* Mantiene il testo a sinistra */
    bottom: 45px !important;        /* Lo tiene perfettamente sopra i pallini su mobile */
    max-width: 90% !important;      /* Evita che esca dallo schermo dello smartphone */
    padding: 15px 20px !important;
  }

  #slider .content h2 {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
  }

  #slider .content p {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    color: #dddddd !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; /* Accorcia il testo a 2 righe sui display piccoli */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  #slider + *, 
  .slider + *,
  #slider + section {
    margin-top: -15px !important;
  }
}



/* ========================================================
   STRUTTURA DELLO SLIDER ED EMERGENZA PALLINI
   ======================================================== */
#slider .swiper {
  height: 400px !important; /* Altezza Desktop stabile */
  margin-bottom: 0px !important;
  padding-bottom: 0px !important;
  position: relative !important;
}

#slider .swiper-slide {
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative !important; /* Rende la slide la base per l'ancoraggio del testo */
}

/* Forzatura visiva dei pallini sul fondo dello slider */
#slider .swiper-pagination {
  bottom: 15px !important;
  z-index: 999 !important;
  text-align: center !important;
  width: 100% !important;
  left: 0 !important;
}

#slider .swiper-pagination-bullet {
  background: #ffffff !important;
  opacity: 0.4 !important;
  width: 11px !important;
  height: 11px !important;
  margin: 0 5px !important;
}

#slider .swiper-pagination-bullet-active {
  background: #ffffff !important;
  opacity: 1 !important;
}

/* ========================================================
   TESTO ANCORATO IN BASSO A SINISTRA (SENZA SFONDO GRIGIO)
   ======================================================== */
#slider .content {
  /* Sgancia il testo dai blocchi del tema e lo inchioda in basso a sinistra */
  position: absolute !important;
  bottom: 50px !important;       /* Posizionato sopra i pallini bianchi */
  left: 5% !important;           /* Spinto a sinistra vicino al bordo dello schermo */
  
  display: block !important;     /* Impedisce al testo di sparire */
  visibility: visible !important;
  opacity: 1 !important;
  
  max-width: 600px !important;
  text-align: left !important;    /* Allinea tutte le righe di testo a sinistra */
  padding: 0px !important;        /* Azzerato il padding interno poiché non c'è più il box */
  z-index: 100 !important;        /* Lo porta sopra lo sfondo */
  
  /* RIMOZIONE TOTALE DEL RIQUADRO GRIGIO SFOCATO */
  background: transparent !important; 
  background-color: transparent !important;
  backdrop-filter: none !important; 
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-radius: 0px !important;
  box-sizing: border-box !important;
}

/* Ombra protettiva aumentata per rendere leggibili i testi nudi direttamente sopra le foto */
#slider .content h2 a,
#slider .content p {
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.95) !important;
}

#slider .content h2 a {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* ========================================================
   RIDUZIONE DELLO SPAZIO BIANCO SOTTO LO SLIDER
   ======================================================== */
#slider + *, 
.slider + *,
#slider + section {
  padding-top: 0px !important;
  margin-top: -20px !important; /* Avvicina la sezione del main dello schermo */
}

/* ========================================================
   OTTIMIZZAZIONE TOTALE PER SMARTPHONE (MOBILE)
   ======================================================== */
@media (max-width: 768px) {
  #slider .swiper {
    height: 420px !important; /* Riduce l'altezza dello slider sui telefoni */
  }

  #slider .content {
    left: 5% !important;            /* Mantiene il testo a sinistra */
    bottom: 45px !important;        /* Lo tiene perfettamente sopra i pallini su mobile */
    max-width: 90% !important;      /* Evita che esca dallo schermo dello smartphone */
    padding: 15px 20px !important;
  }

  #slider .content h2 {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
  }

  #slider .content p {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    color: #dddddd !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; /* Accorcia il testo a 2 righe sui display piccoli */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  #slider + *, 
  .slider + *,
  #slider + section {
    margin-top: -15px !important;
  }
}


/* ========================================================
   REGOLAZIONE FINALE: SPOSTA LA SCRITTA ANCORA PIÙ IN BASSO
   ======================================================== */

#slider .content {
  bottom: 1px !important; /* Abbassa il riquadro su Desktop (prima era 50px) */
}

@media (max-width: 500px) {
  #slider .content {
    bottom: 1px !important; /* Abbassa il riquadro anche su Smartphone (prima era 45px) */
  }
}


/* ========================================================
   MODIFICA DIMENSIONE E COLORE TESTO SOTTO AL TITOLO SLIDER
   ======================================================== */

/* Ingrandimento per Computer (Desktop) */
#slider .content p {
  font-size: 1.25rem !important;
  line-height: 1.5 !important;
  color: #ffffff !important; 
  font-style: italic !important; /* Testo in corsivo su PC */
}

/* Ingrandimento per Smartphone (Mobile) */
@media (max-width: 768px) {
  #slider .content p {
    font-size: 1.05rem !important;
    line-height: 1.4 !important;
    color: #ffffff !important; 
    font-style: italic !important; /* Testo in corsivo anche su Mobile */
  }
}




/* BLOCCO AGGIORNATO: Forza il testo piccolo su ogni elemento finale */
center, 
center *,
.home center, 
.home p:last-of-type,
body > div:last-of-type,
body > div:last-of-type *,
body > div:last-child p,
.copyright,
.copyright *,
#copyright,
#copyright *,
[class*="copy"],
[class*="copy"] * {
    font-size: 11px !important;     /* Forza il testo piccolo anche sui sotto-elementi */
    margin-top: 10px !important;    
    margin-bottom: 0px !important;  /* Mantiene bloccato lo spazio sotto */
    padding-bottom: 0 !important;   
    line-height: 1.2 !important;
}

/* Rimuove i blocchi vuoti della demo */
.demo-page-container {
    display: none !important;
}







/* ==========================================================================
   RESET E CENTRAGGIO ASSOLUTO PER GRT YOUTUBE POPUP
   ========================================================================== */

/* Forza lo sfondo scuro a coprire l'intera area dello schermo */
.grtyoutube-popup {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background: rgba(0, 0, 0, 0.85) !important;
    display: flex !important;
    align-items: center !important;    /* Centra perfettamente in verticale */
    justify-content: center !important;  /* Centra perfettamente in orizzontale */
}

/* Riposiziona il contenitore interno del video al centro millimetrico */
.grtyoutube-popup-content {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important; /* Rimuove vecchi spostamenti errati */
    width: 90% !important;      /* Lascia un margine di sicurezza ai lati dello schermo */
    max-width: 800px !important; /* Mantiene una dimensione elegante per il player */
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* Gestisce le proporzioni 16:9 del video di YouTube senza deformarlo */
.grtyoutube-iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    display: block !important;
    border: none !important;
}

/* Assicura che il pulsante di chiusura (la X) rimanga visibile e cliccabile */
.grtyoutube-popup-close {
    position: absolute !important;
    top: -30px !important; /* Lo posiziona sopra il video in modo visibile */
    right: 0 !important;
    z-index: 1000000 !important;
    cursor: pointer !important;
}




/* 1. Stato Base: Bianco su tutti i titoli e link del menu */
.post-list h2 a,
.post-list h3 a,
.post-list h5 a,
.post-entry h2 a,
.post-entry h5 a,
.post-list.lg h3 a,
ul li a,
.menu li a {
  color: #FFFFFF !important;
  text-decoration: none !important;
  transition: color 0.2s ease-in-out !important;
}

/* 2. Stato Hover (Passaggio mouse): Diventa Arancione */
.post-list h2 a:hover, 
.post-list h3 a:hover,
.post-list h5 a:hover,
.post-entry h2 a:hover,
.post-entry h5 a:hover,
.post-list.lg h3 a:hover,
ul li a:hover,
.menu li a:hover {
  color: #d9744b !important;
  text-decoration: none !important;
}

/* 3. Stato Attivo/Cliccato: Rimane Arancione quando sei sulla pagina corrente */
ul li a:active,
.menu li a:active,
ul li.current-menu-item a,
ul li.active a,
.nav-link.active,
a.active {
  color: #d9744b !important;
  font-weight: bold; /* Opzionale: rende il testo leggermente più spesso per evidenziarlo */
}



/* Mantiene il testo visibile quando passi il mouse su qualsiasi link della paginazione */
.blog-pagination ul li a:hover {
    color: #d9744b !important; /* Diventa arancione al passaggio del mouse */
    background-color: transparent !important; /* Evita sfondi che coprono il testo */
}

/* Se preferisci che il testo rimanga semplicemente bianco anche al passaggio del mouse: */
/*
.blog-pagination ul li a:hover {
    color: #ffffff !important; 
}
*/


.post-date {
  background-color: #ffffff !important; /* Forza lo sfondo bianco */
  color: #000000 !important;            /* Forza il testo nero */
}








/* Soluzione Standard Moderna (Firefox e browser recenti) */
html {
  scrollbar-color: #343a40 #f1f1f1; /* Colore cursore, Colore sfondo */
  scrollbar-width: auto; /* Opzioni: auto, thin, none */
}

/* Soluzione Webkit (Chrome, Safari, Edge, Opera) */
/* 1. Dimensioni della barra */
::-webkit-scrollbar {
  width: 12px; /* Larghezza per barre verticali */
  height: 12px; /* Altezza per barre orizzontali */
}

/* 2. Sfondo della barra (Track) */
::-webkit-scrollbar-track {
  background: #f1f1f1; 
  border-radius: 6px;
}

/* 3. Cursore della barra (Thumb) */
::-webkit-scrollbar-thumb {
  background: #343a40; 
  border-radius: 6px;
}

/* 4. Cursore al passaggio del mouse (Hover) */
::-webkit-scrollbar-thumb:hover {
  background: #343a40; 
}






/* ============================================================
   MODIFICA LETTORE: SCROLLBAR DELLA PLAYLIST ULTRA SOTTILE
   ============================================================ */

/* Configurazione per Firefox */
.nvp-list {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent !important;
}

/* Configurazione per Chrome, Safari ed Edge (Spessore 2 pixel) */
.nvp-list::-webkit-scrollbar {
    width: 2px !important; /* Rende lo scorrimento verticale sottilissimo */
}

/* Sfondo del binario della barra (completamente invisibile) */
.nvp-list::-webkit-scrollbar-track {
    background: transparent !important;
}

/* Colore e forma della barra di scorrimento */
.nvp-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15) !important; /* Trasparente e discreta */
    border-radius: 10px !important;
}

/* Effetto al passaggio del mouse sulla barra */
.nvp-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4) !important; /* Si illumina leggermente */
}



/* Transizione fluida per il movimento di discesa */
#smooth-scroll-widget {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* Disattiva il movimento sui telefoni per non rompere il layout mobile */
@media (max-width: 991px) {
  #smooth-scroll-widget {
    transform: none !important;
    transition: none !important;
  }
}
#smooth-scroll-widget {
  margin-top: 80px; /* <--- REGOLA QUESTO: più aumenti il numero, più scende all'avvio */
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* Responsive per smartphone: azzera il movimento ma lascia un po' di spazio */
@media (max-width: 991px) {
  #smooth-scroll-widget {
    transform: none !important;
    transition: none !important;
    margin-top: 30px; 
  }
}




/* Stile base del pulsante Invia (Più lungo in orizzontale) */
input[type="submit"], 
button[type="submit"],
.rocknote-submit-btn {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
    padding: 4px 40px !important; /* Aumentato lo spazio a destra e sinistra a 40px per allungarlo */
    font-size: 14px !important;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Effetto al passaggio del mouse (Hover) */
input[type="submit"]:hover, 
button[type="submit"]:hover,
.rocknote-submit-btn:hover {
    background-color: #d9744b !important;
    color: #000000 !important;
    border-color: #d9744b !important;
}









/* 1. Forza TUTTI gli h5 e i loro link ad essere arancioni */
h5, 
h5 *,
.post-list h5,
.post-list h5 a {
  color: #d9744b !important;
  text-decoration: none !important;
}

/* 2. Forza TUTTI gli h5 e i loro link a diventare bianchi al passaggio del mouse */
h5:hover, 
h5:hover *,
.post-list h5:hover,
.post-list h5:hover a {
  color: #ffffff !important;
}








/* ==========================================================================
   TITOLO GRANDE (Parte dall'inizio sinistro dell'immagine/schermo)
   ========================================================================== */
.swiper-slide .slide-fade-right {
  opacity: 0;
  /* -100vw lo sposta completamente fuori dallo schermo a sinistra */
  transform: translate3d(-100vw, 0, 0); 
  /* Manteniamo i 1.2s così l'effetto resta lento, fluido e cinematico nonostante la distanza maggiore */
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.swiper-slide-active .slide-fade-right {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   PARAGRAFO SOTTO (Dall'alto verso il basso - Invariato)
   ========================================================================== */
.swiper-slide .slide-fade-down {
  opacity: 0;
  transform: translate3d(0, -40px, 0); 
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.swiper-slide-active .slide-fade-down {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.4s; 
}

/* FONDAMENTALE: Nasconde il testo mentre entra da fuori schermo */
.swiper-slide {
  overflow: hidden;
}







/* ==========================================================================
   AGGIUNTA: WIDGET RECENSIONE SUCCESSIVA (EFFETTO STICKY CORRETTO)
   ========================================================================== */

/* Forza la colonna della sidebar ad allungarsi per tutta l'altezza dell'articolo */
.col-lg-4.sidebar {
  align-self: stretch !important;
  height: auto !important;
}

/* Contenitore principale del widget */
.sticky-widget {
  background-color: #ffffff;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 6px;
  
  /* Attiva l'effetto "segui e blocca" */
  position: -webkit-sticky; /* Supporto Safari */
  position: sticky;
  
  /* MODIFICATO: Aumentato a 110px per evitare che vada sotto il menu nero fisso */
  top: 110px; 
  
  z-index: 10;
}

/* Titolo del widget */
.sticky-widget .widget-title {
  margin-top: 0;
  color: #ffffff;
  background-color: #444444;
  padding: 10px;
  border-radius: 4px;
}

/* Allineamento della recensione interna */
.sticky-widget .post-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Immagine della recensione */
.sticky-widget .post-item img {
  margin-bottom: 10px;
}

/* Link del titolo */
.sticky-widget .post-item h4 a {
  color: #d9744b;
  text-decoration: none;
  font-weight: bold;
}

/* Dimensione del testo del titolo */
.sticky-widget .post-item h4 span {
  font-size: 17px;
}

/* Pulsante "Torna alle Recensioni" */
.sticky-widget .back-link {
  display: inline-block;
  padding: 5px 10px;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 14px;
}

/* Disattivazione automatica dell'effetto su Smartphone e Tablet */
@media (max-width: 991px) {
  .sticky-widget {
    position: static !important; /* Ritorna nella normale posizione del flusso della pagina */
    margin-top: 30px; /* Spazio visivo di separazione quando va sotto l'articolo */
  }
}







/* ==========================================
   AGGIUNTA: BORDO CHIARO PER IMMAGINI ARROTONDATE 
   ========================================== */

/* Seleziona le immagini che hanno già gli angoli arrotondati */
img[style*="border-radius"], 
img[class*="rounded"],
.box-immagine img,
.gallery img {
    border: 1px solid #666666 !important; /* Bordo bianco pieno di 3 pixel */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Ombra leggera per dare profondità e staccare dallo sfondo */
    box-sizing: border-box; /* Impedisce al bordo di modificare le dimensioni dell'immagine */
    transition: all 0.3s ease-in-out; /* Rende fluido qualsiasi effetto al passaggio del mouse */
}

/* EFFETTO EXTRA ACCATTIVANTE (Opzionale): 
   Quando l'utente passa il mouse sopra, il bordo si illumina leggermente */
img[style*="border-radius"]:hover, 
img[class*="rounded"]:hover,
.box-immagine img:hover,
.gallery img:hover {
    border-color: #f0f0f0 !important; /* Il bianco diventa un grigio chiarissimo lucido */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25); /* L'ombra aumenta, dando l'effetto che la foto si sollevi */
}




/* ========================================================
   AGGIUNTA: BORDO E ARROTONDAMENTO SULL'INTERO BOX RECENSIONE
   ======================================================== */

/* Seleziona l'intero contenitore della recensione */
article.position-relative.h-100 {
    border: 1px solid #666666 !important; /* Il bordo grigio scuro che circonda tutto il box */
    border-radius: 16px !important;       /* Arrotonda gli angoli di tutto il box */
    overflow: hidden !important;          /* Fondamentale: taglia la foto in alto per seguire la curva del box */
    box-sizing: border-box !important;    /* Mantiene le proporzioni corrette del layout */
    transition: transform 0.3s ease, border-color 0.3s ease; /* Transizione fluida per l'animazione */
}

/* Rimuove qualsiasi bordo o arrotondamento isolato dall'immagine */
article.position-relative.h-100 img {
    border: none !important;
    border-radius: 0 !important;
}

/* EFFETTO HOVER: Quando l'utente passa il mouse sopra il box */
article.position-relative.h-100:hover {
    border-color: #888888 !important;     /* Il bordo grigio si schiarisce leggermente */
    transform: translateY(-5px);           /* Il box si solleva di 5px per un effetto moderno e dinamico */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* Aggiunge un'ombra profonda per l'effetto sollevamento */
}




#rocknote-contact-form {
  background-color: #; /* Sfondo bianco del box */
  padding: 40px;             /* Spazio interno tra il bordo e i campi */
  border-radius: 16px;       /* Arrotondamento degli angoli del box */
  border: 1px solid #666666; /* Bordo leggero per definire il box */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05); /* Ombra morbida per dare profondità */
}





/* =======================================================
   1. RIMUOVI IL BORDO DA TUTTE LE PAGINE (PULIZIA TOTALE)
   ======================================================= */
div:has(> .pic), 
[class*="col-"] > div:has(.pic) {
    border: none !important;
    border-radius: 0px !important;
    box-shadow: none !important;
}

/* =======================================================
   2. ATTIVA IL BORDO #666666 SOLO ED ESCLUSIVAMENTE 
      NELLA PAGINA ARTICOLI (STRUTTURA DA CODICE ORIGINALE)
   ======================================================= */
/* Questo selettore si attiva solo se la pagina è l'elenco articoli principale */
body:not(.archivio):not([class*="archivio"]) main .row > [class*="col-md-6"] > div:has(> .pic),
body:not(.archivio):not([class*="archivio"]) main .row > [class*="col-lg-6"] > div:has(> .pic),
.articoli-content .row > div:has(> .pic) {
    border: 1px solid #666666 !important; /* Inserisce il bordo grigio scuro voluto */
    border-radius: 16px !important;         /* Arrotonda gli angoli */
}





/* =======================================================
   EFFETTO SALTO NATIVO CSS PER L'ARCHIVIO DELLE RECENSIONI
   ======================================================= */

/* 1. Prepara tutti i box ad un movimento fluido */
main article.position-relative,
.archivio-page article,
div:has(> .post-img) article {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out !important;
}

/* 2. Applica lo scatto verso l'alto e l'ombra al passaggio del mouse (Hover) */
main article.position-relative:hover,
.archivio-page article:hover,
div:has(> .post-img) article:hover {
    transform: translateY(-6px) !important;               /* Lo stesso identico scatto verticale */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5) !important; /* L'ombra profonda per l'effetto distacco */
}


/* Allinea il titolo a sinistra e l'immagine a destra */
.album-header-destra {
  display: flex;
  justify-content: space-between; /* Spinge il testo tutto a sinistra e la foto tutto a destra */
  align-items: center;            /* Centra verticalmente il titolo rispetto all'altezza della foto */
  gap: 20px;                      /* Crea uno spazio di sicurezza tra il testo e l'immagine */
  margin: 24px 0 12px;
}

/* Evita che l'immagine si deformi e la rende fluida */
.album-header-destra img {
  max-width: 100%;
  height: auto;
}

/* REGOLA PER CELLULARI: sotto i 768px di larghezza rimette gli elementi uno sotto l'altro */
@media (max-width: 768px) {
  .album-header-destra {
    flex-direction: column-reverse; /* Mette la foto sopra e il titolo sotto (o 'column' per il contrario) */
    align-items: flex-start;        /* Allinea tutto a sinistra sui dispositivi mobili */
  }
}




/* Rimpicciolisce il testo solo dentro le citazioni */
blockquote p {
    font-size: 22px !important; /* Più piccolo dei 17px del testo normale */
    font-style: italic;         /* Opzionale: rende il testo in corsivo per differenziarlo */
    color: #555555;             /* Opzionale: un grigio leggermente più scuro/morbido */
}











/* ==========================================================================
   STRUTTURA DEL VELO (VALE PER TUTTE LE COPERTINE)
   ========================================================================== */

/* Contenitore principale del velo */
.interfaccia-velo {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  overflow: hidden !important;
  border-radius: 0.25rem !important; /* Mantiene gli angoli arrotondati della foto */
  padding: 0 !important;
  margin: 0 !important;
  /* AGGIUNTA PER MOBILE: Permette il tocco sui dispositivi touch */
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* L'immagine all'interno del contenitore */
.interfaccia-velo img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  vertical-align: middle !important; /* ELIMINA LO SPAZIO VUOTO SOTTO LA FOTO */
  /* FACOLTATIVO: Se vuoi un leggero zoom fluido dell'immagine quando il velo si apre */
  transition: transform 0.4s ease-in-out !important;
}

/* Il velo nero trasparente (Ancorato al fondo, di base invisibile) */
.interfaccia-velo .velo-comparsa {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 0% !important; /* Parte da zero sul fondo della foto */
  
  /* RIGHE AGGIORNATE: Sfondo calibrato al 55% di opacità */
  background-color: rgba(12, 12, 12, 0.55) !important; 
  
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important; /* BLINDA IL TESTO: Impedisce la fuoriuscita visiva quando è chiuso */
  opacity: 0 !important;
  z-index: 99 !important;
  
  /* OTTIMIZZAZIONE FLUIDITÀ: 'ease-out' rende la transizione iniziale più reattiva e morbida */
  transition: height 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.35s ease-out !important;
  pointer-events: none; /* Impedisce al velo chiuso di intercettare click accidentali */
}



/* ATTIVAZIONE COMPOSITA: Funziona al passaggio del mouse (PC) e al tocco/mantenimento (Mobile) */
.interfaccia-velo:hover .velo-comparsa,
.interfaccia-velo:focus .velo-comparsa,
.interfaccia-velo:active .velo-comparsa {
  height: 100% !important;
  opacity: 1 !important;
  pointer-events: auto !important; /* Riattiva i click sui link interni quando il velo è aperto */
}

/* REGOLA AGGIUNTA: Rende lo zoom fluido sia quando si attiva sia quando si toglie il mouse */
.interfaccia-velo img {
  transition: transform 0.4s ease-in-out !important;
}

/* Effetto zoom POTENZIATO sull'immagine quando il velo è attivo */
.interfaccia-velo:hover img,
.interfaccia-velo:focus img,
.interfaccia-velo:active img {
  transform: scale(1.12) !important; /* Modificato da 1.03 a 1.12 (zoom del 12%) */
}



/* ==========================================================================
   STILE DEL TESTO INTERNO (IDENTICO PER TUTTI I VELI)
   ========================================================================== */

/* Testo della descrizione del velo */
.interfaccia-velo .testo-comparsa {
  color: #ffffff !important;          /* Grigio chiaro sfumato uguale per tutti */
  font-size: 16px !important;          /* Dimensione bloccata in pixel */
  font-weight: 400 !important;         /* Spessore normale */
  text-transform: none !important;     /* Lettere minuscole standard */
  font-style: normal !important;
  white-space: normal !important;      /* Permette al testo di andare a capo */
  text-align: center !important;       /* Centra il testo nella foto */
  line-height: 1.45 !important;        /* Distanza fissa tra le righe */
  padding: 0 12px !important;          /* Cuscinetto di sicurezza sui bordi */
  
  /* AGGIUNTA FLUIDITÀ: Il testo compare con un leggero ritardo e un micro-movimento verso l'alto */
  transform: translateY(10px) !important;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out !important;
  opacity: 0 !important;
}

/* Quando il contenitore si attiva, il testo scivola in posizione corretta */
.interfaccia-velo:hover .testo-comparsa,
.interfaccia-velo:focus .testo-comparsa,
.interfaccia-velo:active .testo-comparsa {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* Il link cliccabile interno ai veli */
.interfaccia-velo .link-recensione-velo,
.interfaccia-velo .testo-comparsa a {
  color: #ff6b6b !important;          /* Colore arancione/rosso rock su tutti i link dei veli */
  font-size: 14px !important;          /* Stessa identica dimensione del testo sopra */
  font-weight: bold !important;        /* In grassetto per evidenziare che è cliccabile */
  text-decoration: underline !important; /* Sottolineato fisso */
  display: inline-block !important;
  margin-top: 8px !important;
  text-transform: none !important;
}

/* Effetto di hover sul link specifico del velo */
.interfaccia-velo .link-recensione-velo:hover,
.interfaccia-velo .testo-comparsa a:hover {
  color: #ffffff !important;          /* Diventa bianco acceso al passaggio del mouse */
}

/* Rimuove ogni possibile margine residuo dal blocco meta */
.interfaccia-velo + .post-meta {
  margin-top: 0 !important;
  padding-top: 0 !important;
}







/* ==========================================================================
   OTTIMIZZAZIONE VELO PER TABLET E SMARTPHONE (AUMENTATO DI 1 PUNTO)
   ========================================================================== */
@media screen and (max-width: 1199px) {
  
  /* TESTO: Configurazione base */
  .interfaccia-velo .testo-comparsa {
    font-size: clamp(15px, 2vw + 9px, 16.5px) !important;
    line-height: 1.35 !important;
    padding: 0 10px !important;
  }

  /* LINK: Configurazione base */
  .interfaccia-velo .link-recensione-velo,
  .interfaccia-velo .testo-comparsa a {
    font-size: clamp(14px, 2vw + 7px, 15px) !important;
    margin-top: 8px !important;
  }
  
  /* FORZATURA CENTRAMENTO VERTICALE ED ELIMINAZIONE SCROLL (DI BASE) */
  .interfaccia-velo .velo-comparsa {
    display: flex !important;
    flex-direction: column !important; 
    justify-content: center !important; 
    align-items: center !important;     
    overflow: hidden !important;
    overflow-y: hidden !important;
    padding: 12px !important;           
  }

  /* 1. FIX ESCLUSIVO SMARTPHONE IN ORIZZONTALE (LANDSCAPE) */
  /* Identifica gli smartphone orizzontali perché hanno un'altezza molto ridotta (sotto i 480px) */
  @media (orientation: landscape) and (max-height: 480px) {
    .interfaccia-velo .testo-comparsa {
      font-size: 15px !important; /* Blocca il font a 15px così non rimpicciolisce */
      line-height: 1.25 !important;
    }
    .interfaccia-velo .link-recensione-velo,
    .interfaccia-velo .testo-comparsa a {
      font-size: 14px !important; /* Blocca il link a 14px */
      margin-top: 5px !important;
    }
    .interfaccia-velo .velo-comparsa {
      justify-content: center !important; /* Forzatura assoluta del centramento verticale */
      align-items: center !important;     /* Forzatura assoluta del centramento orizzontale */
      overflow-y: hidden !important;       /* Rimuove lo scroll */
      padding: 8px !important;
    }
  }

  /* 2. FIX ESCLUSIVO TABLET IN ORIZZONTALE (LANDSCAPE) */
  /* Si attiva solo per i tablet (altezza tra 481px e 850px in landscape) */
  @media (orientation: landscape) and (min-height: 481px) and (max-height: 850px) {
    .interfaccia-velo .testo-comparsa {
      font-size: clamp(12px, 2.5vh + 4px, 14px) !important;
      line-height: 1.2 !important;
      padding: 0 6px !important;
    }
    .interfaccia-velo .link-recensione-velo,
    .interfaccia-velo .testo-comparsa a {
      font-size: clamp(11px, 2vh + 4px, 13px) !important;
      margin-top: 4px !important;
    }
    .interfaccia-velo .velo-comparsa {
      padding: 6px !important; 
      overflow-y: auto !important; 
      justify-content: flex-start !important; 
    }
  }
}









/* ==========================================================================
   ROCKNOTE.IT - CODICE DEFINITIVO FLUID TIPOGRAPHY
   ========================================================================== */

/* 1. Blocca le anomalie di ridimensionamento dei browser mobili */
html, body {
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
}

/* 2. SMARTPHONE: ORIZZONTALE E VERTICALE (AUMENTATO DI UN PUNTO)
   Attivo da 0px a 991px. Qui lo smartphone rimane stabile e protetto. */
@media screen and (max-width: 991px) {
    article p, article li, .blog-content p, .blog-content li, 
    .post-content p, .post-content li, .review-content p, .review-content li {
        font-size: clamp(16px, 1.12rem, 18px) !important; /* Aumentato di un punto */
        line-height: 1.6 !important;
    }
    article strong, .blog-content strong, .post-content strong, .review-content strong {
        font-size: clamp(16px, 1.12rem, 18px) !important; /* Allineato al testo principale */
    }
    article h1, .blog-content h1 { font-size: clamp(25px, 1.7rem, 29px) !important; line-height: 1.2 !important; }
    article h2, .blog-content h2 { font-size: clamp(22px, 1.5rem, 25px) !important; line-height: 1.2 !important; }
    article h3, .blog-content h3 { font-size: clamp(20px, 1.3rem, 22px) !important; line-height: 1.3 !important; }
    article h4, .blog-content h4 { font-size: clamp(18px, 1.12rem, 20px) !important; line-height: 1.3 !important; }
    .menu, .navigation, nav, nav a, header, footer, .album-page, h4 a, ul li a {
        font-size: inherit !important; line-height: inherit !important;
    }
}

/* 3. TABLET FLUIDO: ORIZZONTALE E VERTICALE AUTOREGOLANTI (FONT PROTETTO)
   Attivo da 992px a 1440px. Il font si adatta millimetricamente alla larghezza dello schermo. */
@media screen and (min-width: 992px) and (max-width: 1440px) {
    article p, article li, .blog-content p, .blog-content li, 
    .post-content p, .post-content li, .review-content p, .review-content li {
        font-size: clamp(13px, 0.4vw + 11px, 15px) !important;
        line-height: 1.6 !important;
    }
    article strong, .blog-content strong, .post-content strong, .review-content strong {
        font-size: clamp(13px, 0.4vw + 11px, 15px) !important;
    }
    article h1, .blog-content h1 { font-size: clamp(22px, 1.0vw + 14px, 28px) !important; line-height: 1.2 !important; }
    article h2, .blog-content h2 { font-size: clamp(19px, 0.8vw + 12px, 23px) !important; line-height: 1.2 !important; }
    article h3, .blog-content h3 { font-size: clamp(17px, 0.6vw + 11px, 20px) !important; line-height: 1.3 !important; }
    article h4, .blog-content h4 { font-size: clamp(15px, 0.4vw + 11px, 18px) !important; line-height: 1.3 !important; }
    .menu, .navigation, nav, nav a, header, footer, .album-page, h4 a, ul li a {
        font-size: inherit !important; line-height: inherit !important;
    }
}



/* 1. Blocca i bordi per non far uscire l'immagine durante lo zoom */
.album-crop-box {
  overflow: hidden;
}

/* 2. Rende lo zoom fluido e morbido */
.album-crop-box img {
  transition: transform 0.3s ease;
  display: block; 
  width: 100%;    
  height: auto;
}

/* 3. EFFETTO PERFETTO: Lo zoom si attiva in modo stabile su tutta l'area */
.slider-item:hover .album-crop-box img {
  transform: scale(1.08); 
}







