/* ====================================================================
   SILKY SWEEP - VIBRANT ENERGETIC STYLE
   MODERN, ACCESSIBLE, RESPONSIVE, FLEXBOX-ONLY LAYOUTS
   ==================================================================== */
/* ----------------------
   CSS RESET & NORMALIZE
----------------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  background: transparent;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #18213B;
  background: #FCEECA;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #26A69A;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.8,0,.2,1);
}
a:focus {
  outline: 2px solid #26A69A;
  outline-offset: 1px;
}
::selection {
  background: #26A69A;
  color: #fff;
}

/* ----------------------
   VARIABLES (for fallback use)
----------------------- */
:root {
  --primary: #243661;
  --secondary: #26A69A;
  --accent: #FCEECA;
  --electric-pink: #FF2079;
  --electric-blue: #2596FF;
  --electric-yellow: #FFD600;
  --electric-purple: #A259FF;
  --body-font: 'Open Sans', Arial, Helvetica, sans-serif;
  --display-font: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ----------------------
   CONTAINER
----------------------- */
.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
}

/* ----------------------
   HEADER & NAVIGATION
----------------------- */
header {
  width: 100%;
  background: var(--primary);
  position: relative;
  z-index: 30;
  box-shadow: 0 6px 12px 0 rgba(36,54,97,0.07);
}
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  max-width: 1260px;
  margin: 0 auto;
  padding: 12px 20px 12px 20px;
  font-family: var(--display-font);
}
.main-nav a {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.15s cubic-bezier(.7,.1,.3,1);
  padding: 6px 10px;
  border-radius: 6px;
}
.main-nav a:hover, .main-nav a[aria-current="page"], .main-nav a.active {
  color: var(--electric-yellow);
  background: rgba(38,166,154,0.10);
}
.main-nav a.btn-primary {
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 24px;
  box-shadow: 0 2px 10px 0 rgba(38,166,154,0.16);
  transition: background 0.16s,transform 0.12s;
  margin-left: 16px;
  letter-spacing: 0.015em;
}
.main-nav a.btn-primary:hover {
  background: var(--electric-pink);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 14px 0 rgba(255,32,121,0.13);
}
header img[alt="Silky Sweep"] {
  height: 38px; max-height: 38px;
  display: block;
  margin-right: 18px;
  flex-shrink: 0;
}

/* -----------
   MOBILE MENU
-------------*/
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 16px;
  background: var(--electric-pink);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  z-index: 99;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--electric-blue);
  box-shadow: 0 0 0 3px var(--electric-blue, #2596FF);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,54,97,0.97);
  z-index: 120;
  display: flex;
  flex-direction: column;
  transform: translateX(-110%);
  transition: transform 0.38s cubic-bezier(.9,.1,.4,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 18px 0 16px 16px;
  align-self: flex-end;
  background: var(--electric-pink);
  color: #fff;
  font-size: 2.1rem;
  width: 46px; height: 46px;
  border: none; border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:focus {
  outline: 2px solid var(--electric-blue);
  box-shadow: 0 0 0 3px var(--electric-blue);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0px 0px;
  margin: 0 auto;
  padding: 0 34px;
  width: 100%; max-width: 400px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: var(--display-font);
  font-weight: 700;
  padding: 12px 0;
  margin: 2px 0;
  border-radius: 6px;
  transition: background 0.17s, color 0.15s;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--electric-yellow);
  color: var(--primary);
}

@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none;
  }
}

/* ----------------------
   HERO SECTION
----------------------- */
.hero {
  background: linear-gradient(100deg, #fceeca 60%, #26A69A 130%);
  min-height: 340px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.hero h1 {
  font-family: var(--display-font);
  color: var(--primary);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 16px rgba(255,214,0,0.09), 0 1px 0 #fff;
}
.hero p {
  font-size: 1.22rem;
  color: #1f273b;
  max-width: 760px;
  margin-bottom: 8px;
}
.hero .btn-primary {
  margin-top: 10px;
}

/* ----------------------
   PRIMARY BUTTONS
----------------------- */
.btn-primary {
  display: inline-block;
  background: var(--electric-blue);
  color: #fff;
  font-family: var(--display-font);
  font-weight: 800;
  padding: 13px 36px;
  font-size: 1.15rem;
  border-radius: 30px;
  border: none;
  box-shadow: 0 2px 12px 0 rgba(38,166,154,0.10), 0 1px 0 #fff;
  cursor: pointer;
  transition: background 0.19s, transform 0.18s, box-shadow 0.19s;
  outline: none;
  position: relative;
  margin-top: 12px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--electric-pink);
  color: #fff;
  transform: scale(1.055) translateY(-3.5px);
  box-shadow: 0 6px 34px 0 rgba(255,32,121,0.16);
}
.btn-secondary {
  display: inline-block;
  background: var(--electric-yellow);
  color: var(--primary);
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 1.08rem;
  border-radius: 24px;
  padding: 13px 32px;
  border: none;
  margin-left: 14px;
  box-shadow: 0 2px 14px 0 rgba(255,214,0,0.091);
  cursor: pointer;
  transition: background 0.19s, color 0.15s, transform 0.18s, box-shadow 0.16s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--electric-purple);
  color: #fff;
  transform: scale(1.050);
}

/* ----------------------
   GENERAL TYPOGRAPHY
----------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display-font);
  font-weight: 800;
  color: var(--primary);
}
h1 { font-size: 2.4rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }
p, ul, ol, li { font-size: 1.02rem; }
strong { color: var(--electric-blue); font-weight: 800; }

@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.22rem; }
}

/* ----------------------
   SECTIONS
----------------------- */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
  background: none;
  position: relative;
}

.features, .about, .services, .contact, .testimonials {
  margin-bottom: 60px;
  padding: 40px 0;
  width: 100%;
}

.content-wrapper {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

ul li, .content-wrapper ul li {
  margin-bottom: 10px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 0;
  font-size: 1.04rem;
  color: #2b344e;
}
ul li img {
  width: 32px; height: 32px;
  margin-right: 4px;
}

/* -------------------------------------
   FLEXBOX LAYOUTS (MANDATORY CLASSES)
-------------------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(36,54,97,0.07), 0 1.5px 0 var(--secondary, #26A69A);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  min-width: 270px;
  max-width: 430px;
  transition: box-shadow 0.19s, transform 0.16s;
}
.card:hover {
  box-shadow: 0 12px 44px 0 rgba(36,54,97,0.15);
  transform: translateY(-4px) scale(1.03);
}
.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;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px 0 rgba(38,166,154,0.13);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 680px;
  font-family: var(--body-font);
  transition: box-shadow 0.17s, transform 0.17s;
}
.testimonial-card blockquote {
  color: #243661;
  font-size: 1.17rem;
  font-style: italic;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 4px;
}
.testimonial-card span {
  font-size: 1em;
  font-weight: 700;
  color: var(--secondary);
}
.testimonial-card:hover {
  box-shadow: 0 10px 34px 0 rgba(38,166,154,0.16);
  transform: scale(1.01) translateY(-3px);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(38,166,154,0.06);
  padding: 27px 23px;
  margin-bottom: 20px;
  max-width: 420px;
  transition: box-shadow 0.17s;
}
.feature-item:hover {
  box-shadow: 0 6px 30px rgba(38,166,154,0.15);
}

/* --------------------------------------
   SPECIAL CLASSES FOR FLEX LAYOUT SUPPORT
------------------------------------------*/
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* Let big list of contacts or actions align vertically */
.footer-nav, .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
}
.footer-nav {
  margin-bottom: 10px;
  gap: 18px;
}
.footer-contact {
  margin-bottom: 22px;
}

/* --- Blog special tags --- */
.tag {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  font-family: var(--display-font);
  font-size: 0.95em;
  border-radius: 6px;
  padding: 2px 10px 2px 10px;
  margin-left: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.tag[data-cat="spazio"] {
  background: var(--electric-blue);
}
.tag[data-cat="biologia"] {
  background: var(--electric-pink);
}
.tag[data-cat="tecnologia"] {
  background: var(--electric-yellow);
  color: var(--primary);
}

/* ----------------------
   RESPONSIVE DESIGN
----------------------- */
@media (max-width: 1024px) {
  .container {
    max-width: 97vw;
    padding: 0 8px;
  }
  .main-nav {
    font-size: 0.99rem;
  }
}

@media (max-width: 930px) {
  .card, .feature-item {
    min-width: 220px;
    padding: 20px 15px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 26px 0 0 0;
    min-height: 175px;
    margin-bottom: 32px;
  }
  .section, section {
    margin-bottom: 34px;
    padding: 22px 7px;
  }
  .features, .about, .services, .contact, .testimonials {
    margin-bottom: 34px;
    padding: 18px 0;
    gap: 10px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card, .feature-item, .testimonial-card {
    min-width: 0;
    max-width: 96vw;
    margin-bottom: 17px;
    padding: 13px 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .footer-nav, .footer-contact {
    flex-direction: column;
    gap: 5px;
  }
  h1, h2 {
    text-align: left;
    font-size: 1.19rem;
    margin-bottom: 8px;
  }
}

/* ----------------------
   MICRO-INTERACTIONS
----------------------- */
.card, .testimonial-card, .feature-item, .btn-primary, .btn-secondary {
  transition: box-shadow 0.19s, transform 0.16s, background 0.15s, color 0.15s;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 12px 32px 0 rgba(38,166,154,0.27);
  transform: translateY(-2px) scale(1.01);
}
.btn-primary:active, .btn-secondary:active {
  transform: scale(0.97);
}

/* ----------------------
   FOOTER STYLE
----------------------- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 28px 0 13px 0;
  margin-top: 70px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -7px 30px 0 rgba(36,54,97,0.08);
  width: 100%;
}
.footer-nav a {
  color: #fff;
  font-family: var(--display-font);
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.86;
  margin: 0 7px;
  transition: opacity 0.14s;
}
.footer-nav a:hover {
  color: var(--electric-yellow);
  opacity: 1;
  text-decoration: underline;
}
.footer-contact span {
  font-size: 0.98rem;
  opacity: 0.8;
  letter-spacing: 0.01em;
}

/* ----------------------
   COOKIE BANNER + MODAL
------------------------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 4000;
  background: #fff;
  border-top: 2.5px solid var(--electric-pink);
  box-shadow: 0 -7px 32px 0 rgba(36,54,97,0.11);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 24px;
  justify-content: space-between;
  padding: 18px 30px 15px 26px;
  font-size: 0.99rem;
  width: 100%;
  transition: transform 0.23s;
  opacity: 0.98;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}
.cookie-banner button {
  font-family: var(--display-font);
  border: none;
  border-radius: 22px;
  font-size: 1rem;
  cursor: pointer;
  padding: 8px 18px;
  font-weight: 700;
  margin-right: 3px;
}
.cookie-banner .accept {
  background: var(--electric-blue);
  color: #fff;
  transition: filter 0.17s;
}
.cookie-banner .accept:hover {
  background: var(--secondary);
  filter: brightness(1.07);
}
.cookie-banner .reject {
  background: var(--electric-pink);
  color: #fff;
}
.cookie-banner .reject:hover {
  background: var(--primary);
}
.cookie-banner .settings {
  background: #FCEECA;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-banner .settings:hover {
  background: var(--electric-yellow);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 19px 7px 11px 7px;
    gap: 9px;
  }
}
/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right:0; bottom:0;
  z-index: 5000;
  background: rgba(36,54,97,0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.23s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal .modal-content {
  background: #fff;
  border-radius: 18px;
  max-width: 400px;
  width: 92vw;
  min-width: 235px;
  padding: 32px 24px 27px 24px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  box-shadow: 0 7px 36px 0 rgba(36,54,97,0.12);
  position: relative;
}
.cookie-modal h3 {
  font-size: 1.25rem;
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 11px;
}
.cookie-category label {
  font-size: 1.01rem;
  font-weight: 600;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal .close {
  position: absolute;
  right: 19px;
  top: 15px;
  background: none;
  border: none;
  color: #999;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal .close:hover {
  color: var(--electric-pink);
}

/* ----------------------
   ACCESSIBLE FOCUS STYLES
---------------------- */
.btn-primary:focus, .btn-secondary:focus, .cookie-banner button:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .mobile-nav a:focus {
  outline: 3px solid var(--electric-purple);
  outline-offset: 1px;
  filter: brightness(1.09);
}

/* ----------------------
   UTILITY & VISIBILITY
----------------------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* For additional breathing space in main layout */
main {
  padding-top: 36px;
}

/* Section alternation backgrounds for energy */
section:nth-of-type(even) {
  background: rgba(38,166,154,0.065);
}

/* Animation for mobile-menu and cookie-modal */
.mobile-menu,
.cookie-modal {
  will-change: transform, opacity;
}

/* Subtle effect for content appearance */
.section, section, .card, .testimonial-card, .feature-item {
  animation: fadeup 0.88s cubic-bezier(.7,.15,.37,1) both;
}
@keyframes fadeup {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ----------------------
   END _style.css_
----------------------- */
