 /* ========================================
   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;
 }

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


 /* ========================================
   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);
 }


 /* ========================================
   HERO SECTION
======================================== */

 .hero-content {
     position: relative;
     display: flex;
     align-items: center;
     min-height: 600px;
     padding: 60px 0;
     overflow: hidden;
     background-image: url("../img/hero_background_compra_vicino.webp");
     background-size: cover;
     background-position: center;
     background-repeat: no-repeat;
     color: #064E3B;
 }

 .hero-text-background {
     width: min(50%, 620px);
     margin-left: max(20px, calc((100% - var(--container)) / 2));
     padding: 3rem !important;
     background-color: rgba(255, 249, 240, 0.9);
     border-radius: 32px;
 }

 .hero-content h1 {
     font-size: clamp(2.2rem, 5vw, 3.5rem);
     font-weight: 700;
     color: #064E3B;
 }

 .hero-content p {
     font-size: 1.1rem;
     max-width: 600px;
 }

 .btn {
     border-radius: 30px !important;
 }


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

 /* ---------- Original Product Grid ---------- */
 .projects-grid {
     display: grid;
     grid-template-columns: repeat(5, minmax(0, 1fr));
     gap: 20px;
     width: 100%;
     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;
     border-radius: 20px;
     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;
     border-radius: 20px;
 }

 .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);
 }


 /* ========================================
   EXPAND BUTTON
======================================== */

 .expand-wrapper {
     display: block;
     justify-content: center;
     width: 100%;
     margin: 20px 0;
 }

 .expand-btn {
     display: block;
     justify-content: center;
     padding: 5px 30px;
     border: none;
     border-radius: 10px;
     color: #ffff;
     font-size: 12px;
     font-weight: 700;
     cursor: pointer;
     transition: background 0.2s ease, transform 0.2s ease;
     float: inline-end;
     background: #198754;
     margin: 15px;
 }


 .expand-btn:focus-visible {
     outline: 3px solid var(--ring);
     outline-offset: 3px;
 }


 /* ========================================
   EXPANDABLE CONTENT
======================================== */

 .containerTab {
     width: 100%;
     padding: 20px;
     margin-top: 10px;
     background: #F5F5F5;
     border-radius: 12px;
     animation: expandRow 0.3s ease;
 }

 /* Respect the HTML hidden attribute */
 .containerTab[hidden] {
     display: none !important;
 }

 .containerTab:not([hidden]) {
     display: block;
 }


 /* ---------- Expanded Product Grid ---------- */
 .projects-grid-expandable {
     display: grid;
     grid-template-columns: repeat(5, minmax(0, 1fr));
     gap: 20px;
     width: 100%;
     padding: 0;
 }


 /* ---------- Expand Animation ---------- */
 @keyframes expandRow {
     from {
         opacity: 0;
         transform: translateY(-5px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }


 /* ----- La Nostra Idea Page -----*/

 /* ---------- Hero ---------- */
 .hero {
     position: relative;
     overflow: hidden
 }

 .hero::before {
     content: "";
     position: absolute;
     inset: -20% -10% auto -10%;
     height: 70%;
     background: radial-gradient(1200px 500px at 80% 0%, color-mix(in oklab, var(--primary) 16%, transparent) 0%, transparent 70%)
 }

 .hero .wrap {
     display: grid;
     gap: 40px;
     align-items: center;
     grid-template-columns: 1.2fr .9fr
 }

 .hero p {
     font-size: 1.1rem
 }

 .hero-ctas {
     display: flex;
     gap: 12px;
     flex-wrap: wrap;
     margin-top: 10px
 }

 /*------ View Box Section-----*/

 .view-grid {
     display: grid;
     gap: 10px;
     align-items: flex-start;
     grid-template-columns: 1.2fr .9fr;
 }


 .portrait {
     justify-self: end;
     position: relative;
     width: min(420px, 90%);
     aspect-ratio: 1;
     box-shadow: var(--shadow);
 }

 .portrait img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     border-radius: 15px;
 }

 .app img {
     object-fit: contain;
 }

 /*----- FORM PART ---- */

 /* CONTACT FORM */
 #contactForm {
     width: 100%;
     max-width: 600px;
     margin: 30px auto;
     padding: 30px;
     background: #ffffff;
     border-radius: 14px;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
     display: flex;
     flex-direction: column;
     gap: 12px;
     box-sizing: border-box;
 }

 /* LABELS */
 #contactForm label {
     font-size: 14px;
     font-weight: 600;
     color: #245A38;
     margin-top: 8px;
 }

 /* INPUTS */
 #contactForm input,
 #contactForm textarea {
     width: 100%;
     padding: 13px 15px;
     border: 1px solid #dedede;
     border-radius: 8px;
     background: #fff;
     font-family: inherit;
     font-size: 15px;
     color: #444;
     box-sizing: border-box;
     transition: all 0.2s ease;
 }

 /* PLACEHOLDER */
 #contactForm input::placeholder,
 #contactForm textarea::placeholder {
     color: #aaa;
 }

 /* FOCUS */
 #contactForm input:focus,
 #contactForm textarea:focus {
     outline: none;
     border-color: #28633f;
     box-shadow: 0 0 0 3px rgba(40, 99, 63, 0.10);
 }

 /* TEXTAREA */
 #contactForm textarea {
     min-height: 140px;
     resize: vertical;
 }

 /* SUBMIT BUTTON */
 #contactForm button {
     width: 100%;
     padding: 14px;
     margin-top: 15px;
     border: none;
     border-radius: 8px;
     background: #28633f;
     color: white;
     font-size: 16px;
     font-weight: 600;
     cursor: pointer;
     transition: 0.3s ease;
 }

 #contactForm button:hover {
     background: #1d492e;
     transform: translateY(-2px);
 }


 @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
     }
 }

 /* ========================================
   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;
     }

     .hero-content {
         padding-inline: 32px;
     }

     .hero-text-background {
         width: min(70%, 620px);
         margin-left: 0;
     }

     .thumb {
         height: 190px;
     }
 }


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

 @media (max-width: 900px) {

     .nav {
         min-height: 64px;
     }

     #desktopNav {
         display: none;
     }

     .hamburger {
         display: inline-flex;
     }

     .nav-actions {
         gap: 8px;
     }

     .custom-width {
         width: 100% !important;
     }
 }


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

 @media (max-width: 600px) {

     h3 {
         font-size: clamp(1rem, 2vw, 1.5rem);
     }

     .btn {
         display: block;
     }

     .hero-content p {
         padding: 15px;
     }

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

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

     /* 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;
     }

     /* Hero */
     .hero-content {
         min-height: 460px;
         padding: 40px 12px;
         background-position: center;
     }

     .hero-text-background {
         width: 100%;
         margin: 0;
         padding: 24px !important;
         border-radius: 22px;
     }

     .hero-content h1 {
         font-size: clamp(2rem, 8vw, 2.7rem);
         padding: 10px;

     }

     /* Original Product Grid */
     .projects-grid {
         grid-template-columns: repeat(2, minmax(0, 1fr));
         gap: 12px;
         padding-inline: 8px;
     }

     /* Expanded Product Grid */
     .projects-grid-expandable {
         grid-template-columns: repeat(2, minmax(0, 1fr));
         gap: 12px;
     }

     /* 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;
     }

     /* Expandable Content */
     .containerTab {
         padding: 10px;
         margin-top: 10px;
         border-radius: 12px;
     }

     /* Expand Button */
     .expand-wrapper {
         margin: 15px 0;
     }

     .expand-btn {
         max-width: 130px;
         min-height: 35px;
         font-size: 14px;
     }

     /* Form */

     #contactForm {
         padding: 20px;
     }
 }


 /* ========================================
   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;
     }

 }