/*--------------------------------------------------
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 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #f5f7fa;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: 1.2;
  border: none;
  outline: none;
}
* {
  box-sizing: border-box;
}

/*--------------------------------------------------
Fonts
--------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Lato:wght@400;600;700&display=swap');

:root {
  --primary: #22213C;
  --secondary: #D9B78C;
  --accent: #FFFFFF;
  --electric1: #3D5AFE;
  --electric2: #FF6D00;
  --electric3: #00BFA6;
  --electric4: #FFD600;
  --text-darker: #171728;
  --text: #24243e;
  --text-light: #ffffff;
  --background-main: #f5f7fa;
  --background-card: #fff;
  --shadow: 0 4px 16px rgba(34,33,60,0.08), 0 2px 4px rgba(57,128,255,0.03);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Lato', Arial, sans-serif;
  --radius: 18px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--background-main);
  font-size: 16px;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.7rem;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  line-height: 1.16;
}
h3 {
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}
h4 {
  font-size: 1.18rem;
}

p, ul, ol, blockquote, address {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 15px;
  line-height: 1.7;
}
strong {
  font-weight: 700;
}

blockquote {
  background: var(--electric4);
  color: var(--primary);
  border-left: 8px solid var(--electric1);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 20px 0 24px 0;
  font-style: italic;
}
address {
  font-style: normal;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 16px;
}

/*--------------------------------------------------
Containers and Utility Classes
--------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  position: relative;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--background-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 270px;
  transition: box-shadow 0.22s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(34,33,60,0.18), 0 2px 8px var(--electric3);
}
.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 {
  background: var(--electric4);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  box-shadow: var(--shadow);
  min-width: 210px;
  flex: 1 1 210px;
  margin-bottom: 24px;
  transition: box-shadow 0.18s, transform 0.21s;
}
.feature-item:hover {
  box-shadow: 0 8px 28px var(--electric2);
  transform: translateY(-4px) scale(1.025);
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--background-card);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  color: #171728;
  position: relative;
}
.testimonial-card p {
  margin-bottom: 0;
  color: var(--text-darker);
  font-size: 1.18rem;
  line-height: 1.5;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--electric2);
  font-weight: 700;
  margin-left: 10px;
}

/* Responsive testimonial quality: high contrast text on light bg */
.testimonial-card {
  background: #fff;
  color: var(--primary);
}

/* Buttons & Links */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 16px 36px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  outline: none;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background 0.23s, color 0.22s, transform 0.13s;
  text-transform: uppercase;
  box-shadow: 0 1px 8px rgba(34,33,60,0.09);
}
.btn-primary {
  background: linear-gradient(90deg, var(--electric1) 0%, var(--electric2) 100%);
  color: #fff;
  border: 2px solid var(--electric1);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--electric2);
  color: #fff700;
  transform: translateY(-1.5px) scale(1.03);
}
.btn-secondary {
  background: var(--electric3);
  color: var(--primary);
  border: 2px solid var(--electric3);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--electric4);
  color: var(--electric1);
  transform: translateY(-1.5px) scale(1.03);
}

/*--------------------------------------------------
Navigation Styles
--------------------------------------------------*/
header {
  background: var(--primary);
  color: #fff;
  width: 100%;
  z-index: 30;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  padding: 0 0 0 2px;
  height: 80px;
  position: relative;
}
.main-nav > a img {
  height: 42px;
  width: auto;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav ul li a {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 1.03rem;
  transition: background 0.17s, color 0.18s;
}
.main-nav ul li a:hover,
.main-nav ul li a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.main-nav .btn-primary {
  margin-left: 16px;
}

/* Hamburger & Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: var(--electric1);
  color: #fff;
  border-radius: 50%;
  border: none;
  font-size: 2.2rem;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  cursor: pointer;
  transition: background 0.17s;
  z-index: 55;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--electric2);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(112deg, var(--electric1) 60%, var(--primary) 100%);
  box-shadow: -8px 0 38px 0 rgba(34,33,60,0.24);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.39,.58,.57,1);
  padding: 26px 26px 0 24px;
  z-index: 88;
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  color: #fff;
  background: var(--electric2);
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  padding: 0 12px;
  align-self: flex-end;
  margin-bottom: 18px;
  cursor: pointer;
  transition: background 0.17s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--electric4);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  background: transparent;
  padding: 16px 2px 16px 8px;
  border-radius: var(--radius);
  transition: background 0.19s, color 0.17s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* Hide desktop nav on mobile, show mobile toggle */
@media (max-width: 1023px) {
  .main-nav ul,
  .main-nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    margin-right: 14px;
  }
}
@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/*--------------------------------------------------
Hero Section
--------------------------------------------------*/
.hero {
  background: linear-gradient(100deg, var(--electric4) 0%, var(--secondary) 100%);
  min-height: 390px;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 60px;
  box-shadow: 0 6px 48px rgba(34,33,60,0.08);
  position: relative;
  padding: 0;
}
.hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 10px;
  color: var(--primary);
}
.hero h1 {
  color: var(--primary);
  font-size: 2.7rem;
  max-width: 600px;
}
.hero p {
  color: var(--primary);
  max-width: 460px;
  font-size: 1.23rem;
}

/* Features Section (Homepage) */
.features {
  margin-bottom: 60px;
  padding: 40px 0;
  background: var(--background-main);
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-item img {
  width: 44px;
  height: 44px;
}
.feature-item h3 {
  color: var(--text-darker);
  font-weight: 800;
  font-size: 1.25rem;
}
.feature-item p {
  margin-bottom: 0;
}

/* About Preview Section */
.about-preview {
  margin-bottom: 60px;
  padding: 40px 0;
  background: var(--primary);
  color: #fff;
}
.about-preview .content-wrapper {
  align-items: flex-start;
  gap: 12px;
}
.about-preview h2, .about-preview p {
  color: #fff;
}
.about-preview .btn-secondary {
  margin-top: 8px;
  background: var(--electric4);
  color: var(--primary);
  border: 2px solid var(--electric4);
}
.about-preview .btn-secondary:hover {
  color: var(--electric3);
  background: #fff;
}

/* Articles Section (Homepage + articoli) */
.articles-preview, .articles-list, .articles-grid {
  margin-bottom: 60px;
}
.articles-list, .articles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.articles-list article, .articles-grid article {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  min-width: 260px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  transition: box-shadow 0.15s, transform 0.13s;
}
.articles-list article:hover, .articles-grid article:hover {
  box-shadow: 0 8px 28px var(--electric1);
  transform: translateY(-3px) scale(1.025);
}
.articles-list article h3, .articles-grid article h3 {
  font-size: 1.18rem;
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 800;
}
.articles-grid {
  gap: 24px;
}

.categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}
.categories ul li {
  padding: 8px 20px;
  background: var(--electric3);
  color: #fff;
  font-family: var(--font-display);
  border-radius: 24px;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.3px;
}

/* Benefits, Details & Team Section */
.benefits ul, .services-list ul, .about ul, .team ul, .why-us ul, .faq ul, .contact-details ul, .footer-contacts ul, .footer-links ul {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-bottom: 18px;
  align-items: flex-start;
}
.benefits ul li, .services-list ul li, .about ul li, .team ul li, .why-us ul li, .faq ul li {
  background: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 1.05rem;
}
.services-list ul li {
  border-left: 6px solid var(--electric1);
  padding-left: 16px;
  margin-bottom: 12px;
}
.services-list ul li h3 {
  margin-bottom: 4px;
}

.text-section {
  margin-bottom: 18px;
}

/* CTA Section */
.cta {
  background: linear-gradient(90deg, var(--electric3) 0%, var(--electric1) 100%);
  color: #fff;
  border-radius: var(--radius);
  margin-bottom: 60px;
  padding: 52px 0;
}
.cta .content-wrapper {
  align-items: center;
  text-align: center;
}
.cta h2 {
  color: #fff;
  font-size: 2.1rem;
  margin-bottom: 24px;
}
.cta .btn-primary {
  margin-top: 0;
}

/* Thank You page section */
.thank-you-message {
  min-height: 310px;
  display: flex;
  background: var(--electric3);
  color: var(--primary);
  align-items: center;
}
.thank-you-message .content-wrapper {
  align-items: center;
  text-align: center;
}
.thank-you-message h1 {
  font-family: var(--font-display);
  color: var(--primary);
}

/* Legal Section */
.legal .container {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 40px 0 60px 0;
  padding: 36px 0;
}
.legal h1 {
  font-size: 2.15rem;
  margin-bottom: 28px;
}
.legal h2 {
  font-size: 1.22rem;
  margin-bottom: 4px;
  color: var(--electric1);
}
.legal ul li {
  background: transparent;
  padding-left: 0;
  color: var(--primary);
  box-shadow: none;
  border-radius: 0;
}

/* Contact Details */
.contact-details img {
  vertical-align: middle;
  margin-right: 8px;
}

/*--------------------------------------------------
Footer
--------------------------------------------------*/
footer {
  color: var(--primary);
  background: #f8f7fa;
  border-top: 6px solid var(--electric1);
  font-size: 1rem;
  padding: 0 0 18px 0;
  margin-top: 60px;
}
footer .container {
  padding-top: 44px;
  padding-bottom: 18px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.footer-brand img {
  width: 48px;
}
.footer-brand p {
  font-size: 1.1rem;
  color: var(--primary);
}
.footer-contacts h4,
.footer-links h4,
.footer-social h4 {
  font-size: 1.03rem;
  color: var(--electric1);
  margin-bottom: 10px;
}
.footer-contacts ul, .footer-links ul {
  padding: 0;
  margin: 0;
  gap: 9px;
}
.footer-contacts ul li, .footer-links ul li {
  background: none;
  box-shadow: none;
  padding: 0 0 0 0;
  display: flex;
  align-items: center;
  color: var(--primary);
  font-size: 0.99rem;
}
.footer-contacts ul li img {
  width: 22px;
  height: 22px;
  margin-right: 7px;
}
.footer-links ul li a {
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: color 0.19s;
}
.footer-links ul li a:hover {
  color: var(--electric1);
}
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-social a img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  transition: transform 0.15s;
}
.footer-social a:hover img {
  transform: scale(1.16) rotate(-5deg);
}

/*--------------------------------------------------
Cookie Consent Banner & Modal
--------------------------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1200;
  width: 100vw;
  background: var(--electric1);
  color: #fff;
  box-shadow: 0 -6px 36px rgba(34,33,60,0.19);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 10px 16px 10px;
  gap: 13px;
  transition: transform 0.42s;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner p {
  max-width: 730px;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 6px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner .cookie-btn {
  border-radius: var(--radius);
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.19s, color 0.18s;
}
.cookie-btn.accept {
  background: var(--electric3);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--electric4);
  color: var(--electric1);
}
.cookie-btn.reject {
  background: var(--electric2);
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fff;
  color: var(--electric2);
}
.cookie-btn.settings {
  background: #fff;
  color: var(--electric3);
  border: 1.8px solid var(--electric3);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--electric3);
  color: #fff;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,33,60,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  padding: 34px 24px;
  border-radius: 20px;
  width: 90vw;
  max-width: 400px;
  box-shadow: 0 6px 42px 0 var(--electric1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  position: relative;
  color: var(--primary);
}
.cookie-modal-content h3 {
  color: var(--electric1);
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.cookie-category label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--electric3);
  width: 1.15em;
  height: 1.15em;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  align-self: stretch;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal-close {
  position: absolute;
  top: 10px; right: 14px;
  background: var(--electric2);
  border-radius: 50%;
  border: none;
  width: 36px; height: 36px;
  color: #fff;
  font-size: 1.47rem;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--electric1);
}

/*--------------------------------------------------
Responsive Layouts
--------------------------------------------------*/
@media (max-width: 1023px) {
  .footer-social {
    flex-direction: row;
    gap: 18px;
  }
  .footer-social h4 {
    display: none;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
    padding: 0 12px;
  }
  .content-wrapper {
    gap: 15px;
  }
  .features-grid, .articles-list, .articles-grid, .card-container, .content-grid {
    gap: 14px;
  }
  .footer-brand img {
    width: 40px;
  }
  footer .content-wrapper {
    gap: 32px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.36rem; }
  .main-nav {
    padding-left: 0;
    height: 66px;
  }
  .sections, .section, .features, .about-preview, .cta, .articles-list, .benefits, .services-list, .hero {
    padding: 28px 0;
    margin-bottom: 38px;
  }
  .hero {
    min-height: unset;
    padding: 18px 0 18px 0;
    box-shadow: none;
  }
  .hero h1 {
    font-size: 1.3rem;
    margin-bottom: 14px;
  }
  .feature-item, .card, .articles-list article, .articles-grid article {
    padding: 17px 11px;
    min-width: unset;
  }
  .features-grid, .articles-list, .articles-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 10px;
  }
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 11px;
  }
  .faq ul, .services-list ul {
    gap: 9px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 425px) {
  .section, .features, .about-preview, .cta, .articles-list, .benefits, .services-list, .hero {
    padding: 17px 0;
  }
  .container { padding: 0 4px; }
  .main-nav > a img {
    height: 28px;
  }
  .mobile-menu-toggle {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }
}

/* Micro-interactions */
a, button {
  transition: color 0.2s, background 0.2s, box-shadow 0.16s, transform 0.16s;
}
.btn-primary:active,
.btn-secondary:active {
  transform: scale(0.97);
}

/* Accessibility Improvements */
:focus-visible {
  outline: 2px solid var(--electric1);
  outline-offset: 2px;
}

/* Utility Classes */
.hide {
  display: none !important;
}
.show {
  display: block !important;
}

/* End of style.css */
