/* ============================================
   M. e M. Fruit s.r.l. — styles.css
   Sito istituzionale monopagina
   Palette: giallo Pantone 109 C + navy logo
   ============================================ */

:root {
  --banana: #FFD100;
  --banana-deep: #E6B400;
  --banana-soft: #FFE04D;
  --banana-pale: #FFF4C2;
  --cream: #FFF8E7;
  --cream-deep: #F7EBC4;
  --navy: #153571;
  --navy-soft: #1E4A8A;
  --blue: #1475BC;
  --ink: #153571;
  --ink-soft: #2C4A78;
  --muted: #5A6B85;
  --green-soft: #8BC34A;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(21, 53, 113, 0.10);
  --shadow-md: 0 8px 28px rgba(21, 53, 113, 0.14);
  --shadow-lg: 0 20px 50px rgba(21, 53, 113, 0.20);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 88px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--ink); color: var(--white); padding: 0.75rem 1rem;
  border-radius: 0 0 8px 8px; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Layout */
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-cream { background: var(--cream); }
.section-dark {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 209, 0, 0.16), transparent 50%),
    linear-gradient(165deg, #0F274D 0%, #153571 55%, #1A3F7F 100%);
  color: var(--cream);
}
.section-yellow {
  background: linear-gradient(180deg, var(--banana) 0%, var(--banana-deep) 100%);
  color: var(--ink);
}
.grid-2 {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 880px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2.align-center { align-items: center; }
}

/* Type */
.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--banana);
  margin: 0 0 0.75rem;
}
.eyebrow-dark { color: var(--ink-soft); }
.section-title {
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.section-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 248, 231, 0.82);
  max-width: 40rem;
}
.section-lead.dark { color: var(--muted); }
.section-head.center {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head.center .section-lead { margin-inline: auto; }
.section-copy p { color: var(--ink-soft); }

.pull-quote {
  margin: 1.5rem 0 0;
  padding: 1.15rem 1.35rem;
  border-left: 5px solid var(--banana);
  background: rgba(255, 209, 0, 0.16);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.55rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn-primary {
  background: var(--banana);
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(255, 209, 0, 0.40);
}
.btn-primary:hover { background: var(--banana-soft); box-shadow: 0 10px 28px rgba(255, 209, 0, 0.50); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 248, 231, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(21, 53, 113, 0.08);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand-logo {
  height: 77px;
  width: auto;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(21, 53, 113, 0.22);
}
@media (max-width: 480px) { .brand-logo { height: 62px; border-radius: 12px; } }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover { background: rgba(255, 209, 0, 0.28); color: var(--ink); }
.nav-link:focus-visible { outline: 2px solid var(--banana-deep); outline-offset: 2px; }
.nav-link.is-active { background: var(--banana); color: var(--ink); font-weight: 600; }
.nav-cta {
  background: var(--ink);
  color: var(--cream);
  margin-left: 0.35rem;
}
.nav-cta:hover { background: var(--ink-soft); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: var(--banana);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  z-index: 120;
}
.nav-toggle-bar {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 26, 18, 0.45);
  z-index: 90;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(320px, 88vw);
    height: calc(100dvh - var(--header-h));
    background: var(--cream);
    box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    transition: transform 0.3s var(--ease);
    z-index: 110;
    padding: 1.25rem;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0.35rem; }
  .nav-link { padding: 0.9rem 1rem; font-size: 1.05rem; }
  .nav-cta { margin-left: 0; text-align: center; margin-top: 0.5rem; }
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(560px, 92dvh, 820px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  padding: 4rem 0 5rem;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 28, 56, 0.90) 0%, rgba(21, 53, 113, 0.74) 48%, rgba(255, 209, 0, 0.32) 100%),
    linear-gradient(to top, rgba(15, 39, 77, 0.58), transparent 40%);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-brand {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: var(--banana-soft);
}
.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--banana-soft);
}
.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255, 248, 231, 0.9);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}
.hero-lead strong { color: var(--banana-soft); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.75rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 248, 231, 0.25);
}
.hero-stats li { display: flex; flex-direction: column; gap: 0.15rem; }
.stat-num {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--banana-soft);
}
.stat-label { font-size: 0.85rem; color: rgba(255, 248, 231, 0.75); }
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: 2;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: clamp(40px, 6vw, 80px); display: block; }

/* Logo trasparente su banda gradiente navy (Contatti) */
.contact-logo-band {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(1.6rem, 4vw, 2.4rem) clamp(1.25rem, 4vw, 2rem);
  background:
    radial-gradient(ellipse at 15% 20%, rgba(255, 209, 0, 0.18), transparent 45%),
    linear-gradient(135deg, #0F274D 0%, #153571 48%, #1E4A8A 100%);
  overflow: hidden;
}
.contact-logo-band::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--banana) 0%, var(--blue) 100%);
}
.contact-logo {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  height: auto;
  display: block;
  margin-inline: auto;
  /* PNG già su sfondo navy trasparente — nessun bordo rettangolare */
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}

/* Media Chi siamo: griglia responsive (visibile anche su mobile) */
.media-stack {
  display: grid;
  gap: 1.15rem;
  align-content: start;
}
.media-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
}
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.6s var(--ease);
}
.media-card:hover img { transform: scale(1.04); }
.media-card figcaption {
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--white);
}
.media-card-main img {
  aspect-ratio: 4 / 3;
  object-position: center 30%;
}
.media-card-wide {
  background: var(--navy);
}
.media-card-wide img {
  aspect-ratio: 516 / 157;
  object-fit: contain;
  object-position: center;
  background: var(--navy);
  transform: none;
}
.media-card-wide:hover img { transform: none; }
.media-card-wide figcaption {
  background: var(--navy);
  color: rgba(255, 248, 231, 0.88);
}

/* Features */
.feature-list { display: grid; gap: 1.15rem; }
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 248, 231, 0.06);
  border: 1px solid rgba(255, 209, 0, 0.20);
}
.feature-icon {
  grid-row: 1 / span 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--banana);
  color: var(--ink);
  flex-shrink: 0;
}
.feature h3 { margin: 0 0 0.25rem; font-size: 1.15rem; color: var(--banana-soft); }
.feature p { margin: 0; color: rgba(255, 248, 231, 0.82); font-size: 0.98rem; }

.story-band {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 209, 0, 0.16), rgba(255, 209, 0, 0.04));
  border-left: 5px solid var(--banana);
}
.story-band-inner p { color: rgba(255, 248, 231, 0.88); font-size: 1.05rem; }
.story-highlight {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem !important;
  color: var(--banana-soft) !important;
  margin-bottom: 0 !important;
}

/* Cards */
.cards-3 {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 720px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media { overflow: hidden; background: var(--banana-pale); }
.card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card:hover .card-media img { transform: scale(1.05); }
.card-media-icon {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--banana-pale), var(--cream-deep));
}
.big-icon { width: 55%; max-width: 140px; height: auto; }
.card-body { padding: 1.35rem 1.4rem 1.5rem; flex: 1; }
.card-body h3 { font-size: 1.3rem; margin-bottom: 0.45rem; }
.card-body p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.chiquita-band {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.chiquita-band-content { display: grid; gap: 0; }
@media (min-width: 800px) {
  .chiquita-band-content { grid-template-columns: 280px 1fr; }
}
.chiquita-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
  max-height: 340px;
}
@media (min-width: 800px) {
  .chiquita-img { max-height: none; min-height: 100%; }
}
.chiquita-band-content > div { padding: clamp(1.5rem, 4vw, 2.5rem); }
.chiquita-band-content h3 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
.chiquita-band-content p { color: var(--muted); }
.chiquita-band-content p strong { color: var(--ink); }

.check-list { display: grid; gap: 0.55rem; margin-top: 1.25rem; }
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35em;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Mini cards */
.cards-4 {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
@media (min-width: 600px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.mini-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(61, 43, 31, 0.08);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.mini-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: var(--banana);
  margin-bottom: 1rem;
}
.mini-card h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.mini-card p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

.claim-banner {
  text-align: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-md);
}
.claim-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  line-height: 1.45;
  margin-bottom: 0.75rem;
  color: var(--banana-soft);
}
.claim-sub { margin: 0; opacity: 0.75; font-size: 0.95rem; }

/* Contatti */
.contact-grid { display: grid; gap: 1.75rem; }
.contact-grid-single {
  max-width: 640px;
  margin-inline: auto;
}
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  padding-bottom: 1.5rem;
  border: 1px solid rgba(21, 53, 113, 0.08);
}
.contact-info-card h3 { margin: 1.25rem 1.35rem 0.2rem; font-size: 1.45rem; }
.contact-tagline {
  margin: 0 1.35rem 1.25rem;
  color: var(--muted);
  font-style: italic;
}

/* Optional company photo under contacts logo */
.contact-photo {
  margin: 1rem 1.35rem 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.contact-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.contact-list { display: grid; gap: 1.1rem; padding: 0 1.35rem; }
.contact-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}
.contact-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--banana-pale);
  color: var(--ink-soft);
}
.contact-list strong {
  display: block;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.contact-list span,
.contact-list a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.45;
}
.contact-list a:hover { color: var(--banana-deep); text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 248, 231, 0.85);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-logo {
  height: 64px;
  width: auto;
  margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.95rem; line-height: 1.6; margin: 0; }
.footer-col h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--banana);
  margin-bottom: 0.85rem;
}
.footer-col ul { display: grid; gap: 0.45rem; }
.footer-col a { text-decoration: none; opacity: 0.85; }
.footer-col a:hover { opacity: 1; color: var(--banana); text-decoration: underline; }
.footer-col li { font-size: 0.93rem; line-height: 1.5; }
.footer-bottom {
  border-top: 1px solid rgba(255, 248, 231, 0.12);
  padding: 1.15rem 0;
  background: rgba(0, 0, 0, 0.25);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}
.footer-bottom-inner p { margin: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print */
@media print {
  .site-header, .nav-toggle, .nav-overlay { display: none !important; }
  .hero { min-height: auto; color: #000; }
  .hero-bg-overlay { background: none; }
  body { background: white; }
}
