/*
    Theme Name: Travel Eat
    Theme URI:   https://presscommtech.com
    Author:      Matteo Magnani
    Author URI:  https://presscommtech.com
    Description: Un tema WordPress professionale strutturato, leggibile e multilingua.
    Version:     1.0.0Text 
    Domain: travel-eat
    Domain Path: /languages
*/

*{
  font-family: 'Roboto', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  color: #333;
  background: #EFECE9;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.site-header {
  background: #BD0825;
  padding: 20px 0;
  display: flex;
  align-items: center;
  padding-top: 15px;
  padding-bottom: 0;
  margin-bottom: 30px;
  z-index: 2;
  position: relative;
}

.entry-header {
  margin-bottom: 20px;
}
.search-results-title {
  color: #1e3a8a;
  margin-bottom: 40px;
}
article {
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
}

/* Archive Layout */
.archive-wrapper {
  display: flex;
  gap: 40px;
}

.archive-content {
  flex: 1;
  min-width: 0;
}

.archive-sidebar {
  width: 300px;
  flex-shrink: 0;
}

.archive-sidebar .widget {
  background: #fff;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.archive-sidebar .widget-title {
  margin: 0 0 15px;
  font-size: 18px;
  font-weight: 600;
  color: #111;
  border-bottom: 2px solid #BD0825;
  padding-bottom: 10px;
}

.archive-sidebar .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-sidebar .widget li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.archive-sidebar .widget li:last-child {
  border-bottom: none;
}

.archive-sidebar .widget a {
  color: #BD0825;
  text-decoration: none;
  transition: color 0.3s ease;
}

.archive-sidebar .widget a:hover {
  color: #97061E;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .archive-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  
  .archive-sidebar {
    width: 100%;
  }
}

header .container {
  max-width: unset;
  margin: 0;
  padding: 0;
  width: 100%;
}

.site-logo img{
  max-width: 365px;
}

.site-branding {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu#primary-menu {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
  height: 50px;
  margin-top: 0;
  flex: 1;
}

.main-navigation{
  background: #97061E;
  display: flex;
  align-items: center;
  flex: 1;
}

.navigation-sidebar{
  display: flex;
  gap: 10px;
  align-items: center;
  padding-right: 20px;
  margin-left: auto;
}

.nav-widget{
  display: flex;
  align-items: center;
}

.nav-widget form{
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0;
}

.nav-widget input[type="search"],
.nav-widget input[type="text"]{
  padding: 6px 10px;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  width: 70%;
  border: 2px solid #97061E;
  border-radius: 20px;
  height: 25px;
}

.search-field{
  width: 80%;
  display: flex;
  justify-content: center;
}

.nav-widget input[type="submit"],
.nav-widget button{
  padding: 6px 12px;
  background: #BD0825;
  color: #fff;
  border: none;
  padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(189, 8, 37, 0.3);
}

.nav-widget input[type="submit"]:hover,
.nav-widget button:hover{
  background: #97061E;
}

.nav-widget ul{
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-widget li a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #BD0825;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.nav-widget li a:hover{
  background: #FFF;
  color: #BD0825;
}

.menu#primary-menu li{
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.menu#primary-menu li a{
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
}

.menu#primary-menu li.active{
  background: #BD0825;
}

.page-title{
  color: #000;
  font-size: 120%;
  font-weight: 700;
  font-size: 19px;
}
main.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  flex-direction: column;
}

.single main.container{
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 40px;
}

.single .single-sidebar{
  max-width: 300px;
}

.post-list{
  column-count: 3;
  column-gap: 20px;
}

.news-list-item{
  display: inline-block;
  width: 100%;
  margin: 0 0 30px;
  overflow: hidden;
  background: #FFF;
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.08);
  position: relative;
  border-radius: 18px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
}

.news-list-item .post-details{
  padding: 20px;
  position: relative;
}

.news-list-item .post-details h2{
  margin: 0;
  text-decoration: none;
  color: #000;
  font-weight: 400;
  font-size: 19px;
}

a{
  text-decoration: none !important;
}

.news-list-item .post-details h2 a{
  color: #000;
  transition: all 0.3s ease;
}

.news-list-item .post-details h2 a:hover{
  color: #D15459;
}

.post .post-thumbnail{
  width: 100%;
}

.post-thumbnail{
  position: relative;
}

.post-thumbnail img{
  width: 100%;
  height: auto;
  overflow: hidden;
  display: block;
}

.post-category a{
  color: #D15459;
  font-weight: 400;
  text-decoration: none;
}

.post-category{
  font-size: 13px;
  position: absolute;
  bottom: 0px;
  left: 0px;
  padding: 7px 12px;
  background: #EFECE9;
  color: #D15459;
  font-weight: 400;
  text-transform: uppercase;
}

.button-details{
  position: absolute;
    display: flex;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: #D15459;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #FFF;
    font-weight: 400;
    text-decoration: none;
    top: -20px;
    right: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.button-details:hover{
  background: #EFECE9;
  color: #D15459;
  text-decoration: none;
}

.news-list-item h2 a{
  transition: all 0.3s ease;
}

.news-list-item:hover h2 a{
  color: #D15459;
  cursor: pointer;
}

.news-list-item .post-thumbnail{
  overflow: hidden;
}

.news-list-item .post-thumbnail img{
  transition: all 0.3s ease;
}

.news-list-item:hover .post-thumbnail img{
  transform: scale(1.05);
}

/* Load More Button */
.load-more-container {
  text-align: center;
  margin: 40px 0;
}

.load-more-btn {
  background: #BD0825;
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(189, 8, 37, 0.3);
}

.load-more-btn:hover {
  background: #97061E;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(189, 8, 37, 0.4);
}

.load-more-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#navigation-widgets, #navigation-widgets a {
  color: #fff;
}


#navigation-widgets a:hover{
  opacity: 0.8;
  transition: all 0.3s ease;
}

/* Advanced Search Styles */
.search-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #BD0825;
  color: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.search-toggle:hover {
  background: #97061E;
  transform: scale(1.1);
}

.advanced-search-panel {
  background: #fff;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid #e0e0e0;
  position: absolute;
  top: 139px;
  left: 0;
  z-index: 1;
  width: calc(100% - 40px);
}

.advanced-search-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.search-field input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.search-field input:focus {
  outline: none;
  border-color: #BD0825;
}

.date-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.date-field {
  flex: 1;
  min-width: 120px;
}

.date-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.date-field input {
  width: 100%;
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.date-field input:focus {
  outline: none;
  border-color: #BD0825;
}

.category-field,
.author-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.category-field label,
.author-field label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.category-field select,
.author-field select,
.author-field input {
  padding: 10px;
  border: 2px solid #97061E;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  border-radius: 20px;
}

.category-field select:focus,
.author-field select:focus,
.author-field input:focus {
  outline: none;
  border-color: #BD0825;
}

.search-submit {
  text-align: center;
  margin-top: 10px;
}

.search-button {
  background: #BD0825;
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(189, 8, 37, 0.3);
}

.search-button:hover {
  background: #97061E;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(189, 8, 37, 0.4);
}

/* Search Results Page Styles */
.search-results .applied-filters {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 30px;
}

.search-results .applied-filters h3 {
  margin: 0 0 10px 0;
  color: #495057;
  font-size: 16px;
}

.search-results .applied-filters ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-results .applied-filters li {
  background: #BD0825;
  color: #fff;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 14px;
}

.search-results .news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.search-results .post-meta {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: #6c757d;
  margin-top: 10px;
  justify-content: space-between;
}

.search-results .post-meta .post-date:before {
  /* content: "📅 "; */
}

.search-results .post-meta .post-author:before {
  /* content: "👤 "; */
}

.search-results .nav-links{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.search-results .nav-links .page-numbers{
  background: #BD0825;
  color: #fff;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  aspect-ratio: 1;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.08);
}

.search-results .nav-links .page-numbers.dots{
  background: none;
  box-shadow: none;
  color: #BD0825;
}

.search-results .nav-links .page-numbers:hover, .search-results .nav-links .page-numbers.current{
  background: #fff;
  color: #BD0825;
}

.single-content{
  margin-top: 20px;
  max-width: calc(100% - 340px);
}

.single-content .entry-header span{
  text-transform: uppercase;
}

.single-content .entry-header span a{
  color: #000;
}

.single-content .entry-header{
  color: #000;
  font-size: 120%;
  font-weight: 700;
}

.entry-header h1 {
    font-size: 32px;
    color: #000;
    font-weight: 700;
    margin-bottom: 15px;
}

.entry-excerpt {
    font-size: 18px;
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.share{
  display: flex;
  gap: 15px;
  border: 2px solid #000;
  width: fit-content;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  align-items: center;
  transition: all 0.3s ease;  
}

.entry-footer{
  width: fit-content;
  font-weight: 700;
  float: right;
  margin-top: 20px;
  display: flex;
  gap: 5px;  
  align-items: center;
}

.share:hover{
  background: #000;
  color: #fff;
}

.entry-thumbnail{
  display: flex;
    justify-content: center;
}

/* Category Posts Widget Styles */
.category-posts-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 15px;
}

.category-post-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #eee;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.08);
}

.category-post-item:last-child {
    border-bottom: none;
}

.category-post-title {
    margin: 0 0 10px 0;
    font-size: 17px;
    line-height: 1.3;
}

.category-post-title a {
    color: #000 !important;
    font-weight: 600;
}

.category-post-thumb img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin-bottom: 10px;
}

.category-post-date {
    font-size: 13px;
    color: #666;
}

.category-post-excerpt {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 8px;
    color: #444;
}

.category-link-container {
    margin-top: 20px;
    text-align: center;
}

.category-button {
    background: #BD0825;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    display: inline-block;
    transition: background 0.3s ease;
    text-transform: uppercase;
    font-size: 13px;
}

.category-button:hover {
    background: #97061E;
    box-shadow: 0 4px 10px rgba(189, 8, 37, 0.2);
}

/* Footer Menu Styles */
.footer-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.footer-navigation li {
    display: flex;
    align-items: center;
}

.footer-navigation li::after {
    content: "/";
    color: #BD0825;
    margin: 0 15px;
    font-weight: 700;
}

.footer-navigation li:last-child::after {
    content: none;
}

.footer-navigation a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.footer-navigation a:hover {
    opacity: 0.7;
}

.post img{
  max-width: 100%;
  height: auto;
}

footer .site-info{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.site-footer a{
  color: #666;
  text-decoration: none;
  font-weight: 400;
  font-size: 18px;
  text-transform: uppercase;
}

footer .site-info a{
  color: #666;
  text-decoration: none;
  font-weight: 400;
  font-size: 14px;
  text-transform: none;
}

.site-footer{
  background: #EFECE9;
  padding: 40px 0;
  margin-top: 60px;
  color: #666;
}

.gallery{
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: flex-start;
  gap: 15px;
}

.gallery .gallery-item{
  margin: 0;
} 

/* Stili per la Lightbox Gallery */
.lightbox-modal {
    display: none; /* Gestito via JS fadeIn/fadeOut */
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    user-select: none;
    border: 3px solid #fff;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: #BD0825; /* Colore del tema */
}

.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 20px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s ease;
    user-select: none;
    background-color: rgba(0,0,0,0.2);
    text-decoration: none;
}

.lightbox-prev { left: 10px; border-radius: 0 5px 5px 0; }
.lightbox-next { right: 10px; border-radius: 5px 0 0 5px; }

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(0,0,0,0.8);
    color: #BD0825;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    color: #fff;
    font-size: 16px;
    background: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

.hp-widget-slot{
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.category-post-item h4 a{
  transition: color 0.3s ease;
}

.category-post-item:hover h4 a{
  color: #D15459 !important;
}

.category-post-item img{
  transition: all 0.3s ease;
  overflow: hidden;
}

.category-post-item:hover img{
  transform: scale(1.05);
}

.category-post-item .category-post-thumb{
  overflow: hidden;
  border-radius: 12px;
}

footer .footerSocial{
  display: none;
}


.rwd-video iframe{
  width: 100% !important;
  height: auto;
  aspect-ratio: 16/9 !important;
}

.homepage.menu-item a{
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  font-size: 0 !important;
}

.homepage a::before{
  content: url("img/home.svg");
  color: #fff;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error404 .page-header{
  text-align: center;
}

.error404 .page-header h1.page-title{
  font-size: 128px;
  color: #97061E;
}

.error404 .page-content{
  text-align: center;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
  .advanced-search-panel {
    padding: 15px;
    width: calc(100% - 30px);
  }

  .date-filters {
    flex-direction: column;
    gap: 15px;
  }

  .date-field {
    min-width: unset;
  }

  .search-results .news-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .search-results .applied-filters ul {
    flex-direction: column;
  }

  .search-results .applied-filters li {
    text-align: center;
  }

  .menu#primary-menu li{
    width: max-content;
  }

  .socialTop{
    display: none;
  }

  /* Archive and Home Layout */
  .home main.container, .category main.container, .archive main.container, .blog main.container{
    flex-wrap: no-wrap;
  }

  .home main.container .post-list, .archive-content .post-list, .blog main.container .post-list{
    column-count: 1;
  }

  .main-navigation{
    max-width: 100%;
    overflow-x: scroll;
  }

  /* Stile quando il menu diventa fisso */
  .main-navigation.is-sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #97061E; /* Mantieni il colore scuro */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  /* Quando il pannello ricerca deve seguire il menu sticky */
  .advanced-search-panel.panel-sticky {
    position: fixed !important;
    top: 50px; /* Altezza del tuo menu .main-navigation */
    left: 0;
    width: 100%; /* Copre tutta la larghezza */
    z-index: 9998;
    /* Rimuoviamo eventuali margini che potrebbero spostarlo */
    margin: 0;
  }

  /* Fix per mobile: se lo scroll orizzontale è attivo nel menu */
  @media (max-width: 768px) {
    .main-navigation.is-sticky {
      overflow-x: auto;
    }
  }

  /* Single */

  .single main.container{
    flex-direction: column;
  }

  .single-content, .single .single-sidebar{
    max-width: 100%;
  }

  .single-content img{
    width: 100%;
    height: auto;
  }

  .single-content .gallery {
    margin: 40px 0;
  }

  .gallery .gallery-item{
    width: calc( 50% - 8px );
  }

  /*Footer*/

  footer.site-footer{
    margin-top: 0;
  }

  footer .site-info{
    flex-direction: column;
    gap: 0;
  }

  footer .site-info p{
    text-align: center;
  }

  footer .footerSocial{
    display: flex;
    margin-top: 14px;
    gap: 20px;
  }
}