/* -----------------------------
   1. CSS RESET & BASE STYLES
------------------------------*/
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; border: 0; }
body {
  font-family: 'Nunito', Arial, sans-serif;
  color: #233042;
  background: #fff;
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.3s;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #233042;
  text-decoration: none;
  transition: color 0.18s;
}
a:focus { outline: 2px solid #56A4A0; outline-offset: 2px; }

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #233042;
  line-height: 1.15;
  margin-bottom: 18px;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 1.75rem; margin-bottom: 14px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
h5, h6 { font-size: 1rem; margin-bottom: 6px; }

p, ul, ol, li {
  margin-bottom: 0;
  font-family: 'Nunito', Arial, sans-serif;
  color: #233042;
  font-size: 1rem;
}

strong { font-weight: 700; }

/* Remove list styles */
ul, ol { list-style: none; }
ul li, ol li { margin-bottom: 8px; }
ul:last-child li:last-child, ol:last-child li:last-child { margin-bottom: 0; }

/* Selection */
::selection { background: #F4D06F; color: #233042; }

/*-------------------------
   2. CONTAINER & LAYOUT
--------------------------*/
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}

@media (max-width: 900px) {
  .container { padding: 0 12px; }
  .section { padding: 30px 10px; }
}
@media (max-width: 600px) {
  .section { padding: 24px 4px; margin-bottom: 40px; }
}

/*-----------------------------
   3. HEADER & NAVIGATION
------------------------------*/
header {
  background: #fff;
  box-shadow: 0 1px 10px rgba(35,48,66,0.03);
  position: sticky;
  top: 0;
  z-index: 900;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  min-height: 76px;
}
header a img {
  height: 38px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #233042;
  opacity: 0.92;
  padding: 8px 0 8px 0;
  border-radius: 6px;
  transition: background 0.2s, color 0.18s;
  position: relative;
}
nav a:hover, nav a:focus {
  color: #56A4A0;
  background: rgba(86,164,160,0.07);
}

.cta-btn {
  background: #56A4A0;
  color: #fff !important;
  border-radius: 32px;
  padding: 12px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  transition: background .18s, box-shadow .22s;
  box-shadow: 0 2px 8px rgba(86,164,160,0.07);
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  display: inline-block;
  margin-left: 8px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #233042;
  color: #fff;
  box-shadow: 0 4px 12px rgba(35,48,66,0.11);
  outline: none;
}

/* Mobile Burger Button */
.mobile-menu-toggle {
  background: transparent;
  color: #233042;
  border: none;
  font-size: 2rem;
  padding: 7px 16px;
  margin-left: 8px;
  line-height: 1;
  display: none;
  cursor: pointer;
  transition: color .18s, background .12s;
  border-radius: 6px;
}
.mobile-menu-toggle:focus{
  background: #F4D06F;
  color: #233042;
}
/* Mobile Nav Styles & Animations */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.42,0,.58,1);
  box-shadow: 0 4px 32px rgba(35,48,66,0.09);
  padding: 0;
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.32s cubic-bezier(.42,0,.58,1);
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: transparent;
  border: none;
  color: #233042;
  margin: 24px 24px 0 0;
  align-self: flex-end;
  cursor: pointer;
  transition: color .16s;
}
.mobile-menu-close:focus { color: #56A4A0; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 40px 32px;
}
.mobile-nav a {
  font-size: 1.22rem;
  padding: 14px 0;
  width: 100%;
  color: #233042;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: #56A4A0;
  outline: none;
}

@media (max-width: 992px) {
  header nav { display: none; }
  .cta-btn { display: none; }
  .mobile-menu-toggle { display: inline-block; }
}
/* Show desktop nav and CTAs on wide screens */
@media (min-width: 993px) {
  .mobile-menu { display: none !important; }
}

/*------------------------------
   4. HERO, SECTION & CONTENT
-------------------------------*/
main section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 20px 0 rgba(35,48,66,0.04);
  margin-bottom: 60px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.text-section a {
  margin-top: 10px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(35,48,66,0.05);
  padding: 30px 22px;
  flex: 1 1 212px;
  min-width: 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #f5f6f8;
  transition: box-shadow 0.19s, transform .16s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 32px rgba(86,164,160,0.09);
  transform: translateY(-3px) scale(1.012);
}
.feature-grid img {
  width: 40px; height: 40px;
  margin-bottom: 8px;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.service-list > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 10px rgba(35,48,66,0.05);
  padding: 26px 20px;
  flex: 1 1 260px;
  min-width: 210px;
  max-width: 370px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid #f3f4f6;
  transition: box-shadow 0.19s, transform .16s;
}
.service-list > div:hover {
  box-shadow: 0 8px 26px rgba(86,164,160,0.09);
  transform: translateY(-3px) scale(1.012);
}
.service-list span {
  color: #56A4A0;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  margin-top: 4px;
}
.service-list a { color: #56A4A0; border-bottom: 1px solid #F4D06F; transition: border-color 0.14s; }
.service-list a:hover { border-bottom: 1px solid #233042; }

@media (max-width: 800px) {
  .feature-grid, .service-list {
    gap: 14px;
  }
  .feature-grid > div, .service-list > div {
    min-width: 150px;
    max-width: 100%;
    padding: 18px 10px;
  }
}
@media (max-width: 600px) {
  .feature-grid, .service-list {
    flex-direction: column;
  }
}


/* List Styles in text (for About and Legal pages) */
.content-wrapper ul {
  margin: 0 0 12px 18px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #233042;
  font-size: 1rem;
}
.content-wrapper ul li {
  position: relative;
  padding-left: 18px;
}
.content-wrapper ul li:before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: #56A4A0;
  font-size: 1.1em;
  line-height: 1;
}

/*-----------------------------
   5. TESTIMONIAL CARDS
------------------------------*/
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(35,48,66,0.07);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #F4D06F;
  max-width: 500px;
  transition: box-shadow 0.19s, transform .16s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(244,208,111,0.14);
  transform: translateY(-2px) scale(1.013);
}
.testimonial-card p {
  color: #233042;
  font-size: 1.08rem;
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 500;
  margin-bottom: 4px;
}
.testimonial-card strong {
  color: #56A4A0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
}
@media (min-width: 760px) {
  .content-wrapper .testimonial-card {
    max-width: 420px;
  }
}
@media (max-width: 600px) {
  .testimonial-card {
    max-width: 100%;
    padding: 14px 8px;
  }
}

/*------------------------------
   6. FOOTER
-------------------------------*/
footer {
  background: #f9fafb;
  padding: 48px 0 24px 0;
  border-top: 1.5px solid #f4d06f2e;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand img {
  height: 40px; width: auto;
  margin-bottom: 22px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 170px;
}
.footer-links a {
  color: #233042;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: .77;
  padding: 2px 0;
  border-radius: 5px;
  transition: background .18s, color .12s;
}
.footer-links a:hover, .footer-links a:focus {
  color: #56A4A0;
  background: #F4D06F24;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 17px;
  margin-bottom: 10px;
}
.footer-social a img { width: 26px; height: 26px; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: .98rem;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #233042;
  opacity: .8;
}
.footer-contact img {
  width: 18px; height: 18px;
  opacity: .87;
}
@media (max-width: 900px) {
  footer .container { gap: 18px; }
  .footer-links { min-width: 120px; font-size: .97rem; }
}
@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}
@media (max-width: 480px) {
  .footer-contact p { font-size: .96rem; }
}

/*-------------------------------
   7. FLEXBOX SPACING & PATTERNS
-------------------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 10px rgba(35,48,66,0.07);
  margin-bottom: 20px;
  padding: 24px;
  position: relative;
}
.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;
}

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

/*------------------------
   8. BUTTONS & INTERACTIONS
-------------------------*/
button, .cta-btn {
  cursor: pointer;
  border: none;
  transition: background 0.18s, color 0.17s, box-shadow 0.18s;
}
button:focus, .cta-btn:focus { outline: 2px solid #F4D06F; }

/*-----------------------------
   9. COOKIE CONSENT BANNER
------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #233042;
  color: #fff;
  z-index: 9700;
  padding: 24px 16px 16px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 -2px 28px rgba(35,48,66,0.11);
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  animation: cslidein 0.6s cubic-bezier(.13, .72, .36, 1.02);
}
.cookie-banner__msg {
  flex: 1 1 auto;
  margin-right: 32px;
  color: #fff;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  padding: 9px 21px;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  transition: background 0.16s, color 0.16s;
}
.cookie-btn--accept{
  background: #56A4A0;
  color: #fff;
}
.cookie-btn--accept:hover, .cookie-btn--accept:focus {
  background: #F4D06F;
  color: #233042;
}
.cookie-btn--reject{
  background: #fff;
  color: #233042;
  border: 1px solid #56A4A0;
}
.cookie-btn--reject:hover, .cookie-btn--reject:focus{
  background: #56A4A0;
  color: #fff;
}
.cookie-btn--settings{
  background: transparent;
  color: #F4D06F;
  border: 1.5px solid #F4D06F;
}
.cookie-btn--settings:hover, .cookie-btn--settings:focus{
  background: #F4D06F;
  color: #233042;
}

@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 8px 8px 8px; font-size: 0.96rem; }
  .cookie-banner__msg { margin-right: 0; }
}

@keyframes cslidein {
  from { transform: translateY(100%); opacity:0.2; }
  to{   transform: translateY(0); opacity:1; }
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  z-index: 999999;
  left: 0; top: 0; right:0; bottom: 0;
  background: rgba(23, 33, 41, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .26s;
}
.cookie-modal.open {
  opacity: 1; visibility: visible;
}
.cookie-modal__dialog {
  background: #fff;
  border-radius: 18px;
  max-width: 400px;
  width: 94vw;
  padding: 32px 28px 28px 28px;
  box-shadow: 0 10px 44px rgba(35,48,66,0.13);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cmodal 0.33s cubic-bezier(.13,.74,.49,.97);
}
@keyframes cmodal {
  from{ transform: translateY(38px) scale(.96); opacity:.15; }
  to{   transform: translateY(0) scale(1); opacity:1; }
}
.cookie-modal__close {
  position: absolute;
  right: 21px; top: 19px;
  background: transparent;
  border: none;
  font-size: 1.7rem;
  color: #233042;
  cursor: pointer;
  transition: color .13s;
}
.cookie-modal__close:focus {color: #56A4A0; outline: none;}
.cookie-modal__title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.31rem;
  font-weight: 600;
  margin-bottom: 9px;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 6px 0 16px 0;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
}
.cookie-modal__switch {
  min-width: 36px;
  height: 20px;
  background: #ececec;
  border-radius: 12px;
  position: relative;
  transition: background .18s;
}
.cookie-modal__switch input[type=checkbox] {
  opacity: 0; width: 36px; height: 20px; position: absolute; left: 0; top: 0; cursor: pointer;
}
.cookie-modal__switch input[type=checkbox]:checked + span {
  left: 18px; background: #56A4A0;
}
.cookie-modal__switch span {
  display: block;
  width: 16px; height: 16px;
  background: #d2d2d2;
  border-radius: 50%;
  position: absolute;
  top: 2px; left: 2px;
  transition: left 0.18s, background 0.18s;
}
.cookie-modal__category.essential {
  color: #56A4A0;
}
.cookie-modal__footer {
  display: flex;
  gap: 11px;
  justify-content: flex-end;
  margin-top: 20px;
}

/*-------------------------------
   10. FORM ELEMENTS
-------------------------------*/
input, textarea, select {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1rem;
  padding: 12px;
  border-radius: 8px;
  border: 1.5px solid #e7eaef;
  background: #fafbfc;
  transition: border .16s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: #56A4A0;
  outline: none;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 3px;
  color: #233042;
  display: inline-block;
}

/*-----------------------------
   11. CUSTOM UTILITIES
------------------------------*/
.gap-10 { gap: 10px !important; }
.gap-24 { gap: 24px !important; }
.m-bottom-20 { margin-bottom: 20px; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/*-----------------------------
   12. SCROLLBAR (subtle, minimal)
------------------------------*/
::-webkit-scrollbar {
  width: 8px;
  background: #f5f7fa;
}
::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 4px;
}

/*-----------------------------
   13. MISC, ERRORS, THANK YOU
------------------------------*/
.thankyou-section, .error-section {
  text-align: center;
  padding: 40px 0;
}

/*-------------------------------
   14. RESPONSIVE: TYPOGRAPHY & SPACING
-------------------------------*/
@media (max-width: 600px) {
  h1 { font-size: 1.67rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1rem; }
  .content-wrapper { gap: 12px; }
}

/*-----------------------------
   15. ACCENT CLASSES (optional highlight)
------------------------------*/
.accent {
  color: #F4D06F;
}
.bg-accent {
  background: #F4D06F;
  color: #233042;
}
.bg-secondary {
  background: #56A4A0;
  color: #fff;
}

/*---------------------------------
   END CSS for VORTICE CONOSCENZA
----------------------------------*/