* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

/* ==================== HOME PAGE ==================== */
.home-container {
  min-h-screen w-full;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 25%, #6c22ce 50%, #485cec 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1rem;
}

.home-header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 3rem;
}

.large-text {
 font-size: 1rem;
 color: white;
 margin-bottom: 1.5rem;
 line-height: 1.2;
}

.large-gradient-text {
  font-size: 3.75rem; /* equivalente a text-6xl */
  font-weight: 700;   /* font-bold */
  margin-bottom: 0.01rem; /* mb-6 */

  /* Gradiente testo con clip */
  background: linear-gradient(to right, white, #d8b4fe, #bfdbfe); /* from-white via-purple-200 to-blue-200 */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Media query per md:text-8xl (>=768px) */
@media (min-width: 768px) {
  .large-gradient-text {
    font-size: 5.5rem; /* equivalente a text-8xl */
  }
  .large-text{
   font-size: 1.4rem;
 }
}

.home-header p {
  font-size: 1.2rem;
  color: #e5e7eb;
  max-width: 1200px;
  margin: 0 auto;
  line-height: 1.6;
}

.cards-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  flex: 1;
  align-content: center;
}

.card {
  position: relative;
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}

.card-1 {
  background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
}

.card-2 {
  background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
}

.card-3 {
  background: linear-gradient(135deg, #0891b2 0%, #0369a1 100%);
}

.card-icon {
  width: 6rem;
  height: 6rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-icon svg {
  width: 3rem;
  height: 3rem;
  color: #f0f9ff;
  stroke-width: 2;
}

.card h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.card p {
  font-size: 0.95rem;
  color: #f3f4f6;
  margin-bottom: 2rem;
  line-height: 1.6;
  flex-grow: 1;
}

.card-button {
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.card-1 .card-button {
  background: linear-gradient(90deg, #773bead6 0%, #273fb5a8 100%);
  border-color: #9752ff;
  color: #bfdbfe;
}

.card-1 .card-button:hover {
  box-shadow: 0 10px 15px -3px rgba(96, 165, 250, 0.4);
}

.card-2 .card-button {
  background: linear-gradient(90deg, #fbbf24 0%, #f97316 100%);
  border-color: #fed7aa;
  color: #fef3c7;
}

.card-2 .card-button:hover {
  box-shadow: 0 10px 15px -3px rgba(253, 217, 124, 0.8);
}

.card-3 .card-button {
  background: linear-gradient(90deg, #036ba2 0%, #0ea5e9 100%);
  border-color: #60a5fa;
  color: #cffafe;
}

.card-3 .card-button:hover {
  box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.6);
}

.card-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
}

.home-footer {
  width: 100%;
  text-align: center;
  color: #d1d5db;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  margin-top: 2rem;
}

/* ==================== DETAIL PAGES ==================== */
.detail-container {
  min-h-screen;
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem;
}

.detail-header {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  margin-bottom: 3rem;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #22c55e;
  color: white;
  border: 2px solid #16a34a;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.back-button:hover {
  background-color: #16a34a;
}

.detail-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.detail-icon {
  width: 8rem;
  height: 8rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-icon svg {
  width: 4rem;
  height: 4rem;
  stroke-width: 2;
}

.detail-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.detail-content > p {
  font-size: 1.125rem;
  max-width: 48rem;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.detail-image {
  width: 100%;
  max-width: 32rem;
  height: 24rem;
  border-radius: 1rem;
  border: 2px solid;
  margin-bottom: 3rem;
  object-fit: cover;
}

.detail-section {
  width: 100%;
  margin-bottom: 3rem;
}

.detail-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
}

.benefit-card {
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.benefit-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.benefit-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.cta-section {
  border-radius: 1.5rem;
  padding: 2rem 3rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
}

.cta-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section p {
  margin-bottom: 2rem;
}

.cta-button {
  width: 100%;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.detail-footer {
  width: 100%;
  text-align: center;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  margin-top: 3rem;
}

/* ==================== NPL IMMOBILIARI ==================== */
.npl-container {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #5b21b6 100%);
  color: white;
}

.npl-icon {
  background: rgba(59, 130, 246, 0.5);
  color: #bfdbfe;
}

.npl-image {
  border-color: #60a5fa;
}

.npl-benefit-card {
  background: rgba(59, 130, 246, 0.4);
  border-color: #60a5fa;
  color: #dbeafe;
}

.npl-benefit-card h3 {
  color: #bfdbfe;
}

.npl-cta {
  background: rgba(59, 130, 246, 0.4);
  border-color: #60a5fa;
}

.npl-button {
  background-color: #22c55e;
  border-color: #16a34a;
  color: white;
}

.npl-button:hover {
  background-color: #16a34a;
}

/* ==================== PROPERTY FINDER ==================== */
.property-container {
  background: linear-gradient(135deg, #92400e 0%, #b45309 50%, #d97706 100%);
  color: white;
}

.property-icon {
  background: rgba(217, 119, 6, 0.5);
  color: #fef3c7;
}

.property-image {
  border-color: #60a5fa;
}

.property-benefit-card {
  background: rgba(217, 119, 6, 0.4);
  border-color: #fbbf24;
  color: #fef3c7;
}

.property-benefit-card h3 {
  color: #fcd34d;
}

.property-cta {
  background: rgba(217, 119, 6, 0.4);
  border-color: #fbbf24;
}

.property-button {
  background-color: #fbbf24;
  border-color: #f59e0b;
  color: #1f2937;
}

.property-button:hover {
  background-color: #f59e0b;
}

/* ==================== INVESTIMENTO ETICO ==================== */
.investimento-container {
  background: linear-gradient(135deg, #155e75 0%, #0369a1 50%, #0891b2 100%);
  color: white;
}

.investimento-icon {
  background: rgba(6, 182, 212, 0.5);
  color: #cffafe;
}

.investimento-image {
  border-color: #60a5fa;
}

.investimento-benefit-card {
  background: rgba(6, 182, 212, 0.4);
  border-color: #06b6d4;
  color: #cffafe;
}

.investimento-benefit-card h3 {
  color: #a5f3fc;
}

.investimento-cta {
  background: rgba(6, 182, 212, 0.4);
  border-color: #06b6d4;
}

.investimento-button {
  background-color: #06b6d4;
  border-color: #0891b2;
  color: #1e293b;
}

.investimento-button:hover {
  background-color: #0891b2;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .home-header h1 {
    font-size: 2rem;
  }

  .home-header h2 {
    font-size: 1rem;
  }

  .home-header p {
    font-size: 0.95rem;
  }

  .cards-container {
    gap: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .card h2 {
    font-size: 1.25rem;
  }

  .detail-content h1 {
    font-size: 2rem;
  }

  .detail-image {
    height: 16rem;
  }

  .detail-section h2 {
    font-size: 1.5rem;
  }

  .cta-section {
    padding: 1.5rem;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .home-container {
    padding: 1rem 0.5rem;
  }

  .home-header h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .home-header p {
    font-size: 0.875rem;
  }

  .card {
    padding: 1rem;
  }

  .card h2 {
    font-size: 1rem;
  }

  .card p {
    font-size: 0.875rem;
  }

  .card-icon {
    width: 4rem;
    height: 4rem;
  }

  .card-icon svg {
    width: 2rem;
    height: 2rem;
  }

  .detail-icon {
    width: 6rem;
    height: 6rem;
  }

  .detail-icon svg {
    width: 3rem;
    height: 3rem;
  }

  .detail-content h1 {
    font-size: 1.5rem;
  }

  .detail-content > p {
    font-size: 0.95rem;
  }

  .detail-image {
    height: 12rem;
  }
}
