/* ============================================
   PINK POLE LAB ASD · Pink Editorial Style
   ============================================ */

:root {
  --cream: #faf5f0;
  --pink: #e83e8c;
  --pink-dark: #c2185b;
  --pink-light: #fce4ec;
  --pink-glow: rgba(232,62,140,0.15);
  --black: #1a1a1a;
  --text: #1a1a1a;
  --text-light: #666;
  --white: #ffffff;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Raleway', 'Inter', system-ui, sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }
input, textarea { font: inherit; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* SECTION HEADERS */
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 24px;
}
.section-title em {
  font-style: italic;
  color: var(--pink);
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}
.btn--primary {
  background: var(--pink);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--pink-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--pink-glow);
}
.btn--ghost {
  border: 1px solid var(--white);
  color: var(--white);
}
.btn--ghost:hover {
  background: var(--white);
  color: var(--black);
}

/* HEADER */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s;
}
.header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.header.scrolled .header__logo,
.header.scrolled .header__nav a { color: var(--text); }
.header.scrolled .header__hamburger span { background: var(--text); }
.header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--white);
}
.header__nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.header__nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.3s, color 0.3s;
}
.header__nav a:hover { opacity: 1; color: var(--pink); }

.header__hamburger {
  display: none;
  width: 28px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0;
}
.header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: background 0.3s;
}

/* MOBILE NAV */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--black);
  color: var(--cream);
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}
.mobile-nav__inner { text-align: center; }
.mobile-nav__close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.6rem;
  color: #888;
  transition: color 0.3s;
}
.mobile-nav__close:hover { color: var(--pink); }
.mobile-nav__list { list-style: none; }
.mobile-nav__list li { margin: 8px 0; }
.mobile-nav__list a {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--cream);
  padding: 8px 0;
  transition: color 0.3s;
}
.mobile-nav__list a:hover { color: var(--pink); }

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.75) 0%, rgba(26,26,26,0.3) 50%, rgba(232,62,140,0.2) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}
.hero__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 16px;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 16px;
}
.hero__sub {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: #f0c0d4;
  margin-bottom: 12px;
}
.hero__desc {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.hero__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.4;
  animation: bounceDown 2s ease-in-out infinite;
}
@keyframes bounceDown {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@keyframes dotMove {
  0%,100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.3; }
}

/* ABOUT */
.about {
  padding: 100px 0;
  background: var(--white);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about__text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 20px;
}
.about__text:last-of-type { margin-bottom: 28px; }
.link-arrow {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--pink);
  transition: transform 0.3s;
}
.link-arrow:hover { transform: translateX(6px); }
.about__image {
  width: 100%;
  height: 420px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 2px;
}

/* COURSES */
.courses {
  padding: 100px 0;
  background: var(--cream);
}
.courses__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.course-card {
  background: var(--white);
  padding: 36px 28px;
  border-left: 4px solid var(--pink);
  transition: all 0.3s ease;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(232,62,140,0.08);
}
.course-card--full {
  grid-column: 1 / -1;
  max-width: 500px;
  justify-self: center;
  text-align: center;
}
.course-card__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--pink);
}
.course-card__desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* INFO */
.info {
  padding: 80px 0;
  background: var(--white);
}
.info__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.info__card {
  text-align: center;
  padding: 48px 24px;
  background: var(--cream);
  transition: transform 0.3s, box-shadow 0.3s;
}
.info__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(232,62,140,0.06);
}
.info__card svg { color: var(--pink); margin-bottom: 14px; }
.info__card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.info__card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* CONTATTI */
.contatti {
  padding: 100px 0;
  background: var(--cream);
}
.contatti__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contatti__form input,
.contatti__form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e8ddd0;
  background: var(--white);
  margin-bottom: 14px;
  font-size: 0.9rem;
  transition: border-color 0.3s;
}
.contatti__form input:focus,
.contatti__form textarea:focus {
  outline: none;
  border-color: var(--pink);
}
.contatti__form textarea { resize: vertical; }
.contatti__map iframe {
  width: 100%;
  height: 360px;
  border: none;
  filter: grayscale(0.2);
}

/* FOOTER */
.footer {
  padding: 48px 0 32px;
  background: var(--black);
  color: #999;
  text-align: center;
  font-size: 0.85rem;
}
.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--pink);
  margin-bottom: 16px;
}
.footer__info p {
  margin-bottom: 4px;
  line-height: 1.6;
}
.footer__social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}
.footer__social a {
  color: var(--pink);
  transition: color 0.3s;
}
.footer__social a:hover { color: var(--cream); }
.footer__copy {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__copy a {
  color: var(--pink);
  transition: color 0.3s;
}
.footer__copy a:hover { color: var(--cream); }

/* FLOATING BUTTONS */
.floating-btns {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floating-btns__btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}
.floating-btns__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0,0,0,0.2);
}
.floating-btns__btn--wa { background: #25d366; }
.floating-btns__btn--fb { background: #1877f2; }
.floating-btns__btn--chat { background: var(--pink); }

/* CHATBOT */
.chatbot {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 850;
  width: 340px;
  max-height: 480px;
  background: var(--white);
  box-shadow: 0 12px 60px rgba(0,0,0,0.12);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chatbot.active { display: flex; }
.chatbot__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--pink);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
}
.chatbot__close {
  margin-left: auto;
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  transition: color 0.3s;
}
.chatbot__close:hover { color: var(--white); }
.chatbot__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
  max-height: 320px;
}
.chatbot__msg {
  max-width: 85%;
  padding: 10px 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chatbot__msg--bot {
  background: #f5ede6;
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chatbot__msg--user {
  background: var(--pink);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chatbot__msg--typing {
  background: transparent;
  padding: 10px 16px;
}
.chatbot__dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--pink);
  border-radius: 50%;
  margin: 0 2px;
  animation: dotPulse 1.4s infinite;
}
.chatbot__dots span:nth-child(2) { animation-delay: 0.2s; }
.chatbot__dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse {
  0%,80%,100% { opacity: 0.3; }
  40% { opacity: 1; }
}
.chatbot__input-row {
  display: flex;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}
.chatbot__input-row input {
  flex: 1;
  border: none;
  padding: 14px 16px;
  font-size: 0.85rem;
  background: #faf5f0;
}
.chatbot__input-row input:focus { outline: none; }
.chatbot__input-row button {
  padding: 14px 18px;
  color: var(--pink);
  transition: color 0.3s, background 0.3s;
}
.chatbot__input-row button:hover {
  background: var(--pink-light);
  color: var(--pink-dark);
}
.chatbot__related {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.chatbot__related-btn {
  font-size: 0.75rem;
  padding: 6px 12px;
  border: 1px solid var(--pink);
  background: transparent;
  color: var(--pink-dark);
  cursor: pointer;
  transition: all 0.2s;
}
.chatbot__related-btn:hover {
  background: var(--pink);
  color: var(--white);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .hero__content { padding: 0 16px; }
  .about__grid { grid-template-columns: 1fr; gap: 36px; }
  .about__image { height: 280px; }
  .info__grid { grid-template-columns: 1fr; }
  .contatti__grid { grid-template-columns: 1fr; gap: 32px; }
  .chatbot { width: calc(100vw - 48px); right: 24px; bottom: 100px; }
  .course-card--full { max-width: 100%; }
}
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; max-width: 280px; text-align: center; }
  .courses__grid { grid-template-columns: 1fr; }
}