/* Components riutilizzabili */

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:10px;border:1px solid var(--stroke);background:#fff;color:#111827;font-weight:600;cursor:pointer;transition:.2s}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--brand);color:#fff;border-color:var(--brand)}
.btn-primary:hover{background:var(--brand-600)}
.btn-light{background:#fff;color:var(--brand);border-color:var(--brand)}

/* Grid e Card */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.cards-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{background:var(--card);border:1px solid var(--stroke);border-radius:14px;padding:14px}

/* Property Cards */
.property-card{display:flex;flex-direction:column;gap:10px}
.property-card .thumb{position:relative;border-radius:12px;overflow:hidden}
.property-card .thumb .badge{position:absolute;left:10px;top:10px;background:var(--brand);color:#fff;font-weight:700;padding:6px 8px;border-radius:8px;font-size:12px}
.property-card .thumb img{width:100%;height:180px;object-fit:cover}
.property-card .title{font-weight:700;font-size:18px}
.property-card .meta{display:flex;gap:12px;color:var(--muted);font-size:14px}
.property-card .price{font-weight:800;font-size:18px;color:var(--brand)}
.property-card .actions{display:flex;justify-content:space-between;align-items:center}

/* Page hero comune */
.page-hero {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--card) 0%, var(--brand-50) 100%);
  border-bottom: 1px solid var(--stroke);
  text-align: center;
}

.page-hero h1 {
  font-size: 42px;
  color: var(--text);
  margin: 0 0 16px;
  font-weight: 800;
}

.page-hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Portals Section */
.portals-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--card) 0%, var(--bg) 100%);
}

.portals-section .section-head {
  text-align: center;
  margin-bottom: 60px;
}

.portals-section .section-head h2 {
  font-size: 36px;
  color: var(--text);
  margin: 0 0 16px;
  font-weight: 700;
}

.portals-section .section-head p {
  font-size: 18px;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.portals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.portal-card {
  background: var(--bg);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid var(--stroke);
  position: relative;
  overflow: hidden;
}

.portal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.portal-card:hover::before {
  transform: scaleX(1);
}

.portal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  border-color: var(--brand);
}

.portal-logo {
  margin-bottom: 20px;
}

.portal-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  display: inline-block;
  padding: 8px 16px;
  background: var(--brand-50);
  border-radius: 8px;
}

.portal-icon {
  font-size: 32px;
  display: inline-block;
  padding: 12px;
  background: var(--brand-50);
  border-radius: 50%;
}

.portal-info h3 {
  font-size: 18px;
  color: var(--text);
  margin: 0 0 8px;
  font-weight: 600;
}

.portal-info p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.portal-link {
  color: var(--brand);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.portal-card:hover .portal-link {
  transform: translateX(4px);
}

.portal-cta {
  background: linear-gradient(135deg, var(--brand-50), rgba(34, 197, 94, 0.02));
  border-color: var(--brand);
}

.portal-cta .portal-info h3 {
  color: var(--brand);
}

/* Company Story Section */
.company-story {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--card) 0%, var(--brand-50) 50%, var(--card) 100%);
  position: relative;
  overflow: hidden;
}

.company-story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 80%, rgba(34, 197, 94, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.02) 0%, transparent 50%);
}

.story-content {
  position: relative;
  z-index: 1;
}

.story-intro {
  text-align: center;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.story-intro h2 {
  font-size: 42px;
  color: var(--text);
  margin: 0;
  font-weight: 700;
  max-width: 800px;
  line-height: 1.2;
}

.story-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  color: white;
  padding: 24px 40px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.2);
}

.years {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.years-label {
  font-size: 16px;
  font-weight: 600;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.story-main {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}

.story-main .story-lead {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 30px;
  color: var(--text);
  line-height: 1.6;
}

.story-main p {
  margin-bottom: 25px;
}

.story-main strong {
  color: var(--brand);
  font-weight: 700;
}

.story-values {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  height: fit-content;
}

.story-values h3 {
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 30px;
  text-align: center;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: rgba(34, 197, 94, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(34, 197, 94, 0.1);
  transition: all 0.3s ease;
}

.value-item:hover {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.2);
  transform: translateY(-2px);
}

.value-icon {
  font-size: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--brand-50);
  border-radius: 50%;
}

.value-text strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.value-text span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.story-conclusion {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(34, 197, 94, 0.02));
  border: 2px solid rgba(34, 197, 94, 0.1);
  border-radius: 20px;
  position: relative;
}

.story-conclusion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 2px;
}

.story-conclusion p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
  padding-top: 20px;
}

.story-conclusion strong {
  color: var(--brand);
  font-weight: 700;
}
