/* ===================== LAYOUT & CONTAINER ===================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.page-content {
  padding-top: 120px;
  padding-bottom: 60px;
}

/* ===================== TIPOGRAFIA ===================== */
.section-title, .big-title {
  color: #701c91;
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  text-align: center;
}
.section-subtitle, .big-subtitle {
  color: #46287a;
  font-size: 1.18rem;
  text-align: center;
  font-weight: 500;
  margin-bottom: 46px;
  line-height: 1.6;
}
.section-text {
  color: #46287a;
  font-size: 1.13rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  letter-spacing: -0.01em;
  text-align: center;
}
.highlight-keyword { color: #6c3cc5; font-weight: 700; }

/* ===================== BUTTONS ===================== */
.btn, .cta-btn {
  display: inline-block;
  background: linear-gradient(96deg, #8b6ee0 0%, #701c91 85%);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  font-size: 0.99rem;
  letter-spacing: -0.4px;
  padding: 7px 18px;
  margin: 16px 0 0 0;
  box-shadow: 0 5px 20px rgba(108,60,197,0.10);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, color 0.16s, box-shadow 0.18s, transform 0.14s;
  position: relative;
  z-index: 2;
  outline: none;
}
.btn:hover, .cta-btn:hover {
  background: #fff !important;
  color: #701c91 !important;
  box-shadow: 0 11px 36px rgba(108,60,197,0.14);
  transform: translateY(-1px) scale(1.023);
  text-shadow: 0 1px 8px rgba(112,28,145,0.04);
  border: 1.5px solid #701c91;
}
.btn.cta-wow, .cta-btn.cta-wow {
  background: linear-gradient(96deg, #8b6ee0 0%, #701c91 95%);
  font-size: 1.19rem;
  font-weight: 800;
  padding: 18px 42px;
  border-radius: 13px;
  box-shadow: 0 8px 36px rgba(112,28,145,0.12);
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  border: none;
  transition: background 0.22s, box-shadow 0.22s, transform 0.15s;
}
.btn.cta-wow i, .cta-btn.cta-wow i {
  font-size: 1.32em;
  margin-right: 8px;
}
.btn.cta-wow:hover, .cta-btn.cta-wow:hover {
  background: linear-gradient(96deg, #701c91 10%, #8b6ee0 100%);
  color: #fff;
  box-shadow: 0 13px 42px rgba(112,28,145,0.18);
  transform: translateY(-2px) scale(1.035);
  text-shadow: 0 1px 10px rgba(112,28,145,0.06);
}

/* ===================== HERO / ABOUT ===================== */
.about-gradient-bg {
  background: linear-gradient(130deg, #f5f0fc 60%, #faf6ff 100%);
}
.about-flex {
  display: flex;
  gap: 54px;
  align-items: stretch;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.about-left {
  flex: 0 0 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.about-avatar {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 22px rgba(112,28,145,0.07);
  background: #fff;
  margin-top: 28px;
  margin-bottom: 18px;
}
.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-highlight-box {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 10px rgba(112,28,145,0.06);
  padding: 13px 22px;
  text-align: center;
}
.about-highlight {
  color: #701c91;
  font-weight: 700;
  font-size: 1.19em;
  display: block;
  letter-spacing: 0.02em;
}
.about-role {
  color: #6c3cc5;
  font-size: 1.05em;
  margin-top: 2px;
  display: block;
}
.about-right {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.about-title {
  font-size: 2.3rem;
  color: #701c91;
  font-weight: 900;
  margin-bottom: 16px;
}
.about-desc {
  font-size: 1.13rem;
  color: #46287a;
  margin-bottom: 34px;
  line-height: 1.7;
  background: rgba(255,255,255,0.8);
  border-radius: 12px;
  padding: 14px 24px;
  box-shadow: 0 2px 10px rgba(108,60,197,0.04);
}
.about-cards-row {
  display: flex;
  gap: 28px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.about-card {
  background: #faf6ff;
  border: 1.5px solid #e6dfff;
  border-radius: 14px;
  box-shadow: 0 3px 16px rgba(108,60,197,0.06);
  padding: 22px 22px 16px 22px;
  min-width: 180px;
  max-width: 220px;
  flex: 1 1 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.16s, transform 0.14s;
}
.about-card:hover {
  box-shadow: 0 9px 22px rgba(112,28,145,0.11);
  transform: translateY(-5px) scale(1.04);
}
.about-card-icon {
  font-size: 2.2rem;
  color: #701c91;
  margin-bottom: 8px;
}
.about-card-title {
  font-weight: 700;
  font-size: 1.08rem;
  color: #6c3cc5;
  margin-bottom: 6px;
}
.about-card-desc {
  font-size: 0.99rem;
  color: #46287a;
  line-height: 1.4;
}

/* ===================== TIMELINE TARGET SECTION ===================== */
.about-target-section {
  background: #fff;
  padding: 56px 0 40px 0;
}
.target-timeline {
  display: flex;
  gap: 36px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 950px;
  margin-top: 24px;
}
.target-step {
  background: #faf6ff;
  border: 1.5px solid #e6dfff;
  border-radius: 15px;
  padding: 30px 22px 18px 22px;
  flex: 1 1 190px;
  min-width: 185px;
  max-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 10px rgba(108,60,197,0.08);
  margin-bottom: 16px;
  position: relative;
  transition: box-shadow 0.17s, transform 0.13s;
}
.target-step:hover {
  box-shadow: 0 10px 32px rgba(108,60,197,0.12);
  transform: translateY(-7px) scale(1.03);
  border-color: #cdbcf0;
}
.target-icon {
  font-size: 2.1rem;
  color: #701c91;
  margin-bottom: 11px;
}
.target-title {
  font-size: 1.09rem;
  font-weight: 700;
  color: #6c3cc5;
  margin-bottom: 5px;
}
.target-desc {
  color: #46287a;
  font-size: 0.97rem;
  line-height: 1.4;
}

/* ===================== SERVIZI ===================== */
.services-flex {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  margin: 0 auto 36px auto;
  max-width: 1100px;
}
.service-card {
  flex: 1 1 260px;
  min-width: 250px;
  max-width: 340px;
  background: #faf6ff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(108,60,197,0.10);
  border: 1.5px solid #e5daf1;
  padding: 36px 26px 30px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.18s;
}
.service-card:hover {
  box-shadow: 0 10px 36px rgba(112,28,145,0.13);
  transform: translateY(-7px) scale(1.035);
  border-color: #bda7e4;
}
.service-icon {
  font-size: 2.65rem;
  color: #701c91;
  margin-bottom: 19px;
}
.service-title {
  font-size: 1.24rem;
  color: #701c91;
  font-weight: 700;
  margin-bottom: 13px;
  letter-spacing: -0.5px;
}
.service-desc {
  font-size: 1.04rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ===================== WHY ME - BADGES & CARDS ===================== */
.whyme-cards {
  display: flex;
  gap: 38px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  margin: 0 auto 36px auto;
  max-width: 950px;
}
.whyme-card {
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 320px;
  background: #f5f0fc;
  border-radius: 16px;
  box-shadow: 0 3px 18px rgba(108,60,197,0.09);
  border: 1.5px solid #e5daf1;
  padding: 36px 20px 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.17s, transform 0.17s;
}
.whyme-card:hover {
  box-shadow: 0 9px 34px rgba(112,28,145,0.14);
  transform: translateY(-6px) scale(1.028);
  border-color: #bda7e4;
}
.whyme-icon {
  font-size: 2.2rem;
  color: #701c91;
  margin-bottom: 15px;
}
.whyme-title { font-size: 1.13rem; color: #701c91; font-weight: 700; margin-bottom: 7px; }
.whyme-desc { font-size: 1rem; color: #46287a; }

/* Variante BADGE (più compatta per contatti) */
.contact-badges {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-bottom: 22px;
}
.contact-badge {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 18px 20px 18px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 2px 20px rgba(108,60,197,0.07);
  transition: box-shadow .19s, transform .15s;
  text-align: center;
  height: 100%;
}
.contact-badge i {
  font-size: 2.3rem;
  color: #701c91;
  margin-bottom: 10px;
  transition: color 0.22s;
}
.contact-badge-title {
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.contact-badge-desc {
  font-size: 0.98rem;
  color: #444;
}
.contact-badge:hover {
  box-shadow: 0 4px 32px rgba(108,60,197,0.16);
  transform: translateY(-4px) scale(1.03);
}
.contact-badge:hover i {
  color: #8b6ee0;
}

/* ===================== PORTFOLIO / DEMO SHOWCASE ===================== */
.portfolio-section {
  background: linear-gradient(to bottom, #e2d8ff38 0%, #fff 120px, #fff 100%);
  /* Sfumatura viola in alto, bianco da 120px in giù */
  padding: 60px 0 50px 0;
  box-shadow: 0 6px 32px rgba(108,60,197,0.04);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 36px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 0 0 0;
}
.portfolio-card {
  background: #faf6ff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(108,60,197,0.08);
  overflow: hidden;
  transition: box-shadow 0.18s, transform 0.16s;
  display: flex;
  flex-direction: column;
  border: 1px solid #e6dfff;
  position: relative;
}
.portfolio-card:hover {
  box-shadow: 0 8px 28px rgba(108,60,197,0.15);
  transform: translateY(-5px) scale(1.018);
  border-color: #cdbcf0;
}
.portfolio-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #eee4ff;
  display: block;
}
.card-info {
  padding: 22px 22px 18px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.card-info h3 {
  font-size: 1.19rem;
  margin: 0 0 8px 0;
  color: #6c3cc5;
  font-weight: 700;
}
.card-info p {
  font-size: 1.01rem;
  color: #46287a;
  margin: 0 0 14px 0;
}
.portfolio-card:hover .portfolio-btn {
  background: #fff;
  color: #6c3cc5;
  border: 1px solid #6c3cc5;
}
.portfolio-disclaimer {
  text-align: center;
  color: #7a5ca0;
  font-size: 1.04rem;
  margin-top: 34px;
}

/* ============= FORM DI CONTATTO ============= */
.contact-hero-form {
  background: #faf6ff;
  border-radius: 20px;
  box-shadow: 0 6px 32px rgba(108,60,197,0.13);
  max-width: 620px;
  margin: 58px auto 0 auto;
  padding: 44px 38px 36px 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-form-header {
  text-align: center;
}
.input-row {
  display: flex;
  gap: 24px;
  width: 100%;
  margin-bottom: 20px;
}
.input-icon-group {
  position: relative;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 2px 12px rgba(112,28,145,0.06);
  border: 1.5px solid #d6c0f1;
  transition: box-shadow 0.18s, border-color 0.18s;
  margin-bottom: 0;
}
.input-icon-group:focus-within {
  border-color: #701c91;
  box-shadow: 0 2px 16px rgba(112,28,145,0.13);
}
.input-icon-group i {
  color: #701c91;
  font-size: 1.18rem;
  margin: 0 13px;
}
.input-icon-group input,
.input-icon-group textarea {
  border: none;
  background: transparent;
  outline: none;
  font-size: 1.13rem;
  color: #46287a;
  padding: 15px 10px 15px 0;
  width: 100%;
  font-family: inherit;
  resize: none;
}
.input-icon-group textarea {
  min-height: 96px;
  padding-left: 0;
}
.input-icon-group.textarea-group {
  margin-top: 10px;
  width: 100%;
}
.cta-servizi {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 44px auto 0 auto;
  gap: 10px;
}
.cta-servizi-note {
  font-size: 1.03rem;
  color: #6c3cc5;
  margin-top: 8px;
  opacity: 0.85;
  text-align: center;
}
.form-btn-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
}

/* ===================== FOOTER ===================== */
.footer {
  width: 100%;
  background: linear-gradient(96deg, #2d1246 75%, #491775 100%);
  color: #eee;
  padding: 0;
  margin: 0;
  border-top: 4px solid #701c91;
  box-shadow: 0 -2px 18px rgba(44,20,70,0.12);
  position: relative;
  z-index: 20;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 28px 28px 28px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 46px;
}
.footer-info {
  flex: 1 1 320px;
  min-width: 300px;
  max-width: 480px;
  border-radius: 16px;
  padding: 34px 28px 30px 28px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.footer-title {
  font-size: 1.19rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 13px;
  letter-spacing: 0.5px;
}
.footer-details p {
  color: #e1d3fa;
  font-size: 1.03rem;
  margin: 7px 0 0 0;
  letter-spacing: 0.01em;
}
.footer-details a {
  color: #cdbcf0;
  text-decoration: underline;
  transition: color .16s;
}
.footer-details a:hover {
  color: #fff;
}
.footer-info i {
  color: #ae86ff;
  margin-right: 9px;
}
.footer-map {
  flex: 1 1 450px;
  min-width: 320px;
  max-width: 520px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px 24px 18px;
}
#custom-map-desktop {
  min-width: 240px;
  min-height: 230px;
  width: 100%;
  max-width: 440px;
  border-radius: 12px;
}
.footer-copyright {
  text-align: center;
  color: #beace1;
  font-size: 0.98rem;
  padding-bottom: 10px;
  letter-spacing: 0.05em;
}

/* ===================== RESPONSIVE BREAKPOINTS ===================== */
@media (max-width: 900px) {
  .footer-inner { flex-direction: column; gap: 30px; padding: 36px 10px 14px 10px; }
  .footer-map, .footer-info { max-width: 100%; margin: 0 auto; }
  #custom-map-desktop { max-width: 100%; min-height: 170px; }
  .services-flex { flex-direction: column; gap: 22px; }
  .whyme-cards { gap: 22px; }
  .about-flex { flex-direction: column; gap: 38px; }
  .about-left { align-items: flex-start; margin-bottom: 10px; }
  .about-avatar { margin: 0 auto 14px auto; }
  .about-right { align-items: center; }
  .about-cards-row { flex-direction: column; gap: 20px; align-items: stretch; }
  .target-timeline { flex-direction: column; gap: 20px; }
}
@media (max-width: 650px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 22px; }
  .portfolio-section { padding: 24px 0 16px 0; }
  .page-content { padding-top: 64px; }
  .section-title, .about-title { font-size: 1.26rem; }
}
@media (max-width: 600px) {
  .container { padding: 0 7px; }
}
@media (min-width: 701px) {
  .contact-badges { flex-direction: row; gap: 18px; justify-content: center; margin-bottom: 22px; padding: 0 0; }
  .contact-badge { flex: 1 1 0; max-width: 340px; min-width: 0; transition: box-shadow .19s, transform .14s; margin: 0; cursor: pointer; }
  .contact-badge:hover { box-shadow: 0 6px 28px rgba(108,60,197,0.16); transform: translateY(-6px) scale(1.04); }
  .contact-badge:hover i { color: #8b6ee0 !important; transition: color 0.17s; }
}

/* ===== PRIVACY PAGE ===== */
.privacy-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 18px 24px 18px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 24px rgba(112,28,145,0.07);
}

.privacy-title {
  color: var(--clr-primary, #701c91);
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.privacy-intro {
  font-size: 1.13em;
  margin-bottom: 22px;
}

.privacy-subtitle {
  color: var(--clr-primary-dark, #5a1773);
  font-size: 1.32rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.privacy-list {
  margin-bottom: 18px;
  padding-left: 24px;
  font-size: 1.04em;
}

.privacy-paragraph {
  margin-bottom: 14px;
  font-size: 1.02em;
}

.privacy-link {
  color: var(--clr-primary, #701c91);
  text-decoration: underline;
  transition: color 0.14s;
}
.privacy-link:hover {
  color: var(--clr-accent, #8b6ee0);
}

.privacy-update {
  font-size: 0.98em;
  color: #6a6881;
  margin-top: 10px;
}

/* === Portfolio === */
.portfolio-card { display: flex; }
.portfolio-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  flex: 0 0 auto;
  background: #eee4ff;
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
}

.card-info h3 {
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.2em * 2);
}
.card-info p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1 auto;
}

.card-info .btn { margin-top: auto; }

@media (min-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.portfolio-section .container { max-width: 1280px; }
@media (min-width: 1200px) {
  .portfolio-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
