/* style.css for Pigmadisba RiparaFacile - Monochrome Sophisticated Theme */

/* 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 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  background: #fff;
  color: #161616;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #161616;
  text-decoration: underline;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #333;
  outline-offset: 2px;
}

/* =================== VARIABLES =================== */
:root {
  --color-black: #161616;
  --color-white: #fff;
  --color-grey-1: #f1f1f1;
  --color-grey-2: #e0e0e0;
  --color-grey-3: #b0b0b0;
  --color-grey-4: #565656;
  --brand-primary: #161616;
  --brand-accent: #f1f1f1;
  --border-radius: 10px;
  --shadow: 0 4px 20px 0 rgba(0,0,0,0.07), 0 1.5px 4px 0 rgba(0,0,0,0.03);
  --transition: 0.24s cubic-bezier(.47,0,.745,.715);
  --font-display: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* =================== TYPOGRAPHY =================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--brand-primary);
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.18;
}
h2 {
  font-size: 2rem;
  line-height: 1.25;
}
h3 {
  font-size: 1.35rem;
  line-height: 1.3;
}
h4 {
  font-size: 1.05rem;
}
p, ul, ol, li, .footer-info {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-black);
  margin-bottom: 16px;
}
b, strong {
  font-weight: 600;
}
.text-section > ul, .content-wrapper > ul, .content-wrapper > ol {
  margin-left: 1.4em;
  margin-bottom: 20px;
}
.text-section > ul li, .content-wrapper > ul li, .content-wrapper > ol li {
  margin-bottom: 8px;
}

/* =================== INTERACTIVE ELEMENTS =================== */
.btn {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  padding: 12px 32px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  margin-top: 16px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: none;
}
.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
  box-shadow: var(--shadow);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-grey-4);
  color: var(--color-white);
  box-shadow: 0 6px 25px 0 rgba(0,0,0,.13);
}
.btn-secondary {
  background: var(--color-white);
  color: var(--color-black);
  border: 1.5px solid var(--color-black);
  box-shadow: var(--shadow);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-grey-1);
  color: var(--color-black);
  border-color: var(--color-grey-4);
  box-shadow: 0 6px 25px 0 rgba(0,0,0,.08);
}

/* =================== HEADER =================== */
header {
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 1.5px 12px 0 rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 40;
}
.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 20px 16px 20px;
  max-width: 1360px;
  margin: 0 auto;
  position: relative;
}
.logo-link img {
  height: 48px;
  width: auto;
  margin-right: 14px;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.01rem;
  font-weight: 700;
  color: var(--color-black);
  text-decoration: none;
  letter-spacing: 0.5px;
  position: relative;
  padding: 2px 0;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-grey-4);
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
  display: none;
}

/* =================== MOBILE MENU =================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 82vw;
  max-width: 340px;
  background: var(--color-white);
  box-shadow: -2px 0 24px 0 rgba(0,0,0,0.18);
  transform: translateX(110%);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  z-index: 1200;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 18px 20px 2px 0;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-black);
  align-self: flex-end;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-grey-4);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 30px 32px 32px 32px;
  flex: 1 1 auto;
  align-items: flex-start;
}
.mobile-nav a {
  font-size: 1.22rem;
  font-family: var(--font-display);
  color: var(--color-black);
  font-weight: 700;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-grey-4);
}

/* Mobile menu toggle button */
@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  .btn.btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    background: none;
    border: none;
    color: var(--color-black);
    padding: 8px 14px 8px 8px;
    cursor: pointer;
    position: absolute;
    top: 18px;
    right: 10px;
    z-index: 45;
    transition: color var(--transition);
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    color: var(--color-grey-4);
  }
}
/* Overlay for body when menu open */
body.mobile-menu-open::after {
  content: "";
  position: fixed;
  z-index: 1190;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(22,22,22,0.36);
  pointer-events: none;
}
body.mobile-menu-open {
  overflow: hidden;
}
@media (max-width: 420px) {
  .mobile-menu {
    width: 98vw;
    max-width: none;
  }
}

/* =================== LAYOUT CONTAINERS =================== */
.container {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
}

/* =================== FLEX PATTERNS =================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.17);
  transform: translateY(-4px) scale(1.008);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.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: var(--color-grey-1);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 14px 0 rgba(0,0,0,0.04);
  margin-bottom: 20px;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =================== LISTS & FEATURES =================== */
ul, ol {
  padding-left: 1.3em;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 10px;
  list-style-position: outside;
}
ul li img, ol li img {
  height: 32px;
  width: 32px;
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
  filter: grayscale(1) brightness(0.36) contrast(2);
}
li span, .content-wrapper span, .card span {
  color: var(--color-grey-4);
  font-weight: 500;
}
li strong {
  font-weight: 700;
  color: var(--color-black);
}

/* =================== TESTIMONIALS & CARD DESIGN =================== */
.testimonial-card strong {
  color: var(--color-black);
  font-family: var(--font-display);
  font-size: 1.1em;
}
.testimonial-card div:last-child {
  margin-top: 8px;
  font-size: 1.18em;
  color: #e2b200;
  letter-spacing: 0.07em;
  font-family: var(--font-body);
  font-weight: 700;
}
/* Ensure contrast in testimonial text */
.testimonial-card {
  color: #181818;
  background: #fafafd;
  border: 1px solid #e5e5e5;
}

/* =================== FOOTER =================== */
footer {
  width: 100%;
  background: var(--color-black);
  padding: 40px 0 24px 0;
  color: var(--color-white);
}
footer .container {
  padding: 0 20px;
}
footer .content-wrapper {
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
footer img {
  width: 64px;
  height: auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin: 8px 0;
}
.footer-nav a {
  color: var(--color-grey-2);
  font-family: var(--font-body);
  font-size: 1rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-white);
  text-decoration: underline;
}
.footer-info {
  text-align: center;
  color: var(--color-grey-3);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* =================== MISC & UTILS =================== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.content-wrapper > h1, .content-wrapper > h2, .content-wrapper > h3,
.content-wrapper > ul, .content-wrapper > ol, .content-wrapper > p,
.text-section {
  margin-bottom: 20px;
}

/* Keep sections visually separated */
section:not(:last-child) {
  border-bottom: 1px solid var(--color-grey-2);
}

/* Modal overlay for cookie banner, mobile menu, etc. */
.modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(30,30,30,0.38);
  z-index: 1200;
}
.modal-overlay.active {
  display: block;
  animation: fadein 0.25s;
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =================== COOKIE CONSENT BANNER =================== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  z-index: 1300;
  background: var(--color-white);
  color: var(--color-black);
  box-shadow: 0 -4px 18px 0 rgba(0,0,0,.08);
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  padding: 18px 20px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  transition: transform .38s cubic-bezier(.6,0,.45,1.04), opacity 0.14s;
}
.cookie-consent-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-consent-banner .btn {
  padding: 8px 22px;
  font-size: 0.94rem;
  margin-top: 0;
  border-radius: 7px;
}
.btn-cookie-accept {
  background: var(--color-black);
  color: var(--color-white);
}
.btn-cookie-accept:hover, .btn-cookie-accept:focus {
  background: var(--color-grey-4);
}
.btn-cookie-reject {
  background: var(--color-grey-1);
  color: var(--color-black);
  border: 1px solid var(--color-black);
}
.btn-cookie-reject:hover, .btn-cookie-reject:focus {
  background: #ececec;
}
.btn-cookie-settings {
  background: var(--color-white);
  border: 1px solid var(--color-grey-4);
  color: var(--color-grey-4);
}
.btn-cookie-settings:hover, .btn-cookie-settings:focus {
  background: var(--color-grey-2);
  color: var(--color-black);
}
/* ========== Cookie Modal (Settings) ========== */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 96vw;
  max-width: 480px;
  transform: translate(-50%, -50%) scale(.95);
  background: var(--color-white);
  color: var(--color-black);
  padding: 34px 24px 24px 24px;
  border-radius: 16px;
  box-shadow: 0 8px 40px 0 rgba(0,0,0,0.17);
  z-index: 1500;
  display: none;
  opacity: 0;
  transition: opacity .22s, transform .38s cubic-bezier(.6,0,.45,1.04);
}
.cookie-modal.active {
  display: block;
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
  animation: modalPop .38s cubic-bezier(.66,0,.29,1);
}
@keyframes modalPop {
  0% { opacity: .38; transform: translate(-50%,-60%) scale(.92); }
  100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal h3 {
  font-size: 1.27rem;
}
.cookie-modal .cookie-option {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 13px;
}
.cookie-modal input[type=checkbox] {
  width: 22px; height: 22px;
  accent-color: var(--color-black);
  cursor: pointer;
}
.cookie-modal .cookie-option label {
  font-family: var(--font-display);
  font-weight: 600;
}
.cookie-modal .btn {
  margin-top: 20px;
}
.cookie-modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  background: none;
  border: none;
  color: var(--color-grey-4);
  font-size: 1.6em;
  cursor: pointer;
  z-index: 3;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-black);
}
.cookie-modal .desc {
  font-size: 0.97em;
  margin-top: -7px;
  margin-bottom: 10px;
  color: var(--color-grey-4);
  font-family: var(--font-body);
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1220px) {
  .container {
    max-width: 1000px;
  }
}
@media (max-width: 900px) {
  .brand-header {
    padding: 20px 10px 12px 10px;
  }
  .container {
    max-width: 720px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  section, .section {
    padding: 30px 8px 30px 8px;
  }
  .brand-header {
    flex-direction: row;
    gap: 14px;
    padding: 16px 6px 8px 6px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .card {
    padding: 21px 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 10px;
  }
  .feature-item {
    gap: 8px;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.06rem; }
  .cookie-consent-banner {
    padding: 12px 6px 12px 8px;
    gap: 8px;
  }
  .cookie-modal {
    padding: 18px 10px 12px 10px;
  }
  footer .content-wrapper {
    gap: 12px;
  }
  .footer-info {
    font-size: 0.91rem;
  }
}

/* =================== MICRO-INTERACTIONS & ANIMATION =================== */
.btn, .main-nav a, .footer-nav a {
  transition: box-shadow var(--transition), color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:active {
  transform: scale(0.97);
}
.card:active, .testimonial-card:active {
  box-shadow: 0 2px 6px 0 rgba(0,0,0,0.12);
  transform: scale(0.99);
}
section, .section {
  transition: box-shadow .26s;
}

/* =================== FORMS (MODALS) =================== */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1.5px solid var(--color-grey-2);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: var(--color-grey-1);
  color: var(--color-black);
  transition: border-color .2s;
  width: 100%;
  box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-black);
  outline: none;
}
label {
  font-family: var(--font-display);
  font-size: 0.97em;
  color: var(--color-black);
  font-weight: 600;
  margin-bottom: 3px;
  display: block;
}

/* =================== ACCESSIBILITY =================== */
:focus {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}
.nav-active, .main-nav a[aria-current="page"], .footer-nav a[aria-current="page"] {
  border-bottom: 2.5px solid var(--color-black);
}

/* =================== PRINT SUPPORT =================== */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .section, section {
    box-shadow: none !important;
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* =================== END OF CSS =================== */
