/* AIEDI Faktoria — style.css v2026 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@400;600&display=swap');

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: #333333;
  background: #ffffff;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.3;
  color: #333333;
}

a { color: #8c4b97; text-decoration: none; }
a:hover { color: #42bce2; text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.5em; }
li { margin-bottom: 0.4em; }

p { margin-bottom: 1em; }

/* ========== TOPBAR ========== */
.af-topbar {
  background: #8c4b97;
  color: #fff;
  font-size: 0.85rem;
  padding: 6px 0;
}
.af-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.af-topbar a { color: #fff; }
.af-topbar a:hover { color: #f0d0ff; text-decoration: none; }
.af-topbar-contact { display: flex; gap: 20px; align-items: center; }
.af-topbar-social { display: flex; gap: 12px; align-items: center; }

/* ========== HEADER / NAV ========== */
.af-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.af-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.af-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.af-logo img { height: 52px; width: auto; }
.af-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #8c4b97;
  line-height: 1.2;
}
.af-logo-sub {
  font-size: 0.72rem;
  color: #666;
  font-weight: 400;
  display: block;
}

.af-nav { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.af-nav a {
  display: block;
  padding: 8px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #333;
  border-radius: 4px;
  transition: background .2s, color .2s;
  text-decoration: none;
}
.af-nav a:hover, .af-nav a.af-active {
  background: #f3e8f8;
  color: #8c4b97;
}
.af-nav-cta a {
  background: #8c4b97;
  color: #fff !important;
  border-radius: 4px;
}
.af-nav-cta a:hover { background: #7a3f87 !important; }

/* Hamburger */
.af-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.af-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  transition: all .3s;
}
@media (max-width: 768px) {
  .af-hamburger { display: flex; }
  .af-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    gap: 2px;
    z-index: 200;
  }
  .af-nav.af-open { display: flex; }
  .af-nav a { padding: 10px 16px; }
}

/* ========== HERO ========== */
.af-hero {
  background: linear-gradient(135deg, #8c4b97 0%, #42bce2 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}
.af-hero-inner { max-width: 800px; margin: 0 auto; }
.af-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 16px;
}
.af-hero p {
  font-size: 1.15rem;
  opacity: .92;
  margin-bottom: 28px;
}
.af-hero-btn {
  display: inline-block;
  background: #fff;
  color: #8c4b97;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background .2s, color .2s;
}
.af-hero-btn:hover { background: #f3e8f8; text-decoration: none; }

/* ========== PAGE HERO (inner pages) ========== */
.af-page-hero {
  background: linear-gradient(120deg, #8c4b97 0%, #42bce2 100%);
  color: #fff;
  padding: 52px 20px 44px;
  text-align: center;
}
.af-page-hero h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 10px; }
.af-page-hero p { opacity: .9; max-width: 600px; margin: 0 auto; }

/* ========== SECTION WRAPPERS ========== */
.af-section { padding: 60px 20px; }
.af-section-alt { background: #f8f5fb; }
.af-section-dark { background: #333333; color: #fff; }
.af-section-dark h2, .af-section-dark h3 { color: #fff; }

.af-container { max-width: 1200px; margin: 0 auto; }
.af-container-sm { max-width: 800px; margin: 0 auto; }

.af-section-title {
  text-align: center;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: #8c4b97;
  margin-bottom: 12px;
}
.af-section-subtitle {
  text-align: center;
  color: #666;
  max-width: 680px;
  margin: 0 auto 40px;
}

/* ========== AREAS GRID ========== */
.af-areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.af-area-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 2px 16px rgba(140,75,151,.1);
  border-top: 4px solid #8c4b97;
  transition: transform .2s, box-shadow .2s;
}
.af-area-card:hover { transform: translateY(-4px); box-shadow: 0 6px 24px rgba(140,75,151,.18); }
.af-area-card-icon { font-size: 2.4rem; margin-bottom: 16px; display: block; }
.af-area-card h3 { color: #8c4b97; font-size: 1.05rem; margin-bottom: 10px; }
.af-area-card p { color: #555; font-size: 0.92rem; margin-bottom: 14px; }
.af-area-card a {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: #42bce2;
  text-decoration: none;
}
.af-area-card a:hover { text-decoration: underline; }

/* ========== PERSONAS ========== */
.af-personas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}
.af-persona-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}
.af-persona-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.af-persona-body { padding: 24px; }
.af-persona-body h2 { color: #8c4b97; font-size: 1.3rem; margin-bottom: 4px; }
.af-persona-body h3 { color: #42bce2; font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; }
.af-persona-body p { font-size: 0.92rem; color: #555; }

/* ========== BLOG GRID ========== */
.af-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.af-blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .2s;
}
.af-blog-card:hover { transform: translateY(-3px); }
.af-blog-card-img { width: 100%; height: 180px; object-fit: cover; background: #f3e8f8; }
.af-blog-card-body { padding: 20px; }
.af-blog-meta { font-size: 0.8rem; color: #999; margin-bottom: 8px; }
.af-blog-card-body h3 { font-size: 1rem; color: #333; margin-bottom: 8px; line-height: 1.4; }
.af-blog-card-body p { font-size: 0.88rem; color: #666; }

/* ========== CONTENT PAGE ========== */
.af-content-wrap { padding: 52px 20px; }
.af-content-inner { max-width: 860px; margin: 0 auto; }
.af-content-inner h2 { color: #8c4b97; font-size: 1.5rem; margin: 32px 0 12px; }
.af-content-inner h3 { color: #42bce2; font-size: 1.15rem; margin: 24px 0 10px; }
.af-content-inner h4 { font-size: 1rem; margin: 20px 0 8px; color: #555; }
.af-content-inner p { color: #444; }
.af-content-inner ul { margin-bottom: 1em; }
.af-content-inner ol { margin-bottom: 1em; }
.af-content-inner li { color: #444; }
.af-content-inner table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}
.af-content-inner th {
  background: #8c4b97;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
}
.af-content-inner td {
  padding: 9px 14px;
  border-bottom: 1px solid #eee;
  color: #444;
}
.af-content-inner tr:nth-child(even) td { background: #f8f5fb; }

/* ========== CONTACT ========== */
.af-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  margin-top: 32px;
}
@media (max-width: 768px) { .af-contact-grid { grid-template-columns: 1fr; } }

.af-contact-info { }
.af-contact-info h3 { color: #8c4b97; margin-bottom: 20px; font-size: 1.2rem; }
.af-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.af-contact-icon { font-size: 1.3rem; color: #8c4b97; flex-shrink: 0; }
.af-contact-item p { margin: 0; }

.af-form { }
.af-form h3 { color: #8c4b97; margin-bottom: 20px; font-size: 1.2rem; }
.af-form-row { margin-bottom: 16px; }
.af-form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
}
.af-form-row input,
.af-form-row textarea,
.af-form-row select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: 0.93rem;
  font-family: 'Open Sans', sans-serif;
  outline: none;
  transition: border .2s;
}
.af-form-row input:focus,
.af-form-row textarea:focus { border-color: #8c4b97; }
.af-form-row textarea { height: 130px; resize: vertical; }
.af-btn-primary {
  display: inline-block;
  background: #8c4b97;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 0.93rem;
  cursor: pointer;
  border: none;
  transition: background .2s;
  text-decoration: none;
}
.af-btn-primary:hover { background: #7a3f87; color: #fff; text-decoration: none; }
.af-btn-secondary {
  display: inline-block;
  background: transparent;
  color: #8c4b97;
  border: 2px solid #8c4b97;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all .2s;
}
.af-btn-secondary:hover { background: #8c4b97; color: #fff; text-decoration: none; }

/* ========== LEGAL NOTICE / RGPD ========== */
.af-rgpd-box {
  font-size: 0.78rem;
  color: #888;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 10px;
}

/* ========== CASINOS PAGE ========== */
.af-casino-intro {
  background: #f8f5fb;
  border-left: 4px solid #8c4b97;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 24px;
}
.af-casino-faq { margin-top: 40px; }
.af-casino-faq h3 {
  color: #8c4b97 !important;
  font-size: 1rem !important;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  cursor: default;
}
.af-casino-warn {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.9rem;
  color: #856404;
}

/* ========== NEWSLETTER ========== */
.af-newsletter {
  background: linear-gradient(135deg, #8c4b97, #42bce2);
  color: #fff;
  padding: 52px 20px;
  text-align: center;
}
.af-newsletter h2 { color: #fff; font-size: 1.7rem; margin-bottom: 10px; }
.af-newsletter p { opacity: .9; margin-bottom: 24px; }
.af-newsletter-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.af-newsletter-form input {
  padding: 12px 18px;
  border: none;
  border-radius: 6px;
  width: 280px;
  font-size: 0.93rem;
}
.af-newsletter-form button {
  background: #fff;
  color: #8c4b97;
  font-weight: 700;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: background .2s;
}
.af-newsletter-form button:hover { background: #f3e8f8; }

/* ========== FOOTER ========== */
.af-footer {
  background: #2a2a2a;
  color: #ccc;
  padding: 52px 20px 24px;
}
.af-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid #444;
}
@media (max-width: 900px) { .af-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .af-footer-grid { grid-template-columns: 1fr; } }

.af-footer-brand { }
.af-footer-brand img { height: 52px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .85; }
.af-footer-brand p { font-size: 0.88rem; color: #aaa; max-width: 280px; }

.af-footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.af-footer-col ul { list-style: none; padding: 0; }
.af-footer-col li { margin-bottom: 8px; }
.af-footer-col a { color: #aaa; font-size: 0.88rem; transition: color .2s; text-decoration: none; }
.af-footer-col a:hover { color: #42bce2; }
.af-footer-contact p { font-size: 0.88rem; color: #aaa; margin-bottom: 8px; }
.af-footer-contact a { color: #42bce2; }

.af-footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #888;
}
.af-footer-bottom a { color: #888; }
.af-footer-bottom a:hover { color: #42bce2; }

/* ========== 404 ========== */
.af-404-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.af-404-inner h1 { font-size: 6rem; color: #8c4b97; line-height: 1; margin-bottom: 16px; }
.af-404-inner h2 { font-size: 1.6rem; color: #333; margin-bottom: 12px; }
.af-404-inner p { color: #666; margin-bottom: 24px; }

/* ========== CAMPUS ========== */
.af-campus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.af-campus-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow .2s;
}
.af-campus-card:hover { box-shadow: 0 4px 20px rgba(140,75,151,.12); }
.af-campus-card-icon { font-size: 2.8rem; margin-bottom: 14px; display: block; }
.af-campus-card h3 { color: #8c4b97; font-size: 1rem; margin-bottom: 8px; }
.af-campus-card p { color: #666; font-size: 0.88rem; }

/* ========== RECURSOS ========== */
.af-recursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.af-recurso-item {
  background: #fff;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.af-recurso-icon { font-size: 1.8rem; flex-shrink: 0; }
.af-recurso-item h3 { color: #8c4b97; font-size: 0.95rem; margin-bottom: 6px; }
.af-recurso-item p { font-size: 0.85rem; color: #666; margin: 0; }

/* ========== PARTNER LOGOS ========== */
.af-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
}
.af-partner-logo { opacity: .65; transition: opacity .2s; }
.af-partner-logo:hover { opacity: 1; }
.af-partner-logo img { height: 48px; width: auto; filter: grayscale(1); }
.af-partner-logo img:hover { filter: none; }

/* ========== BREADCRUMB ========== */
.af-breadcrumb {
  background: #f8f5fb;
  padding: 10px 20px;
  font-size: 0.82rem;
}
.af-breadcrumb a { color: #8c4b97; }
.af-breadcrumb span { color: #999; margin: 0 6px; }
