/* Tipografia i base */
body {
    background: #e9eae8;
    margin: 0;
    font-family: Arial, sans-serif;
    color: #212422;
    line-height: 1.6;
}

/* HERO */
.hero {
    position: relative;
    background: url('../data/provesPlantilla.avif') center/cover no-repeat;
    /* aspect-ratio: 5 / 2.3; */
    /* background: linear-gradient(to bottom right, #0a5c36, #0f8f4d);
    color: white; */
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    /* ajusta entre 0.15 i 0.35 */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 25px;
    line-height: 1.5;
}

.cta {
    background: #0077ff;
    color: white;
    padding: 14px 28px;
    border-radius: 6px;
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.cta:hover {
    background: #0a5c36;
}

/* Seccions */
.section {
    padding: 40px 20px;
    max-width: 900px;
    margin: auto;
}

.section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.card h3 {
    margin-top: 0;
}

/* Secció acordió */
.accordion-item {
  border-bottom: 1px solid #ddd;
}

/* Columnes imatge + text */
.wc-columns {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.wc-left img {
  width: 100%;
  max-width: 350px;
  border-radius: 8px;
}

.wc-right {
  flex: 1;
}


/* Formulari */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.contact-form button {
    background: #0a5c36;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Selector de subministrament */
.selector-suministre h2 {
    margin-bottom: 40px;
}

.opcions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

 .opcio {
    position: relative;
    width: 100%;
    height: 220px; /* pots ajustar-ho */
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: none; /* ja no cal */
    padding: 0;   /* eliminem el padding verd */
    background: none;
}

.opcio img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ocupa TOT l’espai */
    transition: transform 0.4s ease;
    display: block;
}

.opcio .titol {
    position: absolute;
    bottom: 12px;
    left: 12px;
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    z-index: 2;
}

/* Efecte hover modern */
.opcio:hover {
    transform: translateY(-4px);
}

.opcio:hover img {
    transform: scale(1.08);
}

#selector {
    text-align: center;
}

#selector .cta {
    margin-top: 20px;
    display: inline-block;
}

