/* =========================
   Francesca Delightfood - style.css (clean + food premium + products luxury)
   ========================= */

/* ----- Base ----- */
body{
  margin:0;
  font-family:'Inter', sans-serif;
  color:#1f2933;
  background:#f7f4ed; /* crema caldo globale */
}

section{
  padding:40px 10%;
}

/* ----- Logo / header utils ----- */
.logo{
  font-size:1.2rem;
  font-weight:100;
  letter-spacing:.04em;
}

.simple-header{ margin-left:50px; }

/* =========================
   HERO
   ========================= */
.hero{
  position:relative;
  background-image:url("../img/hero.webp");
  background-size:cover;
  background-repeat:no-repeat;
  background-position:center center;

  color:#fff;

  max-width:1200px;
  margin:40px auto 0;
  border-radius:12px;
  overflow:hidden;

  min-height:520px;
  display:flex;
  flex-direction:column;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    120deg,
    rgba(20, 35, 25, 0.35),   /* verde oliva soft */
    rgba(20, 35, 25, 0.15)
  );
}

.hero-content{
  position:relative;
  z-index:2;
  padding:60px 80px;
  max-width:600px;
}

.hero h1{
  font-size:clamp(2.4rem, 5vw, 3.4rem);
  line-height:1.1;
  font-weight:700;
  text-shadow:0 4px 14px rgba(0,0,0,0.35);
}

.hero p{
  font-size:1.05rem;
  line-height:1.6;
  max-width:600px;
  color:rgba(255,255,255,0.95);
  text-shadow:0 2px 8px rgba(0,0,0,0.25);
}

/* =========================
   NAV (HOME)
   ========================= */
.top-nav{
  display:flex;
  align-items:center;
  gap:16px;
  padding:22px 10%;
  position:relative;
  z-index:3;
}

.logo-wrap{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

.logo img{
  height:100px;
}

.tagline{
  font-size:.95rem;
  letter-spacing:.08em;
  color:rgba(255,255,255,0.85);
  margin-top:4px;
}

.menu{
  margin-left:auto;
  display:flex;
  gap:22px;
  list-style:none;
  padding:0;
  align-items:center;
}

.menu a{
  color:#fff;
  text-decoration:none;
  font-size:.95rem;
  opacity:.85;
}
.menu a:hover{ opacity:1; }

.top-nav .menu li a{ white-space:nowrap; }

.menu-cta{
  border:1px solid rgba(255,255,255,0.5);
  padding:6px 12px;
  border-radius:4px;
}

.lang-switch{ margin-left:10px; }

.lang-item{
  display:flex;
  align-items:center;
}

.lang-switch img{
  width:26px;
  height:26px;
  opacity:.75;
  transition:opacity .2s ease;
}
.lang-switch img:hover{ opacity:1; }

/* Hamburger */
.nav-toggle{
  display:none;
  margin-left:auto;
  background:transparent;
  border:0;
  padding:10px;
  cursor:pointer;
}

.nav-toggle span{
  display:block;
  width:26px;
  height:2px;
  background:rgba(255,255,255,0.92);
  margin:6px 0;
}

/* X animation */
.nav-toggle.open span:nth-child(1){ transform:translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }

/* =========================
   BUTTONS
   ========================= */
.btn{
  display:inline-block;
  margin-top:30px;
  background:#fff;
  color:#1f2933;
  padding:14px 34px;
  text-decoration:none;
  border-radius:30px;
  font-weight:600;
  letter-spacing:.05em;
  box-shadow:0 10px 25px rgba(0,0,0,0.35);
}

.btn.btn-dark{
  display:inline-block;
  margin-top:14px;
  background:#0f172a;
  color:#fff;
  padding:12px 18px;
  border-radius:999px;
  text-decoration:none;
  font-weight:600;
}

/* =========================
   FOOD PREMIUM – section backgrounds + headings
   ========================= */
.about,
.services,
.products,
.visual,
.contact{
  background:transparent;
}

/* Alternanza food premium leggera */
.about{
  background:linear-gradient(135deg,#f7f4ed 0%, #f1efe6 100%);
}

.services{
  background:linear-gradient(135deg,#f7f4ed 0%, #eef2e4 100%);
}

.products{
  background:linear-gradient(135deg,#f7f4ed 0%, #f1efe6 100%);
}

.visual{
  background:linear-gradient(135deg,#f7f4ed 0%, #eef2e4 100%);
}

.contact{
  background:linear-gradient(135deg,#f7f4ed 0%, #f1efe6 100%);
}

.about h2,
.services h2,
.products h2,
.visual h2,
.contact h2{
  color:#2f3b23;
  letter-spacing:.3px;
}

/* Testi: devono andare a capo (fix sovrapposizioni) */
.about p,
.services p,
.hero-content p{
  white-space:normal;
  overflow-wrap:anywhere;
}

/* Card base (coerenza premium) */
.service-item,
.contact-card,
.contact-panel,
.product-card{
  background:rgba(255,255,255,0.92);
  border:1px solid rgba(47,59,35,0.10);
  border-radius:16px;
  box-shadow:0 12px 28px rgba(15,23,42,.06);
}

/* =========================
   ABOUT
   ========================= */
.about img{
  width:300px;
  border-radius:8px;
}

.about-list{
  margin-top:20px;
  padding-left:20px;
  color:#4a5568;
}

.about-list li{ margin-bottom:10px; }

/* =========================
   SERVICES
   ========================= */
.services h2{
  text-align:center;
  margin-bottom:10px;
}

.services-intro{
  text-align:center;
  max-width:700px;
  margin:0 auto 50px;
  color:#4a5568;
}

.services-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:40px;
  align-items:stretch;
}

.service-item{
  padding:18px;
}

.service-item h3{
  font-size:1.2rem;
  margin:0 0 10px;
  color:#2f855a;
  line-height:1.25;
  max-width:26ch;
}

.service-item p{
  margin:0;
  color:#4a5568;
  line-height:1.6;
}

/* =========================
   PRODUCTS (HOME GRID) – Luxury cards
   NOTE: usa .product-card + .product-image + .product-info
   ========================= */
.products h2{
  text-align:center;
  margin-bottom:10px;
}

.products-intro{
  max-width: 900px;
  margin: 24px auto 48px;
  padding: 24px 28px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(47,59,35,0.10);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.85;
  text-align: left;
  position: relative;
}

.products-intro::before{
  content:"";
  display:block;
  width:72px;
  height:3px;
  margin-bottom:16px;
  border-radius:999px;
  background: linear-gradient(90deg, #c2a25d, #d7c08a);
}
.gallery h2{
  text-align:center;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color:#2f3b23;
  letter-spacing:.4px;
}

/* Grid: 3 desktop / 2 tablet / 1 mobile */
.products-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:28px;
  align-items:stretch;
}

@media (max-width:1024px){
  .products-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width:640px){
  .products-grid{ grid-template-columns:1fr; gap:18px; }
}
@media (max-width: 768px){
  .products-intro{
    padding: 20px 18px;
    font-size: .96rem;
    line-height: 1.75;
  }
}
/* Card */
.product-card{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:inherit;
  overflow:hidden;
  position:relative;
  transform:translateY(0);
  transition:transform .25s ease, box-shadow .25s ease;
}

/* Overlay elegante */
.product-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:0;
  transition:opacity .25s ease;
  background: radial-gradient(
    1200px 380px at 20% 0%,
    rgba(194,162,93,0.18),
    rgba(0,0,0,0) 55%
  );
}

.product-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 44px rgba(15,23,42,.10);
}
.product-card:hover::after{ opacity:1; }

/* Badge icona categoria (data-ico) */
.product-card::before{
  content:attr(data-ico);
  position:absolute;
  top:14px;
  right:14px;
  z-index:2;
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(255,255,255,0.75);
  border:1px solid rgba(47,59,35,0.12);
  box-shadow:0 10px 22px rgba(15,23,42,.08);
  backdrop-filter: blur(6px);
  font-size:18px;
  line-height:1;
}

@media (max-width:640px){
  .product-card::before{
    width:36px;
    height:36px;
    top:12px;
    right:12px;
    font-size:16px;
  }
}

/* Area immagine uniforme (no bianco) */
.product-image{
  height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f3efe6;
  padding:20px;
  overflow:hidden;
}

@media (max-width:640px){
  .product-image{ height:190px; padding:16px; }
}

/* Soft zoom */
.product-image img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
  transform:scale(1);
  transition:transform .35s ease;
}

.product-card:hover .product-image img{
  transform:scale(1.06);
}

/* Testo */
.product-info{
  padding:20px 20px 22px;
}

.product-info h3{
  margin:0 0 8px;
  font-size:1.08rem;
  color:#2f3b23;
  letter-spacing:.2px;
}

.product-info p{
  margin:0;
  font-size:.92rem;
  color:#6b7280;
  line-height:1.55;
}

@media (max-width:640px){
  .product-info{ padding:16px 16px 18px; }
  .product-info h3{ font-size:1.02rem; }
  .product-info p{ font-size:.90rem; }
}

/* =========================
   PRODUCTS PAGES (HEADER + BACKGROUND + CARDS)
   ========================= */
.products-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:32px 50px;
  background:linear-gradient(135deg, #f4f1e8 0%, #e4ead7 100%);
  border-bottom:1px solid rgba(0,0,0,0.06);
}

.products-nav .logo img{ height:52px; }

.products-nav .page-title{
  text-align:center;
  flex:1;
}

.products-nav .page-title h2{
  margin:0;
  font-size:24px;
  font-weight:600;
  color:#2f3b23;
  letter-spacing:.5px;
}

.products-nav .page-title p{
  margin:8px 0 0;
  font-size:14px;
  color:#6e7a58;
  font-weight:400;
}

.products-nav .page-title::after{
  content:"";
  display:block;
  width:70px;
  height:2px;
  background:#c2a25d;
  margin:12px auto 0;
}

.products-nav .back-link{
  font-size:14px;
  font-weight:500;
  text-decoration:none;
  color:#2f3b23;
  transition:opacity .2s ease;
}
.products-nav .back-link:hover{ opacity:.6; }

.products-page{
  background:#f7f4ed;
  min-height:100vh;
}

/* (Nota) product-card qui è usata per home; non ridefiniamo altre card qui */

/* =========================
   GALLERY (pagine prodotti)
   ========================= */
.gallery{ padding:80px 10%; }

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:32px;
}

/* Box uniforme con proporzione moderna */
.gallery-item{
  aspect-ratio: 4 / 3;                 /* proporzione elegante */
  background:linear-gradient(135deg,#f6f2e9,#ece7db);
  border-radius:18px;
  padding:22px;
  box-shadow:0 18px 40px rgba(15,23,42,.10);
  border:1px solid rgba(47,59,35,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  transition:transform .3s ease, box-shadow .3s ease;
}

.gallery-item:hover{
  transform:translateY(-6px);
  box-shadow:0 24px 50px rgba(15,23,42,.14);
}

/* Immagine mai tagliata */
.gallery-item img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;                /* 🔥 niente tagli */
  display:block;
  transition:transform .4s ease;
}

.gallery-item:hover img{
  transform:scale(1.05);
}

/* =========================
   VISUAL
   ========================= */
.visual h2{
  text-align:center;
  margin-bottom:80px;
}

.visual-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:30px;
}

.visual-item{
  height:260px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
}

.visual-item img{
  max-width:100%;
  max-height:260px;
  object-fit:contain;
  border-radius:6px;
  margin-bottom:15px;
}

.visual-item h4{
  font-weight:500;
  color:#2d3748;
}

/* =========================
   CONTACT
   ========================= */
.contact{
  text-align:center;
}

.contact-wrap{
  max-width:1120px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.2fr 0.8fr;
  gap:28px;
  align-items:start;
}

.contact-lead{
  color:#475569;
  max-width:80ch;
  margin-top:8px;
}

.contact-cards{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
  margin-top:18px;
}

.contact-card{
  padding:18px;
}

.contact-card h4{
  margin:0 0 8px;
  font-size:1rem;
  color:#0f172a;
}

.contact-link{
  display:inline-block;
  font-weight:600;
  color:#1e40af;
  text-decoration:none;
}
.contact-link:hover{ text-decoration:underline; }

.contact-note{
  margin:10px 0 0;
  color:#475569;
  line-height:1.6;
}

.contact-panel{
  background:linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.88));
  border:1px solid rgba(47,59,35,0.10);
  border-radius:16px;
  padding:22px;
  box-shadow:0 16px 34px rgba(15,23,42,.08);
}

.contact-panel h3{
  margin:0 0 8px;
  color:#0f172a;
}

.contact-panel p{
  margin:0 0 14px;
  color:#475569;
  line-height:1.6;
}

.contact-check{
  margin:0 0 18px;
  padding-left:18px;
  color:#334155;
  text-align:left;
}

.contact-check li{ margin:8px 0; }

/* Social */
.social{
  display:flex;
  justify-content:center;
  gap:20px;
  margin-top:20px;
}

.social img{
  width:28px;
  height:28px;
  opacity:.7;
  transition:opacity .2s ease;
}
.social img:hover{ opacity:1; }

.social-contact{
  margin-top:18px;
  justify-content:flex-start;
}

/* =========================
   FOOTER (simple + upgrade)
   ========================= */
footer{
  text-align:center;
  padding:20px;
  background:#1f2933;
  color:#fff;
}

.site-footer{
  background:#0f172a;
  color:rgba(255,255,255,.82);
  padding:42px 10% 18px;
}

.footer-inner{
  max-width:1120px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  gap:28px;
  align-items:flex-start;
}

.footer-brand{
  display:flex;
  gap:12px;
  align-items:center;
}

.footer-brand img{
  width:44px;
  border-radius:10px;
}

.footer-brand strong{
  display:block;
  color:#fff;
  font-size:1.05rem;
}

.footer-brand span{
  display:block;
  opacity:.82;
  font-size:.95rem;
}

.footer-note{
  margin:1px 0 0;
  max-width:80ch;
  line-height:1.7;
  color:rgba(255,255,255,.72);
}

.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:14px 18px;
  justify-content:flex-end;
  text-align:right;
}

.footer-links a{
  color:rgba(255,255,255,.75);
  text-decoration:none;
  font-size:.95rem;
}
.footer-links a:hover{
  color:#fff;
  text-decoration:underline;
}

.footer-bottom{
  max-width:1120px;
  margin:22px auto 0;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.12);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  font-size:.92rem;
  color:rgba(255,255,255,.70);
}

.footer-social{
  display:flex;
  gap:10px;
}

.footer-social a{
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
}

.footer-social img{
  width:20px;
  height:20px;
  opacity:1;
  filter:brightness(0) invert(1);
}

/* Logo footer */
.footer-brand img{
  width:140px;
  height:auto;
}

.footer-social a:hover{
  background:rgba(255,255,255,.16);
}

/* =========================
   MOBILE
   ========================= */
@media (max-width:768px){

  .top-nav{
    padding:24px 8%;
    flex-wrap:wrap;
    gap:12px;
  }

  .logo img{
    height:78px;
  }

  .tagline{
    font-size:.85rem;
    letter-spacing:.05em;
    max-width:240px;
    line-height:1.2;
  }

  .nav-toggle{ display:block; }

  .menu{
    display:none;
    width:100%;
    margin-left:0;
    margin-top:12px;
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
    padding:14px 0 4px;
    border-top:1px solid rgba(255,255,255,0.18);
  }
  .menu.open{ display:flex; }

  .menu a{
    font-size:1rem;
    padding:8px 0;
  }

  .lang-item{ margin-top:6px; }

  .hero{
    max-width:100%;
    margin:0;
    border-radius:0;
    min-height: 620px;
    background-position: 75% center;
  }

  .hero h1{ font-size:2rem; }

  .hero-content{
    padding: 44px 8%;
    max-width: 100%;
  }

  /* overlay solo a sinistra (testo leggibile, foto non scura) */
  .hero-overlay{
    background: linear-gradient(
      90deg,
      rgba(20,35,25,0.60) 0%,
      rgba(20,35,25,0.35) 38%,
      rgba(20,35,25,0.12) 62%,
      rgba(20,35,25,0.00) 78%
    );
  }
  
  section{ padding:60px 8%; }

  .gallery{ padding:60px 8%; }
  .gallery-grid{ gap:16px; }
  .gallery-item{
    padding:16px;
  }
  .about p,
  .services p,
  .hero-content p,
  .products-intro{
    text-align:left;
  }

  .contact-wrap{ grid-template-columns:1fr; }
  .contact-cards{ grid-template-columns:1fr; }

  .site-footer{ padding:34px 8% 18px; }

  .site-footer .social img{
    filter:brightness(0) invert(1);
    opacity:1;
  }
  
    .footer-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-links{
    width:100%;
    justify-content: flex-start;
    text-align: left;
    gap: 10px 16px;
  }

  .footer-links a{
    display:inline-block;
    padding: 6px 0;
  }

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

  .footer-social{
    margin-top: 6px;
  }

  /* Products header mobile */
  .products-nav{
    padding:18px 16px;
    flex-wrap:wrap;
    gap:10px;
  }

  .products-nav .logo{ order:1; }
  .products-nav .logo img{ height:42px; }

  .products-nav .back-link{
    order:2;
    margin-left:auto;
    padding:8px 12px;
    border-radius:999px;
    background:rgba(255,255,255,0.65);
    border:1px solid rgba(0,0,0,0.06);
    font-size:13px;
    white-space:nowrap;
  }

  .products-nav .page-title{
    order:3;
    flex:0 0 100%;
    text-align:center;
    margin-top:2px;
  }

  .products-nav .page-title h2{ font-size:18px; }
  .products-nav .page-title p{ font-size:13px; }

  .products-nav .page-title::after{
    width:52px;
    margin-top:10px;
  }
}
