/* =====================================================
   SOLEVERDE NAPOLI | style.css
   Brand Modern Gradient Style, Responsive Flexbox Only
   ===================================================== */

/* ==========
 1. CSS RESET
=========== */
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: #f6faf9;
  color: #1d3142;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
  display: inline-block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1em;
  line-height: 1.4;
  background: none;
  border: none;
  outline: none;
}

/* =============
 2. ROOT & BRAND
================ */
:root {
  --primary: #24567A;
  --secondary: #27A36B;
  --accent: #F7EEC6;
  --light: #ffffff;
  --dark: #1d3142;
  --gray: #f6faf9;
  --border: #dde7ee;
  --radius: 18px;
  --shadow: 0 8px 32px rgba(39, 163, 107, 0.07);
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: var(--dark);
  background: linear-gradient(115deg, var(--accent) 0%, var(--gray) 100%);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.15;
}
h1 { font-size: 2.4rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 8px; }

p, li, ul { font-size: 1rem; }
.lead {
  font-size: 1.18rem;
  color: var(--secondary);
  margin-bottom: 16px;
  font-weight: 500;
}

strong, b { color: var(--primary); font-weight: 700; }

/* Layout container styles */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* Section and content spacing */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
@media (max-width: 600px) {
  section {
    padding: 32px 0 0 0;
    margin-bottom: 42px;
  }
}

/* Flexbox content patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { position: relative; margin-bottom: 20px; background: var(--light); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 22px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow 0.2s; }
.card:hover { box-shadow: 0 12px 34px rgba(36,86,122,0.15); }
.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; background: var(--accent); color: var(--dark); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; position: relative; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* RESPONSIVE FLEXBOX */
@media (max-width: 900px) {
  .content-grid,
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .text-image-section,
  .content-grid,
  .content-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ===========
 3. HEADER & NAV
============ */
header {
  background: linear-gradient(115deg, var(--primary) 60%, var(--secondary) 100%);
  min-height: 60px;
  color: var(--light);
  box-shadow: 0 2px 16px rgba(36, 86, 122, 0.08);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
nav img {
  height: 34px;
  margin-right: 16px;
  vertical-align: middle;
}
nav a {
  color: var(--light);
  font-weight: 500;
  font-family: 'Montserrat', Arial,sans-serif;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  line-height: 1.2;
}
nav a.cta-btn {
  background: var(--accent);
  color: var(--primary);
  font-weight: bold;
  padding: 8px 22px;
  border-radius: 24px;
  margin-left: 14px;
  box-shadow: 0 2px 12px rgba(247, 238, 198, 0.25);
  transition: background 0.25s, box-shadow 0.22s, color 0.21s;
}
nav a:hover,
nav a:focus {
  background: rgba(255,255,255,0.14);
  color: var(--accent);
}
nav a.cta-btn:hover,
nav a.cta-btn:focus {
  background: var(--secondary);
  color: var(--light);
  box-shadow: 0 6px 18px rgba(39,163,107,0.15);
}

/* ===============
 4. MOBILE MENU
================ */
.mobile-menu-toggle {
  display: none;
  appearance: none;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.065);
  transition: background 0.16s;
  z-index: 120;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--secondary);
}

@media (max-width: 980px) {
  nav:not(.footer-nav) {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, var(--primary) 75%, var(--secondary) 100%);
  color: var(--light);
  z-index: 999;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transition: transform 0.34s cubic-bezier(.56,.05,.41,.97);
  box-shadow: 0 0 32px rgba(36,86,122,0.13);
  transform: translateX(-100vw);
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 30px 0 24px 24px;
  background: var(--accent);
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
  border: none;
  align-self: flex-start;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 1010;
  box-shadow: 0 2px 6px rgba(36,86,122,0.10);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 20px;
  align-items: flex-start;
  padding: 0 32px;
}
.mobile-nav a {
  width: 100%;
  padding: 14px 0;
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  border-radius: 0;
  letter-spacing: 0.01em;
  transition: background 0.13s, color 0.12s;
}
.mobile-nav a:last-child{ border-bottom: none; }
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: rgba(247,238,198,0.12);
  color: var(--secondary);
}
@media (min-width:981px){
  .mobile-menu { display: none !important; }
}

/* ========
 5. BUTTONS
========= */
.cta-btn {
  display: inline-block;
  background: linear-gradient(94deg, var(--secondary) 60%, #4ecb96 100%);
  color: var(--light);
  border: none;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 13px 30px;
  margin-top: 12px;
  box-shadow: 0 5px 20px rgba(39,163,107, 0.11);
  transition: background 0.23s, box-shadow 0.21s, color 0.21s, transform 0.18s;
  cursor: pointer;
  text-align: center;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 38px rgba(39,163,107, 0.15);
}

/* Utility buttons */
button, .btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  padding: 11px 24px;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(36,86,122,0.07);
  background: var(--secondary);
  color: var(--light);
  transition: background 0.21s, color 0.18s, box-shadow 0.19s;
}
button:hover, .btn:hover {
  background: var(--primary);
  color: var(--accent);
}

/* ===========
6. MAIN LAYOUT
=========== */
main {
  margin-top: 0;
  padding-bottom: 36px;
}

/* Features / cards lists */
.features-list,
.services-list,
.technology-list,
.benefits-grid,
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  align-items: stretch;
}
.features-list li,
.services-list li,
.technology-list li,
.benefits-grid li,
.blog-list li {
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px 18px 18px;
  min-width: 210px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.17s;
}
.features-list li:hover,
.services-list li:hover,
.technology-list li:hover,
.benefits-grid li:hover,
.blog-list li:hover {
  box-shadow: 0 10px 26px rgba(36,86,122,0.14);
  transform: translateY(-3px) scale(1.03);
}
.features-list img,
.services-list img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
}

/* Project summary, case study, etc. */
.project-summary,
.case-study {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px 18px 20px;
  margin-bottom: 20px;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}
.project-summary h3,
.case-study h3 {
  color: var(--secondary);
  margin-bottom: 6px;
  font-size: 1.18rem;
}

/* Blog List and Article Cards */
.blog-list {
  gap: 24px;
}
.blog-list li {
  border-left: 6px solid var(--secondary);
  padding-left: 23px;
  background: var(--light);
}
.category {
  display: inline-block;
  background: var(--secondary);
  color: var(--light);
  border-radius: 12px;
  font-size: 0.92rem;
  padding: 2px 12px;
  margin-top: 10px;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
}

.categories-filter {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0 6px 0;
}
.categories-filter strong {
  color: var(--secondary);
  font-size: 1rem;
}
.categories-filter a {
  color: var(--primary);
  font-weight: 500;
  background: var(--gray);
  border-radius: 12px;
  padding: 4px 13px;
  transition: background 0.19s, color 0.17s;
}
.categories-filter a:hover,
.categories-filter a:focus {
  background: var(--secondary);
  color: var(--light);
}

/* Cards and Testimonial Cards */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.testimonial-card {
  background: var(--accent);
  color: var(--dark);
  font-size: 1.04rem;
  font-style: italic;
  border-left: 5px solid var(--secondary);
  box-shadow: var(--shadow);
}
.testimonial-card strong {
  font-style: normal;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 8px;
}

/* ============
 7. TEXT AREAS
=========== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.text-section ul {
  margin: 10px 0 10px 24px;
  padding-left: 0;
  list-style: disc inside;
}
.text-section ul li {
  margin-bottom: 6px;
}
.text-section img {
  width: 26px;
  margin-right: 5px;
  vertical-align: middle;
}

/* Map embed */
.map-embed {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-top: 8px;
  box-shadow: var(--shadow);
}
.map-embed img {
  width: 38px;
  height: 38px;
}

/* Infographics */
.infographics {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ===========
 8. FOOTER
============ */
footer {
  background: linear-gradient(109deg, var(--primary), var(--secondary));
  color: var(--accent);
  padding: 46px 0 14px 0;
  font-size: 1rem;
  margin-top: 32px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.footer-logo img {
  width: 64px; height: auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.footer-nav a {
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 3px 10px;
  border-radius: 8px;
  background: transparent;
  transition: background 0.13s, color 0.11s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: rgba(247,238,198,0.10);
  color: var(--light);
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-info span {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
  color: var(--accent);
  font-size: 1rem;
}
.footer-info img {
  width: 18px; height: 18px;
  vertical-align: middle;
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}

/* ==============
 9. COOKIE BANNER
================ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10004;
  background: var(--light);
  box-shadow: 0 -2px 32px rgba(36,86,122,0.13);
  padding: 26px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 0.36s;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  border-top: 2px solid var(--secondary);
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner p {
  color: var(--dark);
  font-size: 1rem;
  text-align: center;
  margin-bottom: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  margin-top: 2px;
  flex-wrap: wrap;
}
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 16px;
  font-size: 1rem;
  padding: 7px 22px;
  background: var(--secondary);
  color: var(--light);
  border: none;
  transition: background 0.17s, color 0.14s;
  box-shadow: 0 2px 12px rgba(39,163,107,0.09);
  cursor: pointer;
}
.cookie-banner .cookie-btn.accept { background: var(--secondary); color: var(--light); }
.cookie-banner .cookie-btn.reject { background: var(--primary); color: var(--accent); }
.cookie-banner .cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(247,238,198,0.13);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--primary);
  color: var(--accent);
}
@media (max-width: 600px) {
  .cookie-banner {
    padding: 16px 10px 14px 10px;
    gap: 9px;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .cookie-banner .cookie-btn {
    width: 100%;
    text-align: center;
  }
}

/* COOKIE MODAL POPUP */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,86,122,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10030;
  transition: opacity 0.25s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--light);
  border-radius: var(--radius);
  padding: 34px 30px 28px 30px;
  box-shadow: 0 12px 48px rgba(36,86,122,0.13);
  min-width: 320px;
  max-width: 90vw;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  animation: fadeInScale 0.3s;
}
@keyframes fadeInScale {
  0% { transform: scale(0.90); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  margin-bottom: 8px;
  color: var(--secondary);
  font-size: 1.2rem;
}
.cookie-modal ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 3px 0 10px 0;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-modal label {
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal .cookie-switch {
  width: 44px;
  height: 24px;
  background: #e1f7e8;
  border-radius: 12px;
  position: relative;
  margin-right: 7px;
  flex-shrink: 0;
}
.cookie-modal .cookie-switch input[type="checkbox"] {
  opacity: 0;
  width: 44px;
  height: 24px;
  cursor: pointer;
  position: absolute;
  left: 0; top: 0;
  margin: 0;
  z-index: 2;
}
.cookie-modal .cookie-switch .slider {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: var(--secondary);
  border-radius: 50%;
  transition: left 0.18s;
  z-index: 1;
}
.cookie-modal .cookie-switch input:checked + .slider {
  left: 23px;
  background: var(--primary);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 3px;
}
.cookie-modal-actions .cookie-btn {
  min-width: 84px;
}
.cookie-modal .always-on {
  font-size: 0.96rem;
  margin-left: 6px;
  color: var(--secondary);
}

@media (max-width: 540px) {
  .cookie-modal {
    padding: 22px 8px 16px 8px;
    min-width: 170px;
    gap: 12px;
  }
}

/* ==========
10. UTILITIES
============ */
.mt-2 { margin-top: 16px; } .mb-3 { margin-bottom: 24px; } .mb-2 {margin-bottom: 16px;}
.text-center { text-align: center; }
.glow {
  box-shadow: 0 0 16px 3px var(--secondary);
  animation: pulseGlow 2.7s infinite ease-in-out;
}
@keyframes pulseGlow { 
  0%, 100% { box-shadow: 0 0 14px 1px var(--secondary); }
  50% { box-shadow: 0 0 18px 5px var(--accent); }
}

/* ============
11. MEDIA QUERIES
=============== */
@media (max-width: 980px) {
  .features-list,
  .services-list,
  .technology-list,
  .benefits-grid,
  .blog-list {
    flex-direction: column;
    gap: 16px;
  }
  .features-list li,
  .services-list li,
  .technology-list li,
  .benefits-grid li,
  .blog-list li,
  .project-summary, .case-study {
    min-width: 150px;
    width: 100%;
    flex: 1 1 100%;
    margin-bottom: 20px;
    padding: 18px 13px 16px 15px;
  }
}

@media (max-width: 540px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.22rem; }
  .cta-btn { font-size: 0.99rem; padding: 11px 18px; }
  .footer-info span, .footer-nav a { font-size: 0.96rem; }
  nav a { font-size: 0.97rem; padding: 5px 7px; }
  .lead { font-size: 1.03rem; }
}

/* ==========
12. FOCUS & ACCESSIBILITY
========== */
a:focus, button:focus, .cta-btn:focus, .mobile-menu-close:focus, .cookie-btn:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Hide visually but keep for accessibility (utility) */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* ===============
13. ANIMATION MICRO-INTERACTIONS
================ */
.cta-btn, button, .footer-nav a, nav a {
  transition: background 0.23s, color 0.18s, transform 0.19s, box-shadow 0.22s;
}
.card, .features-list li, .services-list li, .technology-list li, .benefits-grid li {
  transition: box-shadow 0.18s, transform 0.13s;
}
.cta-btn:hover, .cta-btn:focus, .footer-nav a:hover, .footer-nav a:focus, nav a:hover, nav a:focus {
  filter: brightness(1.05);
}

/* ================
14. FORM ELEMENTS
=============== */
input, textarea, select {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1em;
  background: #fff;
  color: var(--primary);
  margin-bottom: 16px;
  margin-top: 5px;
  width: 100%;
  box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
  border: 1.6px solid var(--secondary);
  outline: none;
  box-shadow: 0 2px 7px var(--secondary,rgba(39,163,107,0.13));
}

label {
  color: var(--primary);
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 6px;
}

/* ===================
15. PRINT SUPPORT
================== */
@media print {
  nav, .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  footer, header { color: #222 !important; background: none !important; }
  .container { padding: 0 8px !important; }
}

/* End of style.css for SoleVerde Napoli */