 /* ========================================
   Compra Vicino — Homepage Stylesheet
   Responsive desktop, tablet and mobile
======================================== */

 /* ---------- Fonts ---------- */
 @import url('https://fonts.googleapis.com/css2?family=Inria+Serif:wght@400;600;700&family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Roboto:wght@400;500;700&display=swap');


 /* ---------- Theme Variables ---------- */
 :root {
     --primary: #FFF9F0;
     --primary-light: #245C3A;
     --primary-dark: #17452B;
     --bg: #FAF9F3;
     --surface: #FFFFFF;
     --text: #202820;
     --text-muted: #6B746B;
     --muted: #6B746B;
     --accent: #E8B65A;
     --border: #E7E4DC;
     --ring: #E8B65A;
     --shadow: 0 8px 24px rgba(36, 92, 58, 0.12);
     --container: 1200px;
 }


 /* ---------- Reset and Base ---------- */
 *,
 *::before,
 *::after {
     box-sizing: border-box;
 }

 html {
     scroll-behavior: smooth;
     scroll-padding-top: 85px;
 }

 body {
     margin: 0;
     font-family: "Plus Jakarta Sans", sans-serif;
     font-size: 15px;
     line-height: 1.6;
     color: var(--text);
     background: var(--primary);
     overflow-x: hidden;
 }

 img {
     display: block;
     max-width: 100%;
 }

 a {
     color: inherit;
     text-decoration: none;
     font-size: 0.90rem !important;
 }

 button,
 input,
 select,
 textarea {
     font: inherit;
     -webkit-tap-highlight-color: transparent;
 }

 button:focus-visible,
 a:focus-visible,
 input:focus-visible,
 select:focus-visible,
 textarea:focus-visible {
     outline: 3px solid var(--ring);
     outline-offset: 3px;
 }

 h1,
 h2,
 h3,
 h4,
 h5,
 h6,
 p {
     margin-top: 0;
 }

 h1,
 h2,
 h3,
 h4,
 h5,
 h6 {
     font-family: "Plus Jakarta Sans", sans-serif;
     color: var(--primary-light);
 }

 h1 {
     font-size: clamp(2.25rem, 4vw, 3rem);
     font-weight: 700;
     line-height: 1.12;
 }

 h2 {
     font-size: clamp(1.25rem, 2.5vw, 2rem);
     font-weight: 600;
     line-height: 1.25;
     margin-bottom: 0.5rem;
 }

 h3 {
     font-size: clamp(1.2rem, 2vw, 1.5rem);
     font-weight: 700;
     line-height: 1.25;
     display: inline;
 }

 h4 {
     font-size: clamp(1.2rem, 2.5vw, 2rem);
     font-weight: 600;
     line-height: 1.25;
     margin-bottom: 2rem;
 }

 p {
     color: var(--text-muted);
     margin: 0.75rem 0;
     font-weight: 500;
     font-size: 0.95rem;
 }

 span {
     font-family: "Roboto", sans-serif;
 }


 /* ========================================
   HEADER
======================================== */

 header {
     position: sticky;
     top: 0;
     z-index: 100;
     background: #FFFFFF;
     border-bottom: 1px solid var(--border);
     box-shadow: 0 2px 12px rgba(48, 35, 30, 0.04);
     color: var(--primary-light);
 }

 .nav {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 24px;
     min-height: 68px;
     color: var(--primary-light);
 }

 .brand {
     display: inline-flex;
     align-items: center;
     gap: 10px;
     flex-shrink: 0;
     font-family: "Inria Serif", Georgia, serif;
     font-size: 1.25rem;
     font-weight: 600;
     color: var(--primary-light);
 }

 .brand:hover {
     color: var(--primary-dark);
 }

 .brand .logo {
     display: flex;
     align-items: center;
     justify-content: center;
     width: 36px;
     height: 36px;
     overflow: hidden;
 }

 .brand .logo img {
     width: 100%;
     height: 100%;
     object-fit: contain;
 }

 /* ---------- Desktop Navigation ---------- */
 #desktopNav {
     display: block;
 }

 #desktopNav ul {
     display: flex;
     align-items: center;
     gap: 8px;
     list-style: none;
     padding: 0;
     margin: 0;
 }

 #desktopNav a {
     display: block;
     padding: 10px 12px;
     border-radius: 8px;
     font-size: 0.95rem;
     color: var(--primary-light);
     font-weight: 600;
     transition: color 0.2s ease, background 0.2s ease;
 }

 #desktopNav a:hover,
 #desktopNav a:focus-visible {
     color: var(--primary-dark);
     background: rgba(36, 92, 58, 0.07);
 }

 .nav-actions {
     display: flex;
     align-items: center;
     gap: 12px;
 }

 /* ---------- Find Us Button ---------- */
 .find_us-button {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     min-height: 42px;
     padding: 10px 20px;
     border: 1px solid var(--primary-light);
     border-radius: 24px;
     color: var(--primary-light);
     font-weight: 700;
     transition: background 0.2s ease, transform 0.2s ease;
 }

 .find_us-button:hover {
     background: #FFFFFF;
     color: #FFFFFF;
     transform: translateY(-1px);
 }

 .fa-cart-shopping {
     font-size: 24px;
     color: #245C3A;
     cursor: pointer;
     transition: color 0.3s ease, transform 0.3s ease;
 }

 .fa-cart-shopping:hover {
     color: #E8B65A;
     transform: scale(1.1);
 }

 /* ---------- Mobile Menu Button ---------- */
 .hamburger {
     display: none;
     align-items: center;
     justify-content: center;
     width: 42px;
     height: 42px;
     border: 1px solid var(--border);
     border-radius: 8px;
     background: var(--surface);
     color: var(--primary-light);
     cursor: pointer;
     font-size: 21px;
 }

 /* ---------- Mobile Navigation ---------- */
 .mobile-menu {
     position: absolute;
     top: 100%;
     left: 0;
     right: 0;
     z-index: 100;
     flex-direction: column;
     padding: 10px 24px;
     background: var(--surface);
     border-bottom: 1px solid var(--border);
     box-shadow: var(--shadow);
 }

 .mobile-menu[hidden] {
     display: none !important;
 }

 .mobile-menu:not([hidden]) {
     display: flex;
 }

 .mobile-menu a {
     display: block;
     padding: 13px 8px;
     color: var(--text);
     border-bottom: 1px solid var(--border);
 }

 .mobile-menu a:last-child {
     border-bottom: 0;
 }

 .mobile-menu a:hover {
     color: var(--primary-light);
     background: rgba(36, 92, 58, 0.05);
 }

 /* ========================================
   PRODUCT SECTION
======================================== */

 .container {
     width: min(100% - 40px, var(--container));
     margin-inline: auto;
 }

 .container.mt-4 {
     display: grid;
     grid-template-columns: 22% minmax(0, 1fr);
     gap: 30px;
     align-items: start;
     width: 100%;
     max-width: 1200px;
     margin: 0 auto;
     padding: 30px 20px;
     box-sizing: border-box;
 }

 /* Menu Laterale */

 .sidebar-menu {
     background-color: var(--bg-card);
     border-right: 1px solid var(--border-color);
 }

 .sidebar-header h2 {
     font-size: 1.25rem;
     margin-bottom: 1.5rem;
 }

 .menu-categories {
     list-style: none;
     margin-bottom: 2rem;
 }

 .menu-categories li a {
     display: block;
     padding: 0.75rem 1rem;
     color: #555;
     text-decoration: none;
     border-radius: 6px;
     margin-bottom: 0.25rem;
     transition: all 0.2s ease;
 }

 .menu-categories li a:hover,
 .menu-categories li a.active {
     background-color: #eff6ff;
     color: var(--primary-light);
     font-weight: 600;
 }

 .filter-group h3 {
     font-size: 1rem;
     margin-bottom: 0.75rem;
 }

 .filter-group label {
     display: flex;
     align-items: center;
     gap: 0.5rem;
         margin: 0.5rem;
     cursor: pointer;
     font-size: 0.9rem;
     padding: 0rem 1.3rem;
 }

.distance-filters {
     margin:10px;
 }

 .distance-filters h3 {
     font-size: 1rem;
     margin-bottom: 0.75rem;
 }

.distance-filters label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    font-size: 0.9rem;
}

 /* ----- Main Content Area ----- */

 .main-content {
     padding: 2rem;
 }

 .content-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 2rem;
 }

 /* ---------- Original Product Grid ---------- */

 .projects-grid {
     display: grid;
     grid-template-columns: repeat(3, minmax(0, 1fr));
     gap: 20px;
     width: 100%;
     min-width: 0;
     padding-inline: 20px;
 }

 /* ---------- Product Cards ---------- */
 .card {
     display: flex;
     flex-direction: column;
     width: 100%;
     min-width: 0;
     height: auto;
     margin: 0 0 10px;
     overflow: hidden;
     border: none !important;
     background: var(--surface);
     box-shadow: 0 4px 14px rgba(53, 32, 25, 0.05);
     transition: transform 0.25s ease, box-shadow 0.25s ease;
 }

 .card:hover {
     transform: translateY(-4px);
     box-shadow: var(--shadow);
 }

 /* ---------- Product Images ---------- */
 .thumb {
     display: block;
     width: 100%;
     height: 220px;
     overflow: hidden;
     background: #E8D8C3;
 }

 .thumb img {
     width: 100%;
     height: 100%;
     object-fit: contain;
     transition: transform 0.35s ease;
     background-image: url("../img/shop_ placeholder.webp");
     background-size: cover;
     background-position: center;
     background-repeat: no-repeat;
     transform: scale(2.0);
 }

 /* ---------- Card Body ---------- */
 .card-body {
     display: flex;
     flex: 1;
     flex-direction: column;
     padding: 14px 15px;
 }

 .card-body h2,
 .card-body h3 {
     margin: 0 0 6px;
     color: var(--text);
     font-size: 1rem;
     line-height: 1.35;
     font-weight: 800;
 }

 .tag {
     display: inline-block;
     color: var(--text-muted);
     font-size: 0.85rem;
 }

 .price-tag {
     font-size: 26px;
     font-weight: 900;
     color: #17452B;
     background: transparent;
     padding: 0;
     letter-spacing: -1px;
 }

 /* ---------- Card Footer ---------- */
 .card-footer {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 8px;
     border: 0;
     padding: 0 !important;
     margin-top: auto;
 }

 .card-footer span {
     font-size: 0.9rem;
 }

 .card-footer strong {
     color: var(--primary-light);
     font-size: 1rem;
 }

 .card-footer a {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
     width: 36px;
     height: 36px;
     border: 1px solid var(--primary-light);
     border-radius: 50%;
     background: var(--primary-light);
     color: #FFFFFF;
     font-size: 1.05rem;
     transition: background 0.2s ease, color 0.2s ease;
 }

 .card-footer a:hover {
     background: var(--surface);
     color: var(--primary-light);
 }

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

 .site-footer {
     background-color: #245C3A;
     color: #F5EEE4;
     padding: 32px 0 20px;
     font-family: "Inter", sans-serif;
 }

 .footer-container {
     max-width: 1200px;
 }

 /* ---------- Footer Top ---------- */
 .footer-top {
     display: grid;
     grid-template-columns: 1.5fr 0.7fr 1fr;
     gap: 40px;
     padding-bottom: 28px;
     align-items: start;
 }

 /* ---------- Footer Brand ---------- */
 .footer-logo {
     display: inline-block;
     color: #F5EEE4;
     font-size: 25px !important;
     line-height: 1.20;
     text-decoration: none;
     letter-spacing: 1px;
     margin-bottom: 12px;
 }

 .footer-brand p {
     color: #D2C5B5;
     font-size: 13px;
     line-height: 1.6;
     margin: 0;
 }

 /* ---------- Footer Navigation ---------- */
 .footer-nav {
     display: flex;
     flex-direction: column;
     gap: 7px;
 }

 .footer-nav a {
     color: #E7DDD0;
     font-size: 12px;
     text-decoration: none;
     transition: color 0.2s ease;
 }

 .footer-nav a:hover {
     color: #D9A66F;
 }

 /* ---------- Footer Social Media ---------- */
 .footer-social {
     border-left: 1px solid rgba(255, 255, 255, 0.65);
     padding-left: 40px;
     min-height: 100px;
 }

 .footer-social h3 {
     font-size: 12px;
     font-weight: 600;
     margin: 0 0 18px;
     color: #F5EEE4;
 }

 .social-links {
     display: flex;
     align-items: center;
     gap: 16px;
 }

 .social-links a {
     display: inline-flex;
     color: #F5EEE4;
     transition: color 0.2s ease, transform 0.2s ease;
 }

 .social-links a:hover {
     color: #D9A66F;
     transform: translateY(-2px);
 }

 /* ---------- Footer Bottom ---------- */
 .footer-bottom {
     display: flex;
     justify-content: space-between;
     align-items: center;
     gap: 16px;
     border-top: 1px solid rgba(255, 255, 255, 0.65);
     padding-top: 18px;
 }

 .footer-bottom p {
     color: #D2C5B5;
     font-size: 11px;
     margin: 0;
 }

 /* ========================================
   TABLET LAYOUT
======================================== */

 @media (max-width: 1020px) {

     .projects-grid,
     .projects-grid-expandable {
         grid-template-columns: repeat(2, minmax(0, 1fr));
         gap: 18px;
     }

     .projects-grid {
         padding-inline: 16px;
     }

     .thumb {
         height: 190px;
     }
 }

 /* ========================================
   MOBILE NAVIGATION
======================================== */

 @media (max-width: 900px) {

     .nav {
         min-height: 64px;
     }

     #desktopNav {
         display: none;
     }

     .hamburger {
         display: inline-flex;
     }

     .nav-actions {
         gap: 8px;
     }
 }

 @media (max-width: 900px) {
     .hero .wrap {
         grid-template-columns: 1fr;
     }

     .view-grid {
         grid-template-columns: 1fr;
         margin-bottom: 20px;
     }

     .viewBox {
         justify-self: center
     }

     .portrait {
         justify-self: center
     }
 }

 @media (max-width: 769px) {
     .container.mt-4 {
         display: grid;
         grid-template-columns: 30% minmax(0, 1fr);
     }

   .distance-filters {
       margin:0px;
     }
 }

 /* ========================================
   MOBILE LAYOUT
======================================== */

 @media (max-width: 600px) {

     .custom-width {
         width: 100% !important;
         margin-left: 0px !important;
     }

     .container {
         width: min(100% - 24px, var(--container));
     }

     .container.mt-4 {
         display: grid;
         gap: 30px;
         margin: 0 auto;
         grid-template-columns: repeat(1, minmax(0, 1fr));
     }

     .projects-grid {
         padding-inline: 16px;
         grid-template-columns: repeat(1, minmax(0, 1fr));
     }

     .sidebar-menu {
         grid-template-columns: repeat(1, minmax(0, 1fr));
         display: grid;
     }

     .distance-filters {
       margin:0px;
     }

    .distance-filters label {
      padding-bottom: 16px;
   }

     /* Footer */
     .site-footer {
         padding: 28px 0 18px;
     }

     .footer-top {
         grid-template-columns: 1fr 1fr;
         gap: 28px 20px;
     }

     .footer-brand {
         grid-column: 1 / -1;
     }

     .footer-social {
         padding-left: 20px;
     }

     .footer-bottom {
         flex-direction: column;
         align-items: flex-start;
         gap: 10px;
     }

     /* Header */
     .brand {
         gap: 7px;
         font-size: 1.1rem;
     }

     .brand .logo {
         width: 31px;
         height: 31px;
     }

     .find_us-button {
         display: none;
     }

     /* Cards */
     .card {
         margin-bottom: 8px;
         border-radius: 14px;
     }

     .thumb {
         height: 145px;
         border-radius: 14px;
     }

     .card-body {
         padding: 10px;
     }

     .card-body h2,
     .card-body h3 {
         font-size: 0.95rem;
         line-height: 1.3;
     }

     .card-footer {
         font-size: 0.85rem;
     }

     .card-footer a {
         width: 32px;
         height: 32px;
     }
 }

 /* ========================================
   VERY SMALL MOBILE SCREENS
======================================== */

 @media (max-width: 380px) {

     .projects-grid,
     .projects-grid-expandable {
         grid-template-columns: 1fr;
     }

     .projects-grid {
         padding-inline: 12px;
     }

     .thumb {
         height: 200px;
     }

     .hero-text-background {
         padding: 20px !important;
     }
 }

 /* ========================================
   REDUCED MOTION ACCESSIBILITY
======================================== */

 @media (prefers-reduced-motion: reduce) {

     *,
     *::before,
     *::after {
         scroll-behavior: auto !important;
         transition-duration: 0.01ms !important;
         animation-duration: 0.01ms !important;
         animation-iteration-count: 1 !important;
     }

 }