/* 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,
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 {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  line-height: 1.6;
  background: #FAF8F4;
  color: #2E4052;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #2E4052;
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover, a:focus {
  color: #B1C8DF;
  outline: none;
}
ul, ol {
  list-style-position: inside;
  margin-left: 0;
}
button, input, select, textarea {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: inherit;
  border: none;
  background: transparent;
  outline: none;
}
button {
  cursor: pointer;
}

/* BRAND FONTS & HEADINGS  ------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Playfair+Display:wght@400;600;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #2E4052;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.14;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.18;
}
h3 {
  font-size: 1.38rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.15rem;
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
}

p, li, blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2E4052;
  font-size: 1rem;
  margin-bottom: 12px;
}
blockquote {
  font-style: italic;
  color: #45566A;
  padding-left: 24px;
  border-left: 3px solid #B1C8DF;
  background: #F8E8D3;
  margin-bottom: 12px;
}

strong {
  font-weight: 600;
}

/* CONTAINER & SPACING  ------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    padding: 32px 10px;
    margin-bottom: 38px;
  }
}
/* FLEX LAYOUTS - MANDATORY ---------------------------------------------- */
.features-grid,
.service-cards,
.tips-grid,
.testimonials,
.card-container,
.card-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.features-grid > div,
.service-cards > div,
.tips-grid > div {
  flex: 1 1 220px;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 22px;
  box-shadow: 0 2px 10px rgba(46, 64, 82, 0.06);
  margin-bottom: 20px;
  min-width: 230px;
  transition: box-shadow 0.18s, transform 0.18s;
  border: 1px solid #edecec;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-grid > div:hover,
.service-cards > div:hover,
.tips-grid > div:hover {
  box-shadow: 0 8px 24px rgba(46, 64, 82, 0.13);
  transform: translateY(-4px) scale(1.01);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(46,64,82,0.07);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 18px;
  min-width: 200px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* TESTIMONIALS -------------------------------------------------------- */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  padding: 20px 24px;
  border-radius: 13px;
  box-shadow: 0 1.5px 9px rgba(46,64,82,0.08);
  min-width: 240px;
  flex: 1 1 280px;
  border: 1px solid #F8E8D3;
  margin-bottom: 24px;
}
.testimonial-card blockquote {
  margin-bottom: 8px;
}
.testimonial-card p {
  color: #2E4052;
  font-style: normal;
  font-size: 1rem;
}
.testimonial-card strong {
  color: #2E4052;
}

/* CALL TO ACTION BUTTONS ---------------------------------------------- */
.cta-primary {
  display: inline-block;
  background: #2E4052;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.11rem;
  letter-spacing: 0.02em;
  border-radius: 25px;
  padding: 14px 40px;
  margin: 12px 0;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(46, 64, 82, 0.11);
  border: 2px solid #2E4052;
  transition: background 0.18s, color 0.18s, transform 0.13s;
}
.cta-primary:hover,
.cta-primary:focus {
  background: #B1C8DF;
  color: #2E4052;
  transform: translateY(-2px) scale(1.03);
  border-color: #B1C8DF;
}

/* MAIN NAV & HEADER -------------------------------------------------- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 14px rgba(46, 64, 82, 0.07);
  position: sticky;
  top: 0;
  z-index: 1001;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  max-width: 1080px;
  margin: 0 auto;
}
.main-nav > a img {
  height: 42px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.main-nav ul li {
  list-style: none;
}
.main-nav ul li a {
  padding: 8px 16px;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.16s, color 0.16s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  background: #B1C8DF22;
  color: #2E4052;
}
.main-nav ul li .cta-primary {
  padding: 10px 28px;
  font-size: 1rem;
  margin-left: 16px;
}
/* Hide burger on desktop by default */
.mobile-menu-toggle {
  display: none;
  background: #2E4052;
  color: #fff;
  font-size: 2.3rem;
  padding: 6px 18px;
  border-radius: 7px;
  z-index: 1101;
  border: 2px solid #2E4052;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #B1C8DF;
  color: #2E4052;
  outline: none;
  border-color: #B1C8DF;
}
/* MOBILE MENU - HIDDEN BY DEFAULT */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(46,64,82,0.87);
  z-index: 1200;
  padding: 0 0 0 0;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.26s cubic-bezier(.4,0,.2,1), transform 0.32s;
}
.mobile-menu.active {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #fff;
  background: none;
  border: none;
  position: absolute;
  top: 24px; right: 28px;
  z-index: 2;
  padding: 8px;
  opacity: 0.97;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F8E8D3;
  color: #2E4052;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  margin-top: 90px;
  padding: 36px 20px 20px 38px;
}
.mobile-nav a {
  font-size: 1.22rem;
  font-family: 'Playfair Display', serif;
  padding: 12px 0;
  color: #fff;
  letter-spacing: 0.01em;
  border-radius: 7px;
  transition: background 0.17s, color 0.17s;
  min-width: 170px;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #B1C8DF;
  color: #2E4052;
}

/* HERO SECTION -------------------------------------------------------- */
.hero {
  background: #F8E8D3;
  border-radius: 0 0 38px 38px;
  padding: 64px 0 48px 0;
  margin-bottom: 24px;
  box-shadow: 0 2px 14px rgba(46, 64, 82, 0.08);
}
.hero h1 span {
  color: #B1C8DF;
  background: none;
}
.hero p {
  font-size: 1.18rem;
  max-width: 650px;
}
.hero .cta-primary {
  margin-top: 16px;
}
@media (max-width: 950px) {
  .hero { padding: 40px 0 32px 0; }
}
@media (max-width: 600px) {
  .hero { padding: 30px 0 16px 0; }
}

/* FLEX/DIV CONTAINERS, CARD, GRIDS  ------------------------------------- */
.section, .container, .content-wrapper, .features-grid, .service-cards, .tips-grid, .testimonials, .card-container, .content-grid {
  box-sizing: border-box;
}

/* SEPARATORS ------------------------------------------------------------ */
hr {
  border: none;
  border-top: 1px solid #B1C8DF33;
  margin: 38px 0;
}

/* FOOTER --------------------------------------------------------- */
footer {
  background: #2E4052;
  color: #fff;
  padding: 44px 0 18px 0;
  font-size: 0.98rem;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -1.5px 18px rgba(46,64,82,0.07);
  margin-top: 68px;
}
footer .content-wrapper {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  margin: 0 auto 8px auto;
}
.footer-nav a {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: underline dotted;
  transition: color 0.16s;
}
.footer-nav a:hover {
  color: #B1C8DF;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  color: #edecec;
  font-size: 1rem;
}
footer img[alt="Nebbia Creativa"], footer img[alt="Nebbia Creativa"] {
  width: 56px;
  margin-bottom: 3px;
}
footer small {
  margin-top: 10px;
  color: #B1C8DF;
  font-size: 0.94rem;
  letter-spacing: 0.03em;
  opacity: 0.87;
}

/* SECTIONS, CARDS & TYPICAL UTILITIES ------------------------------------ */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card {
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1.5px 9px rgba(46,64,82,0.09);
  margin-bottom: 20px;
  position: relative;
}
.card:last-child {
  margin-bottom: 0;
}

/* COOKIE CONSENT BANNER ----------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1500;
  background: #2E4052;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 38px;
  box-shadow: 0 -2px 18px rgba(46,64,82,0.17);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: transform 0.33s cubic-bezier(.79,-0.01,.6,.99), opacity 0.33s cubic-bezier(.79,-0.01,.6,.99);
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner.hidden {
  transform: translateY(180%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  flex: 1 1 auto;
  max-width: 530px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-banner button {
  border-radius: 18px;
  border: none;
  padding: 10px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  margin-left: 2px;
  box-shadow: 0 2px 7px rgba(46,64,82,0.11);
  transition: background 0.15s, color 0.15s, border 0.15s;
}
.cookie-banner .accept {
  background: #B1C8DF;
  color: #2E4052;
}
.cookie-banner .accept:hover { background: #fff; color: #2E4052; }
.cookie-banner .reject {
  background: #fff;
  color: #2E4052;
  border: 1.2px solid #B1C8DF;
}
.cookie-banner .reject:hover { background: #B1C8DF; color: #2E4052; }
.cookie-banner .settings {
  background: transparent;
  color: #fff;
  border: 1.2px solid #fff;
}
.cookie-banner .settings:hover { background: #F8E8D3; color: #2E4052; border: 1.2px solid #F8E8D3; }

/* COOKIE MODAL ------------------------------------------------------- */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 53%;
  transform: translate(-50%, -55%) scale(1);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 38px rgba(46,64,82,0.18);
  z-index: 1600;
  width: 98%;
  max-width: 420px;
  padding: 36px 28px 22px 28px;
  display: none;
  flex-direction: column;
  gap: 18px;
  color: #2E4052;
  animation: cookieModalFadeIn 0.44s ease;
}
@keyframes cookieModalFadeIn {
  from { transform: translate(-50%,-55%) scale(0.95); opacity: 0;}
  to { transform: translate(-50%,-55%) scale(1); opacity: 1; }
}
.cookie-modal.active {
  display: flex;
}
.cookie-modal h2 {
  font-size: 1.32rem;
  color: #2E4052;
  margin-bottom: 2px;
  font-weight: 600;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 1rem;
}
.cookie-modal input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #2E4052;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 5px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal button {
  padding: 9px 19px;
  border-radius: 14px;
  font-size: 1rem;
  font-family: inherit;
  margin: 2px;
}
.cookie-modal .save {
  background: #B1C8DF;
  color: #2E4052;
  border: none;
}
.cookie-modal .cancel {
  background: #fff;
  color: #2E4052;
  border: 1.2px solid #B1C8DF;
}

/* RESPONSIVE DESIGN --------------------------------------------------- */
@media (max-width: 1024px) {
  .main-nav {
    padding: 12px 18px;
  }
  .container {
    padding: 0 14px;
  }
  .footer-nav { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .features-grid,
  .service-cards,
  .tips-grid {
    gap: 16px;
  }
}
@media (max-width: 820px) {
  .main-nav ul { gap: 12px; }
  .features-grid > div,
  .service-cards > div,
  .tips-grid > div {
    min-width: 160px;
    padding: 20px 10px 17px;
  }
}
@media (max-width: 768px) {
  /* NAV: Show burger + hide menu */
  .main-nav ul {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    padding: 0 6px;
  }
  .hero {
    padding: 26px 0 15px 0;
    border-radius: 0 0 22px 22px;
  }
  .features-grid, .service-cards, .tips-grid, .testimonials {
    flex-direction: column;
    gap: 18px;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-nav {
    gap: 11px;
  }
}
@media (max-width: 450px) {
  body {
    font-size: 15px;
  }
  .features-grid > div,
  .service-cards > div,
  .tips-grid > div {
    padding: 14px 7px 11px;
  }
  .mobile-nav {
    padding: 24px 3vw 24px 6vw;
  }
  .hero h1 { font-size: 1.24rem; }
  .hero p { font-size: 1rem; }
}
/* Section & Card margin controls (mobile friendly) */
section, .section {
  margin-bottom: 38px;
}
.card, .testimonial-card {
  margin-bottom: 20px;
}

/* FORM ELEMENTS (where used) ------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea {
  background: #fff;
  border: 1.3px solid #B1C8DF;
  border-radius: 12px;
  padding: 12px 12px;
  margin-bottom: 14px;
  color: #2E4052; 
  width: 100%;
  font-size: 1rem;
  transition: border 0.16s;
  box-sizing: border-box;
}
input:focus, textarea:focus {
  border-color: #2E4052;
  outline: none;
}

/* SOCIAL ICONS (footer and contacts) -------------------------------------- */
a img[alt^="Instagram"], a img[alt^="Facebook"], a img[alt^="LinkedIn"] {
  vertical-align: middle;
  margin-right: 7px;
  width: 1.25em;
  height: 1.25em;
}

/* MISC MICRO-INTERACTIONS -------------------------------------------- */
.cta-primary, .cookie-banner button, .cookie-modal button {
  transition: background 0.18s, color 0.18s, box-shadow 0.14s, transform 0.17s;
}
.cta-primary:active, .cookie-banner button:active, .cookie-modal button:active {
  transform: scale(0.98);
  box-shadow: 0 1px 2px rgba(46,64,82,0.11);
}

/* Focus style accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid #B1C8DF;
  outline-offset: 1.5px;
}

/* Utility classes ---------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* END OF CSS */
