/* Nido di Cotone • Industrial Modern theme - Mobile-first, Flexbox-only CSS */
/* ----------------------------------------------------- */
/* 1) Reset & Base                                         */
/* ----------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Fredoka:wght@500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul, ol { margin: 0; padding: 0 0 0 1.2rem; }

:root {
  /* Brand */
  --brand-primary: #1E3A8A; /* Blue */
  --brand-secondary: #FF6B6B; /* Coral */
  --brand-accent: #FFF7E8; /* Warm light */

  /* Industrial Modern palette */
  --ink-900: #0E1114; /* near-black */
  --ink-800: #141A1F; /* charcoal */
  --ink-700: #1C232B; /* slate */
  --ink-500: #2A3139; /* muted steel */
  --ink-300: #4B5563; /* cool grey */
  --ink-200: #6B7280; /* mid grey */
  --ink-100: #9AA4AF; /* light steel */

  --surface-900: #0F141A; /* deep background */
  --surface-800: #151B22; /* panel */
  --surface-700: #1A2129; /* card dark */
  --surface-200: #E9EDF1; /* light panel */
  --surface-150: #F2F4F7; /* lighter for testimonials */
  --surface-100: #FAFBFC; /* white-ish */

  --metal-700: #7B8A96; /* metal edge */
  --metal-600: #8D98A3;
  --metal-500: #A5AFB8;

  --text-strong: #E7EBF0; /* light text */
  --text-soft: #C7CDD5;
  --text-muted: #9AA4AF;
  --text-dark: #0F1720; /* dark text for light cards */

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-soft: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.35);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,0.05);

  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-20: 20px;
  --spacing-24: 24px;
  --spacing-30: 30px;
  --spacing-32: 32px;
  --spacing-40: 40px;
  --spacing-60: 60px;
  --transition-fast: 180ms ease;
  --transition-med: 260ms ease;
}

/* Typography */
body {
  font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-strong);
  background: var(--surface-900);
}

h1, h2, h3 { font-family: 'Fredoka', 'Nunito', system-ui, sans-serif; color: #F3F6FA; margin: 0 0 12px; letter-spacing: 0.2px; }
h1 { font-size: 34px; line-height: 1.2; }
h2 { font-size: 26px; line-height: 1.3; }
h3 { font-size: 20px; line-height: 1.35; }

p { margin: 0 0 14px; color: var(--text-soft); }
strong { color: #FFFFFF; font-weight: 700; }

/* Accessibility focus */
:focus-visible { outline: 2px dashed var(--brand-secondary); outline-offset: 2px; }

/* ----------------------------------------------------- */
/* 2) Layout containers (Flexbox-only)                    */
/* ----------------------------------------------------- */
.container {
  display: flex;
  width: 100%;
  padding: 0 16px;
  justify-content: center;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-20);
  width: 100%;
  max-width: 1200px;
}

/* Global section spacing (mobile-first) */
section { margin-bottom: var(--spacing-60); padding: var(--spacing-40) var(--spacing-20); background: transparent; }

/* Mandatory spacing patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 14px; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ----------------------------------------------------- */
/* 3) Header & Navigation                                 */
/* ----------------------------------------------------- */
header { background: var(--surface-800); border-bottom: 1px solid var(--ink-500); box-shadow: var(--shadow-inset); position: relative; z-index: 50; }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--spacing-16); padding: 14px 0; }

.logo { display: flex; align-items: center; }
.logo img { height: 36px; filter: brightness(1.1) contrast(1.05); }

.main-nav { display: none; align-items: center; gap: 18px; }
.main-nav a {
  color: var(--text-soft);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 700;
}
.main-nav a:hover { color: #FFFFFF; background: rgba(255,255,255,0.06); transform: translateY(-1px); }

/* CTA Button */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 10px; background: var(--brand-primary); color: #EAF1FF; border: 1px solid var(--metal-600); box-shadow: 0 3px 0 rgba(255,255,255,0.08) inset, 0 8px 18px rgba(0,0,0,0.35); transition: transform var(--transition-med), background var(--transition-fast), box-shadow var(--transition-fast); font-weight: 700; }
.cta:hover { transform: translateY(-2px); background: #25479D; box-shadow: 0 4px 0 rgba(255,255,255,0.09) inset, var(--shadow-md); }
.cta:active { transform: translateY(0); }
.cta.secondary { background: transparent; border: 1px solid var(--metal-500); color: var(--brand-accent); box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset; }
.cta.secondary:hover { background: rgba(255,255,255,0.06); color: #FFFFFF; }

/* Mobile menu button */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: var(--surface-700); color: #FFFFFF; border: 1px solid var(--ink-500); box-shadow: var(--shadow-soft); transition: background var(--transition-fast), transform var(--transition-fast); }
.mobile-menu-toggle:hover { background: var(--ink-700); transform: translateY(-2px); }

/* Mobile menu panel */
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; width: 86%; max-width: 360px; background: var(--surface-800); border-left: 1px solid var(--ink-500); box-shadow: -20px 0 40px rgba(0,0,0,0.4); transform: translateX(100%); transition: transform 280ms cubic-bezier(.4,.0,.2,1); z-index: 999; display: flex; flex-direction: column; padding: 20px; gap: 20px; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-700); color: #FFFFFF; border: 1px solid var(--ink-500); }
.mobile-nav { display: flex; flex-direction: column; gap: 12px; }
.mobile-nav a { padding: 12px 10px; border-radius: 8px; color: var(--text-soft); background: rgba(255,255,255,0.03); border: 1px solid var(--ink-500); transition: background var(--transition-fast), color var(--transition-fast); }
.mobile-nav a:hover { background: rgba(255,255,255,0.07); color: #FFFFFF; }

/* Hide desktop nav on mobile, show CTA + burger */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* ----------------------------------------------------- */
/* 4) Hero                                                */
/* ----------------------------------------------------- */
.hero { background: var(--surface-800); border-bottom: 1px solid var(--ink-500); box-shadow: var(--shadow-inset); }
.hero .content-wrapper { padding: 14px 0; }
.hero h1 { color: #FFFFFF; }
.hero p { max-width: 820px; }
.hero .trust-badges ul { display: flex; flex-wrap: wrap; gap: 12px 16px; padding: 0; list-style: none; }
.hero .trust-badges li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-700); border: 1px solid var(--ink-500); color: var(--text-soft); }
.hero .trust-badges img { width: 18px; height: 18px; }

/* ----------------------------------------------------- */
/* 5) Text sections & Lists                               */
/* ----------------------------------------------------- */
.text-section { display: flex; flex-direction: column; gap: 12px; }
.text-section p { color: var(--text-soft); }
.text-section ul, .text-section ol { display: flex; flex-direction: column; gap: 8px; }
.text-section li { color: var(--text-soft); }
.text-section li img { width: 18px; height: 18px; margin-right: 8px; display: inline-block; vertical-align: middle; }

/* Stat highlights */
.stats { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.stats p { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--ink-500); color: var(--text-soft); }
.stats img { width: 16px; height: 16px; }

/* Breadcrumb */
.breadcrumb { color: var(--text-muted); font-size: 14px; display: flex; align-items: center; gap: 6px; padding: 8px 0; }

/* Links general */
a:hover { color: #FFFFFF; }

/* ----------------------------------------------------- */
/* 6) Cards, Testimonials, Ratings                        */
/* ----------------------------------------------------- */
/* Light, readable testimonial cards (requirement) */
.testimonial-card {
  background: var(--surface-150);
  color: var(--text-dark);
  border: 1px solid #D7DEE6;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.testimonial-card p { color: #222B35; }
.testimonial-card strong { color: #0E1114; }

.rating-summary { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 999px; background: var(--surface-150); border: 1px solid #D7DEE6; color: #0E1114; font-weight: 700; }
.rating-summary img { width: 16px; height: 16px; }

/* Generic card style (for .card and product highlights) */
.card { background: var(--surface-700); border: 1px solid var(--ink-500); border-radius: var(--radius-md); padding: 18px; color: var(--text-soft); box-shadow: var(--shadow-soft); }

/* Feature items */
.feature-item { background: var(--surface-700); border: 1px solid var(--ink-500); border-radius: var(--radius-md); padding: 16px; color: var(--text-soft); }

/* ----------------------------------------------------- */
/* 7) Footer                                              */
/* ----------------------------------------------------- */
footer { background: var(--surface-800); border-top: 1px solid var(--ink-500); padding-top: 10px; }
footer .content-wrapper { flex-direction: column; gap: 20px; padding: 20px 0; }
footer .text-section { background: rgba(255,255,255,0.02); border: 1px solid var(--ink-500); border-radius: var(--radius-md); padding: 16px; }
footer h3 { color: #FFFFFF; font-size: 18px; margin-bottom: 8px; }
footer a { color: var(--brand-accent); }
footer a:hover { color: #FFFFFF; }

@media (min-width: 768px) {
  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; gap: 20px; }
  footer .text-section { flex: 1 1 240px; }
}

/* ----------------------------------------------------- */
/* 8) Responsive media queries                            */
/* ----------------------------------------------------- */
@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
  h3 { font-size: 22px; }
  .text-image-section { flex-direction: row; }
}

@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: center; }
}

@media (min-width: 1024px) {
  h1 { font-size: 52px; }
  h2 { font-size: 34px; }
}

/* ----------------------------------------------------- */
/* 9) Lists and badges                                    */
/* ----------------------------------------------------- */
.trust-badges ul { display: flex; flex-wrap: wrap; gap: 12px 16px; list-style: none; padding: 0; }
.trust-badges li { display: flex; align-items: center; gap: 10px; background: var(--surface-700); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--ink-500); color: var(--text-soft); }
.trust-badges img { width: 18px; height: 18px; }

/* ----------------------------------------------------- */
/* 10) Utility                                            */
/* ----------------------------------------------------- */
.muted { color: var(--text-muted); }
.hide { display: none !important; }

/* ----------------------------------------------------- */
/* 11) Mobile menu overlay background (optional)          */
/* ----------------------------------------------------- */
/* If JS toggles .menu-overlay on body, style it here */
.menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 998; opacity: 0; pointer-events: none; transition: opacity var(--transition-med); display: flex; }
.menu-overlay.open { opacity: 1; pointer-events: auto; }

/* ----------------------------------------------------- */
/* 12) Cookie Consent Banner + Modal                      */
/* ----------------------------------------------------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface-800); color: var(--text-soft); border-top: 1px solid var(--ink-500); box-shadow: 0 -10px 30px rgba(0,0,0,0.35); z-index: 1000; display: flex; justify-content: center; }
.cookie-banner .banner-inner { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 1200px; padding: 14px 16px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--metal-600); transition: background var(--transition-fast), transform var(--transition-fast), color var(--transition-fast); }
.cookie-accept { background: var(--brand-primary); color: #EAF1FF; }
.cookie-accept:hover { background: #25479D; transform: translateY(-2px); }
.cookie-reject { background: transparent; color: var(--brand-accent); }
.cookie-reject:hover { background: rgba(255,255,255,0.06); color: #FFFFFF; }
.cookie-settings { background: var(--surface-700); color: #FFFFFF; }
.cookie-settings:hover { background: var(--ink-700); }

/* Cookie modal */
.cookie-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,0.55); z-index: 1001; opacity: 0; pointer-events: none; transition: opacity var(--transition-med); }
.cookie-modal.open { opacity: 1; pointer-events: auto; }
.cookie-modal-content { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 680px; background: var(--surface-800); border: 1px solid var(--ink-500); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 20px; color: var(--text-soft); }
.cookie-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--ink-500); }
.cookie-row:last-child { border-bottom: none; }
.cookie-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: var(--surface-700); border: 1px solid var(--ink-500); color: #FFFFFF; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }

/* Toggle switch */
.toggle { display: inline-flex; align-items: center; gap: 8px; }
.toggle input { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--ink-500); position: relative; outline: none; transition: background var(--transition-fast); }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; transition: transform var(--transition-fast); }
.toggle input:checked { background: var(--brand-primary); }
.toggle input:checked::after { transform: translateX(18px); }
.toggle .label { color: var(--text-soft); font-weight: 600; }

.cookie-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding-top: 6px; }

/* ----------------------------------------------------- */
/* 13) Page-specific fine-tuning                          */
/* ----------------------------------------------------- */
/* Light background blocks when needed */
section:nth-of-type(even) { background: rgba(255,255,255,0.02); border-top: 1px solid var(--ink-500); border-bottom: 1px solid var(--ink-500); }

/* Ensure testimonial sections remain readable */
section .testimonial-card + .testimonial-card { margin-top: 12px; }

/* Inline icon sizing in lists */
.text-section li img, .rating-summary img { filter: grayscale(10%) contrast(1.1); }

/* Breadcrumb spacing inside hero (shop page) */
.hero .breadcrumb { background: rgba(255,255,255,0.06); border: 1px solid var(--ink-500); padding: 6px 10px; border-radius: 999px; width: fit-content; }

/* Nav links in footers and lists */
.text-section a { color: var(--brand-accent); border-bottom: 1px dashed rgba(255,255,255,0.25); transition: color var(--transition-fast), border-color var(--transition-fast); }
.text-section a:hover { color: #FFFFFF; border-color: #FFFFFF; }

/* Product-like highlight cards placed as .testimonial-card in shop */
section h2 + .text-section .testimonial-card { background: var(--surface-150); border-color: #D7DEE6; }
section h2 + .text-section .testimonial-card h3 { color: #0E1114; margin: 0; }
section h2 + .text-section .testimonial-card p strong { color: #0E1114; }

/* Pagination links */
.text-section p a { color: var(--brand-primary); font-weight: 700; }
.text-section p a:hover { color: #25479D; }

/* ----------------------------------------------------- */
/* 14) Spacing rules & gaps (to prevent overlap)          */
/* ----------------------------------------------------- */
section > .container > .content-wrapper > * { margin-bottom: 12px; }
section > .container > .content-wrapper > *:last-child { margin-bottom: 0; }

/* Minimum 20px between content elements */
.card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item { gap: 20px; }

/* ----------------------------------------------------- */
/* 15) Images inside content                              */
/* ----------------------------------------------------- */
.text-section img { display: inline-block; vertical-align: middle; }

/* ----------------------------------------------------- */
/* 16) Enhanced hover micro-interactions                  */
/* ----------------------------------------------------- */
.main-nav a, .mobile-nav a, .cta, .cookie-actions .btn { transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast); }

/* ----------------------------------------------------- */
/* 17) Print basic                                         */
/* ----------------------------------------------------- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
  header, footer, section { background: #FFFFFF; color: #000000; border: none; box-shadow: none; }
  a { color: #000000; }
}

/* ----------------------------------------------------- */
/* 18) Desktop enhancements                                */
/* ----------------------------------------------------- */
@media (min-width: 992px) {
  .content-wrapper { gap: var(--spacing-24); }
  .hero .content-wrapper { padding: 24px 0; }
  .text-section { gap: 14px; }
}

/* ----------------------------------------------------- */
/* 19) Ensure all interactive elements reflect style       */
/* ----------------------------------------------------- */
button:hover, a.button:hover { filter: none; }

/* End of stylesheet */
