/* cc-patch.css — Styles for injected elements on Webflow export */

/* ── glo sans font-face ── */
@font-face {
  font-family: "glo sans";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('/static/fonts/glo-sans/glosanslight.ttf') format('truetype');
}
@font-face {
  font-family: "glo sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/static/fonts/glo-sans/glosansbook.ttf') format('truetype');
}
@font-face {
  font-family: "glo sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/glo-sans/glosansmedium.ttf') format('truetype');
}
@font-face {
  font-family: "glo sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/glo-sans/glosansbold.ttf') format('truetype');
}

/* ── Override globale: sostituisce tutti i font Webflow con glo sans ── */
* {
  font-family: "glo sans", Arial, Helvetica, sans-serif !important;
}

/* ── Form + QR ── */

#cc-interaction {
  padding: 24px 12px 0;
}

#cc-form {
  border: 2px solid #fe5000;
  padding: 24px;
}

.cc-headline {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  color: #fff;
  font-family: "glo sans", Arial, Helvetica, sans-serif;
  line-height: 1.4;
}

.cc-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  color: #fff;
  font-family: "glo sans", Arial, Helvetica, sans-serif;
}

.cc-subtitle {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#cc-input {
  width: 100%;
  background: #fff;
  border: none;
  border-radius: 0;
  padding: 12px;
  color: #000;
  font-family: inherit;
  font-size: 16px;
  resize: vertical;
  min-height: 72px;
  -webkit-appearance: none;
}

#cc-input:focus {
  outline: none;
}

#cc-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

#cc-submit {
  margin-top: 16px;
  width: 100%;
  cursor: pointer;
}

/* ── QR result ── */

.cc-qr-instruction {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.6;
  color: #fff;
}

#cc-qr-code {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

#cc-qr-message {
  text-align: center;
  font-size: 14px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 16px;
}

/* ── Swiper overrides ── */

.cc-swiper {
  width: 100%;
  overflow: hidden;
}

.cc-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.cc-swiper .swiper-pagination {
  position: relative;
  margin-top: 12px;
}

.cc-swiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.4;
  width: 15px;
  height: 15px;
  border: 2px solid #fff;
}

.cc-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: #fff;
  border-color: #fff;
}

/* glo for art: mixed aspect ratios */
.cc-swiper-4 .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-swiper-4 .swiper-slide img {
  max-height: 70vh;
  object-fit: contain;
}

/* ── Nav QR (replaces TOP link) ── */

.cc-nav-qr-link {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 0 !important;
  pointer-events: none;
  cursor: default;
}

#cc-nav-qr {
  display: flex;
  justify-content: center;
}

.cc-nav-qr-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fe5000;
  font-weight: 700;
}

/* ── Age Gate (myglo.com style) ── */

.cc-agegate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  overflow-y: auto;
}

.cc-agegate__inner {
  max-width: 480px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.cc-agegate__logo {
  margin-bottom: 40px;
}

.cc-agegate__logo img {
  width: 120px;
  height: auto;
}

.cc-agegate__heading {
  font-family: "glo sans", Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin: 0 0 16px;
}

.cc-agegate__text {
  font-family: "glo sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 32px;
  line-height: 1.5;
}

.cc-agegate__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 40px;
}

.cc-agegate__btn {
  font-family: "glo sans", Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 14px 24px;
  border-radius: 100px;
  cursor: pointer;
  transition: background-color 200ms, color 200ms;
  border: none;
  width: 100%;
}

.cc-agegate__btn--yes {
  background: #fe5000;
  color: #fff;
}

.cc-agegate__btn--yes:hover {
  background: #cd4a04;
}

.cc-agegate__btn--no {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cc-agegate__btn--no:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cc-agegate__footnote {
  font-family: "glo sans", Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  margin: 0;
}

/* Su desktop il menu è sempre aperto: nasconde il QR nel nav */
@media (min-width: 992px) {
  .cc-nav-qr-link {
    display: none !important;
  }
}

/* ── Language switcher ── */
/* Fisso in alto a sinistra, sopra il navbar Webflow (z:10000)
   su tutti i breakpoint — così il link TOP resta libero di ospitare
   il QR code dopo il submit del form. */
.cc-lang-switch {
  position: fixed;
  top: 10px;
  left: 20px;
  z-index: 10001;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "glo sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.5px;
  line-height: 22px;
  height: 22px;
  padding: 0;
  transition: opacity 150ms;
}

.cc-lang-switch:hover {
  opacity: 0.7;
  color: #fff;
}

/* ── Shake animation ── */

@keyframes cc-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.cc-shake {
  animation: cc-shake 0.4s ease;
}
