/* ═══════════════════════════════════════════════════════════
   style.css — unico file CSS per avsiperibambini.org
   Contiene: token, utility condivise, componenti condivisi,
             stili specifici per index.html e rinnovo.html,
             cookie banner.
   ═══════════════════════════════════════════════════════════ */

/* ── Design tokens ── */
:root {
  --dl-layout-space-unit: 16px;
  --dl-layout-space-halfunit: 8px;
  --dl-layout-space-oneandhalfunits: 24px;
  --dl-layout-space-twounits: 32px;
  --dl-layout-space-threeunits: 48px;
  --dl-layout-space-fourunits: 64px;
  --dl-layout-space-fiveunits: 80px;
  --dl-layout-space-sixunits: 96px;
  --dl-layout-size-maxwidth: 1400px;
  --dl-layout-radius-round: 50%;
  --dl-layout-radius-buttonradius: 24px;
  --dl-color-default-dark: rgba(43, 59, 68, 1);
  --dl-color-default-light: rgba(255, 255, 255, 1);
  --dl-color-default-primary: #159736ff;
  --dl-color-theme-neutral-dark: #2b3b44;
  --dl-color-theme-neutral-light: #fffaf1ff;
  --dl-color-theme-primary1: #159736;
}

/* ── Base ── */
html {
  font-family: "Albert Sans";
  font-size: 22px;
}

body {
  font-weight: 400;
  font-style: normal;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.15;
  color: var(--dl-color-theme-neutral-dark);
  background: var(--dl-color-theme-neutral-light);
}

/* ── Shared utilities ── */

.thq-body-small {
  font-size: 16px;
  line-height: 1.5;
}

.buttonDesktop {
  font-size: 24px;
  font-family: "Albert Sans";
  font-weight: 700;
  letter-spacing: -1px;
  text-transform: none;
  text-decoration: none;
}

.container {
  gap: var(--dl-layout-space-twounits);
  display: flex;
  align-items: center;
  padding-left: var(--dl-layout-space-unit);
  padding-right: var(--dl-layout-space-unit);
  flex-direction: column;
}

.link-wrapper {
  gap: var(--dl-layout-space-halfunit);
  flex: 0 0 auto;
  width: auto;
  display: flex;
  align-items: flex-start;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.social-link:hover {
  background: #fff;
  color: rgba(43, 59, 68, 1);
  border-color: #fff;
}


/* ═══════════════════════════════════════════════════════════
   Shared page-component styles
   Applies to both index.html (regular-*) and rinnovo.html (rinnovo-*)
   ═══════════════════════════════════════════════════════════ */

/* ── Page wrappers ── */
.regular-container1,
.rinnovo-container1 {
  width: 100%;
  display: flex;
  min-height: 100vh;
  align-items: center;
  flex-direction: column;
}

.regular-content,
.rinnovo-content {
  width: 100%;
  height: auto;
  display: flex;
  overflow: hidden;
  align-items: flex-start;
  flex-shrink: 0;
  flex-direction: column;
}

/* ── Hero header ── */
.regular-header,
.rinnovo-header {
  gap: 60px;
  display: flex;
  position: relative;
  align-self: stretch;
  align-items: center;
  padding-top: var(--dl-layout-space-sixunits);
  padding-left: var(--dl-layout-space-sixunits);
  padding-right: var(--dl-layout-space-sixunits);
  flex-direction: column;
  padding-bottom: calc(100vw - 780px);
  background-size: 100% auto;
  background-position: center 200px;
  background-repeat: no-repeat;
}

/* ── Logo ── */
.regular-logo,
.rinnovo-logo {
  width: 90px;
  height: 90px;
}

/* ── Hero text block ── */
.regular-hero,
.rinnovo-hero {
  width: 100%;
}

/* ── H1 headline ── */
.regular-text10,
.rinnovo-text10 {
  font-size: 56px;
  max-width: 630px;
  text-align: center;
  font-family: "Albert Sans";
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  text-transform: none;
  text-decoration: none;
}

/* ── Body text in hero ── */
.regular-text16,
.rinnovo-text16 {
  color: rgb(43, 59, 68);
  width: 100%;
  height: auto;
  max-width: 545px;
  text-align: center;
}

/* ── CTA button container ── */
.regular-flower-container,
.rinnovo-flower-container {
  gap: var(--dl-layout-space-unit);
  display: flex;
  align-items: center;
  flex-direction: column;
}

/* ── Primary CTA (dark pill) ── */
.regular-link10,
.rinnovo-link10 {
  color: #fffaf1;
  fill: #fffaf1;
  font-style: normal;
  border-width: 0;
  border-radius: 54px;
  padding: 12px 32px;
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.8);
}

/* ── Secondary CTA (outline pill) ── */
.regular-link11,
.rinnovo-link11 {
  color: var(--dl-color-default-dark);
  fill: var(--dl-color-default-dark);
  border-width: 3px;
  border-style: solid;
  border-color: var(--dl-color-default-dark);
  border-radius: 54px;
  padding: 12px 32px;
  background-color: transparent;
  text-decoration: none;
}

/* ── Mobile illustration (hidden on desktop) ── */
.regular-illustration-mobile,
.rinnovo-illustration-mobile {
  display: none;
}

/* ── Dark photo section ── */
.regular-rinnovo,
.rinnovo-rinnovo {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-top: var(--dl-layout-space-sixunits);
  padding-bottom: var(--dl-layout-space-sixunits);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left;
}

/* ── Dark section inner wrapper (1080px) ── */
.regular-container3,
.rinnovo-container3 {
  gap: var(--dl-layout-space-twounits);
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  display: flex;
  max-width: 1080px;
  flex-direction: column;
}

/* ── Dark section content column ── */
.regular-container4,
.rinnovo-container4 {
  gap: var(--dl-layout-space-twounits);
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

/* ── Section headline ── */
.regular-text29,
.rinnovo-text27 {
  fill: var(--dl-color-default-light);
  color: var(--dl-color-default-light);
  font-size: 56px;
  font-family: "Albert Sans";
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}

/* ── Green divider bar ── */
.regular-image2,
.rinnovo-image2 {
  width: 90px;
  height: 12px;
  background-color: #009736;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ── Button / action row ── */
.regular-button-wrapper,
.rinnovo-button-wrapper {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
}

/* ── Green circle arrow ── */
.dona-arrow {
  background: #009736;
  border-radius: 30px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.dona-arrow svg {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
}

/* ── Footer ── */
.regular-footer,
.rinnovo-footer {
  gap: var(--dl-layout-space-twounits);
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  padding-top: var(--dl-layout-space-sixunits);
  flex-direction: column;
  padding-bottom: var(--dl-layout-space-sixunits);
  background-color: var(--dl-color-default-dark);
}

/* ── Footer top row ── */
.regular-container5,
.rinnovo-container5 {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  max-width: 1080px;
  align-items: flex-start;
  justify-content: space-between;
}

/* ── Footer left column ── */
.regular-container6,
.rinnovo-container6 {
  gap: var(--dl-layout-space-oneandhalfunits);
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  max-width: 550px;
  align-items: flex-start;
  flex-direction: column;
}

/* ── Footer org name ── */
.regular-text37,
.rinnovo-text32 {
  fill: var(--dl-color-default-light);
  color: var(--dl-color-default-light);
  font-weight: bold;
}

/* ── Footer org description ── */
.regular-text38,
.rinnovo-text33 {
  fill: var(--dl-color-default-light);
  color: var(--dl-color-default-light);
}

/* ── Social container ── */
.regular-footer-social-container,
.rinnovo-footer-social-container {
  gap: 13px;
  width: auto;
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  flex-direction: column;
}

/* ── "Seguici su" label ── */
.regular-text39,
.rinnovo-text34 {
  color: var(--dl-color-default-light);
  height: auto;
  font-size: 16px;
  align-self: stretch;
  text-align: right;
  font-family: "Albert Sans";
  font-weight: 400;
  line-height: 1.15;
  text-transform: none;
  text-decoration: none;
}

/* ── Social links row ── */
.regular-social-links,
.rinnovo-social-links {
  gap: var(--dl-layout-space-unit);
  display: flex;
  align-self: center;
  align-items: flex-start;
  flex-direction: row;
}

/* ── Footer bottom row ── */
.regular-container7,
.rinnovo-container7 {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  max-width: 1080px;
  align-items: center;
  justify-content: space-between;
}

/* ── Copyright text ── */
.regular-copyright,
.rinnovo-copyright {
  fill: var(--dl-color-default-light);
  color: var(--dl-color-default-light);
}

/* ── Footer divider dot ── */
.regular-divider2,
.rinnovo-divider2 {
  fill: var(--dl-color-default-primary);
  color: var(--dl-color-default-primary);
}

/* ── Footer policy links ── */
.regular-policy,
.rinnovo-policy {
  fill: var(--dl-color-default-light);
  color: var(--dl-color-default-light);
  text-decoration: underline none;
}

/* ── Shared responsive ── */

@media (max-width: 991px) {
  .regular-rinnovo,
  .rinnovo-rinnovo {
    padding-left: var(--dl-layout-space-oneandhalfunits);
    padding-right: var(--dl-layout-space-oneandhalfunits);
  }

  .regular-footer,
  .rinnovo-footer {
    padding-left: var(--dl-layout-space-oneandhalfunits);
    padding-right: var(--dl-layout-space-oneandhalfunits);
  }
}

@media (max-width: 1110px) {
  .regular-header,
  .rinnovo-header {
    padding-bottom: var(--dl-layout-space-threeunits);
    background-image: none !important;
  }

  .regular-illustration-mobile,
  .rinnovo-illustration-mobile {
    display: block;
    width: 80%;
    max-width: 275px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .regular-header,
  .rinnovo-header {
    gap: 48px;
    padding-top: 80px;
  }

  .regular-logo,
  .rinnovo-logo {
    width: 68px;
    height: 68px;
  }

  .regular-text10,
  .rinnovo-text10 {
    font-size: 40px;
  }

  .regular-text16,
  .rinnovo-text16 {
    font-size: 18px;
  }

  .regular-link10,
  .rinnovo-link10 {
    font-size: 18px;
  }

  .regular-link11,
  .rinnovo-link11 {
    font-size: 18px;
  }

  .regular-text29,
  .rinnovo-text27 {
    font-size: 40px;
  }

  .regular-container5,
  .rinnovo-container5 {
    gap: var(--dl-layout-space-oneandhalfunits);
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
  }

  .regular-container6,
  .rinnovo-container6 {
    align-items: center;
  }

  .regular-text37,
  .rinnovo-text32 {
    text-align: center;
  }

  .regular-text38,
  .rinnovo-text33 {
    text-align: center;
  }

  .regular-footer-social-container,
  .rinnovo-footer-social-container {
    align-items: center;
  }

  .regular-text39,
  .rinnovo-text34 {
    text-align: center;
  }

  .regular-social-links,
  .rinnovo-social-links {
    align-self: center;
  }

  .regular-container7,
  .rinnovo-container7 {
    gap: var(--dl-layout-space-oneandhalfunits);
    flex-direction: column;
    justify-content: flex-start;
  }

  .regular-link-wrapper1,
  .rinnovo-link-wrapper1 {
    align-items: center;
    flex-direction: column;
  }

  .regular-link-wrapper2,
  .rinnovo-link-wrapper2 {
    align-items: center;
    flex-direction: column;
  }

  .regular-divider2,
  .rinnovo-divider2 {
    display: none;
  }
}

@media (max-width: 479px) {
  .regular-header,
  .rinnovo-header {
    padding-top: 80px !important;
    padding-left: 36px !important;
    padding-right: 36px !important;
    padding-bottom: 48px !important;
  }

  .regular-social-links,
  .rinnovo-social-links {
    align-items: center;
    justify-content: center;
  }
}


/* ═══════════════════════════════════════════════════════════
   index.html — page-specific
   ═══════════════════════════════════════════════════════════ */

.regular-container1 {
  overflow: auto;
}

.regular-rinnovo {
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0 !important;
  min-height: 434px;
}

.regular-container4 {
  max-width: 650px;
}

/* ── Donation bar ── */
.regular-button-wrapper {
  align-self: stretch;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 25px 60px;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
}

.dona-description {
  color: rgba(255, 255, 255, 0.8);
  width: 326px;
  flex-shrink: 0;
  line-height: 20px;
}

.dona-amounts {
  display: flex;
  gap: 16px;
  flex: 1 0 0;
  min-width: 0;
  align-items: center;
}

.dona-btn {
  font-family: 'Albert Sans', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 2rem;
  border: none;
  border-radius: 8px;
  padding: 20px;
  flex: 1 0 0;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
}

.dona-btn.active {
  background: #009736;
  color: white;
}

.dona-link {
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}

@media (max-width: 479px) {
  .regular-rinnovo {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    min-height: unset !important;
    padding-top: 50px !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
    padding-bottom: 50px !important;
    gap: 32px !important;
    background-position: center center !important;
  }

  .regular-container4 {
    max-width: 300px;
  }

  .regular-image2 {
    width: 50px !important;
    height: 5px !important;
    border-radius: 2px !important;
  }

  .regular-button-wrapper {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 32px !important;
    gap: 32px !important;
    border-top: none !important;
  }

  .dona-description {
    width: 100% !important;
  }

  .dona-amounts {
    flex-direction: column !important;
    width: 100% !important;
    flex: none !important;
    min-width: 0 !important;
  }

  .dona-btn {
    flex: none !important;
    width: 100% !important;
    height: auto !important;
    padding: 20px !important;
    font-size: 24px !important;
  }
}


/* ═══════════════════════════════════════════════════════════
   rinnovo.html — page-specific
   ═══════════════════════════════════════════════════════════ */

.rinnovo-rinnovo {
  align-items: center;
  justify-content: flex-start;
  gap: 48px;
  padding-left: var(--dl-layout-space-oneandhalfunits);
  padding-right: var(--dl-layout-space-oneandhalfunits);
}

.rinnovo-container4 {
  max-width: 1080px;
}

.rinnovo-text27 {
  max-width: 630px;
}

.rinnovo-button-wrapper {
  align-items: stretch;
  gap: 32px;
  max-width: 1080px;
}

.rinnovo-card {
  background: rgba(0, 0, 0, 0.5);
  flex: 1 0 0;
  min-width: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.rinnovo-card-title {
  font-family: 'Albert Sans', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.32px;
  color: white;
}

.rinnovo-card-body {
  font-family: 'Albert Sans', sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.24px;
  color: white;
}

.rinnovo-card-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rinnovo-card-link {
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
  font-family: 'Albert Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .rinnovo-button-wrapper {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

@media (max-width: 479px) {
  .rinnovo-rinnovo {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
    gap: 32px !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    background-position: center center !important;
  }

  .rinnovo-container4 {
    max-width: 300px;
  }

  .rinnovo-button-wrapper {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
    max-width: 100% !important;
  }

  .rinnovo-card-title {
    font-size: 24px !important;
  }

  .rinnovo-card-body {
    font-size: 18px !important;
  }

  .rinnovo-card-link {
    font-size: 18px !important;
  }
}


/* ═══════════════════════════════════════════════════════════
   Cookie banner
   ═══════════════════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: 'Albert Sans', sans-serif;
}

.cookie-banner-text {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  flex: 1;
  min-width: 0;
}

.cookie-banner-text a {
  color: #009736;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
  opacity: 0.8;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner-accept {
  font-family: 'Albert Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #009736;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.cookie-banner-accept:hover {
  opacity: 0.85;
}

.cookie-banner-close {
  font-family: 'Albert Sans', sans-serif;
  font-size: 18px;
  line-height: 1;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.cookie-banner-close:hover {
  color: #333;
  background: rgba(0, 0, 0, 0.06);
}

@media (max-width: 479px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: space-between;
  }

  .cookie-banner-accept {
    flex: 1;
    text-align: center;
  }
}
