/* =========================================================
   HOME RESTYLING — El Forn de Freixenet
   ---------------------------------------------------------
   Aquest CSS dóna l'aspecte del disseny a les seccions
   d'Elementor de la home. La idea és que cada secció tingui
   una classe arrel (.forn-hero, .forn-booking…) i els seus
   widgets fills heretin l'estil sense que el client hagi de
   tocar res quan edita textos o imatges.
   ========================================================= */

/* ---------- helpers genèrics aplicables a qualsevol secció ---------- */
.forn-section { font-family: var(--ff-sans); color: var(--ff-text-dark); }
.forn-eyebrow {
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ff-gold);
    font-weight: 300;
}
.forn-title-serif {
    font-family: var(--ff-serif);
    font-weight: 300;
    line-height: 1.18;
    color: var(--ff-stone-dark);
}
.forn-title-serif em { font-style: italic; color: var(--ff-gold-light); }
.forn-body-soft {
    font-size: 15px;
    line-height: 1.85;
    color: var(--ff-text-mid);
    font-weight: 300;
}
/* CTA text amb línia daurada al costat. S'aplica al wrapper d'un heading
   widget — apuntem al .elementor-heading-title perquè Elementor li dona block. */
.forn-cta-text .elementor-heading-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ff-gold);
    font-weight: 400;
    margin-bottom: 0;
}
.forn-cta-text .elementor-heading-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--ff-gold);
    flex-shrink: 0;
}
.forn-cta-text .elementor-heading-title a {
    color: var(--ff-gold);
    text-decoration: none;
}
/* Botons: cal apuntar al .elementor-button dins, no al wrapper, perquè els
   estils per defecte d'Elementor (.elementor-button) guanyen per especificitat. */
.forn-cta-btn .elementor-button,
.forn-cta-btn .elementor-button-link {
    background-color: var(--ff-gold) !important;
    color: var(--ff-stone-dark) !important;
    font-family: var(--ff-sans) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
    padding: 16px 44px !important;
    border: none !important;
    border-radius: 0 !important;
    fill: var(--ff-stone-dark) !important;
}
.forn-cta-btn .elementor-button:hover,
.forn-cta-btn .elementor-button-link:hover {
    background-color: var(--ff-gold-light) !important;
    color: var(--ff-stone-dark) !important;
}

.forn-cta-btn-outline .elementor-button,
.forn-cta-btn-outline .elementor-button-link {
    background-color: transparent !important;
    color: var(--ff-gold) !important;
    border: 1px solid var(--ff-gold) !important;
    border-radius: 0 !important;
    font-family: var(--ff-sans) !important;
    font-size: 11px !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    padding: 10px 28px !important;
    fill: var(--ff-gold) !important;
}
.forn-cta-btn-outline .elementor-button:hover,
.forn-cta-btn-outline .elementor-button-link:hover {
    background-color: var(--ff-gold) !important;
    color: var(--ff-stone-dark) !important;
}

/* ---------- HERO ---------- */
.forn-hero {
    position: relative;
    min-height: 620px !important;
}
.forn-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(42,32,24,0.75) 0%, rgba(42,32,24,0.1) 60%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}
/* Estirem el container al min-height del hero i alineem fills al fons. */
.forn-hero > .elementor-container {
    position: relative;
    z-index: 2;
    min-height: 620px;
    align-items: flex-end !important;
}
.forn-hero > .elementor-container > .elementor-column > .elementor-widget-wrap {
    align-content: flex-end !important;
    align-items: flex-end !important;
}
.forn-hero .forn-hero-tag .elementor-heading-title {
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ff-gold-light);
    font-weight: 300;
    margin-bottom: 14px;
}
.forn-hero .forn-hero-title h1,
.forn-hero .forn-hero-title .elementor-heading-title {
    font-family: var(--ff-serif) !important;
    font-size: 58px !important;
    font-weight: 300 !important;
    color: #FDFAF6 !important;
    line-height: 1.05 !important;
    max-width: 520px;
}
.forn-hero .forn-hero-title em { font-style: italic; color: var(--ff-gold-light); }

/* Badges: alineats a la part inferior dreta, amb una mica de gap entre ells. */
.forn-hero .elementor-inner-section {
    margin-bottom: 0;
}
.forn-hero .elementor-inner-section .elementor-container {
    justify-content: flex-end;
    gap: 12px;
}
.forn-hero-badge {
    background: rgba(245,240,232,0.10) !important;
    border: 1px solid rgba(184,150,90,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-align: center;
    flex-grow: 0 !important;
    width: auto !important;
    max-width: 140px;
}
.forn-hero-badge > .elementor-widget-wrap {
    padding: 16px 24px !important;
    text-align: center;
    justify-content: center;
}
.forn-hero-badge .forn-hero-badge-num .elementor-heading-title {
    font-family: var(--ff-serif) !important;
    font-size: 32px !important;
    font-weight: 300 !important;
    color: var(--ff-gold-light) !important;
    line-height: 1 !important;
    text-align: center;
}
.forn-hero-badge .forn-hero-badge-label .elementor-heading-title {
    font-size: 9px !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
    color: rgba(253,250,246,0.75) !important;
    margin-top: 6px;
    font-weight: 300 !important;
    text-align: center;
}

/* ---------- BOOKING BAR ---------- */
.forn-booking {
    background: var(--ff-stone-dark);
    min-height: 88px;
}
.forn-booking-field-label .elementor-heading-title {
    font-size: 10px !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase !important;
    color: var(--ff-stone-light) !important;
    font-weight: 300 !important;
    margin-bottom: 4px;
}
.forn-booking-field-val .elementor-heading-title {
    font-size: 16px !important;
    color: var(--ff-cream) !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
}
.forn-booking-divider { border-right: 1px solid rgba(255,255,255,0.12); }
/* botó de la booking-bar pot ser una mica més petit que el global .forn-cta-btn */
.forn-booking .forn-cta-btn .elementor-button {
    padding: 14px 36px !important;
    line-height: 1.2 !important;
}

/* ---------- FEATURES STRIP ---------- */
.forn-features {
    background: var(--ff-cream-dark);
    border-top: 0.5px solid rgba(139,125,107,0.2);
    border-bottom: 0.5px solid rgba(139,125,107,0.2);
}
.forn-features .elementor-column {
    border-right: 0.5px solid rgba(139,125,107,0.2);
    padding: 36px 24px !important;
    text-align: center;
}
.forn-features .elementor-column:last-child { border-right: none; }
.forn-feature-num,
.forn-feature-num .elementor-heading-title {
    font-family: var(--ff-serif);
    font-size: 30px;
    font-weight: 300;
    color: var(--ff-stone-dark);
    line-height: 1;
}
.forn-feature-label,
.forn-feature-label .elementor-heading-title {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ff-text-light);
    font-weight: 300;
}

/* ---------- INTRO ---------- */
.forn-intro { background: var(--ff-cream); }
.forn-intro .forn-intro-text-col { padding: 80px 64px 80px 80px !important; }
.forn-intro .forn-title-serif,
.forn-intro .forn-title-serif .elementor-heading-title {
    font-size: 40px;
    margin-bottom: 24px;
}
.forn-intro .forn-body-soft p { max-width: 400px; margin-bottom: 24px; }

/* ---------- ROOMS GRID ---------- */
.forn-rooms { background: var(--ff-cream); }
.forn-rooms .forn-title-serif,
.forn-rooms .forn-title-serif .elementor-heading-title { font-size: 40px; }
/* La inner section que conté l'eyebrow + titular + "Ver todas las habitaciones".
   Forçem que el right-col (CTA) quedi alineat a la baseline del titular i a la dreta. */
.forn-rooms .elementor-inner-section:first-child .elementor-container {
    align-items: flex-end;
    margin-bottom: 36px;
}
.forn-rooms .elementor-inner-section:first-child .forn-cta-text {
    text-align: right;
}
.forn-rooms .elementor-inner-section:first-child .forn-cta-text .elementor-heading-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ff-gold);
    font-weight: 400;
    margin-bottom: 0;
}
.forn-rooms .elementor-inner-section:first-child .forn-cta-text .elementor-heading-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--ff-gold);
}
.forn-room-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 280px;
}
.forn-room-card .elementor-widget-image,
.forn-room-card .elementor-widget-image .elementor-image,
.forn-room-card .elementor-widget-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: saturate(0.85) brightness(0.88);
}
.forn-room-card:hover img { transform: scale(1.04); }
.forn-room-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(42,32,24,0.7) 0%, transparent 55%);
    pointer-events: none;
}
.forn-room-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
}
.forn-room-name,
.forn-room-name .elementor-heading-title {
    font-family: var(--ff-serif);
    font-size: 20px;
    font-weight: 300;
    color: #FDFAF6;
}
.forn-room-detail,
.forn-room-detail .elementor-heading-title {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ff-stone-light);
    font-weight: 300;
}

/* ---------- PRICE SECTION ---------- */
.forn-price {
    background: var(--ff-stone-dark);
    padding: 72px 80px !important;
}
.forn-price .forn-eyebrow { color: var(--ff-gold); margin-bottom: 16px; }
.forn-price .forn-title-serif,
.forn-price .forn-title-serif .elementor-heading-title {
    font-size: 38px;
    color: var(--ff-cream);
}
.forn-price .forn-body-soft { color: var(--ff-stone-light); font-size: 14px; line-height: 1.8; }
.forn-price-card {
    border: 0.5px solid rgba(184,150,90,0.25);
    padding: 28px 32px !important;
    margin-bottom: -1px;
}
.forn-price-card.forn-price-card-featured {
    background: rgba(184,150,90,0.1);
    border-color: rgba(184,150,90,0.5);
}
.forn-price-card-label,
.forn-price-card-label .elementor-heading-title {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ff-stone-light);
    font-weight: 300;
}
.forn-price-card-note,
.forn-price-card-note p {
    font-size: 10px;
    color: rgba(139,125,107,0.6);
    font-weight: 300;
    margin-top: 2px;
}
.forn-price-card-amount,
.forn-price-card-amount .elementor-heading-title {
    font-family: var(--ff-serif);
    font-size: 32px;
    font-weight: 300;
    color: var(--ff-gold-light);
    line-height: 1;
    text-align: right;
}
.forn-price-card-per,
.forn-price-card-per p {
    font-size: 10px;
    color: var(--ff-stone-light);
    letter-spacing: 0.12em;
    margin-top: 2px;
    text-align: right;
}

/* ---------- TESTIMONIALS ---------- */
.forn-testimonials { padding: 80px 80px !important; background: var(--ff-white); }
.forn-testimonial-card {
    border: 0.5px solid rgba(139,125,107,0.2);
    padding: 32px !important;
    background: var(--ff-cream);
    height: 100%;
}
.forn-testimonial-stars,
.forn-testimonial-stars .elementor-heading-title {
    color: var(--ff-gold);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}
.forn-testimonial-text,
.forn-testimonial-text p {
    font-family: var(--ff-serif);
    font-size: 17px;
    font-style: italic;
    font-weight: 300;
    line-height: 1.65;
    color: var(--ff-text-dark);
    margin-bottom: 20px;
}
.forn-testimonial-author,
.forn-testimonial-author .elementor-heading-title {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ff-text-light);
    font-weight: 300;
}

/* ---------- FINAL CTA ---------- */
.forn-final-cta {
    position: relative;
    min-height: 380px;
}
.forn-final-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(42,32,24,0.55);
    pointer-events: none;
    z-index: 1;
}
.forn-final-cta > .elementor-container { position: relative; z-index: 2; }
.forn-final-cta .forn-final-cta-tag {
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ff-gold-light);
    font-weight: 300;
    text-align: center;
}
.forn-final-cta .forn-final-cta-title,
.forn-final-cta .forn-final-cta-title .elementor-heading-title {
    font-family: var(--ff-serif);
    font-size: 50px;
    font-weight: 300;
    color: #FDFAF6;
    line-height: 1.1;
    text-align: center;
}
.forn-final-cta .forn-final-cta-title em { font-style: italic; color: var(--ff-gold-light); }
.forn-final-cta .forn-cta-btn { padding: 18px 56px !important; }
.forn-final-cta-link a {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(253,250,246,0.7);
    font-weight: 300;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 0.5px solid rgba(253,250,246,0.4);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .forn-hero .forn-hero-title h1,
    .forn-hero .forn-hero-title .elementor-heading-title { font-size: 44px; }
    .forn-final-cta .forn-final-cta-title,
    .forn-final-cta .forn-final-cta-title .elementor-heading-title { font-size: 38px; }
    .forn-intro .forn-intro-text-col { padding: 48px !important; }
    .forn-rooms,
    .forn-testimonials,
    .forn-price { padding: 48px 32px !important; }
}
@media (max-width: 767px) {
    .forn-hero { min-height: 480px; }
    .forn-hero .forn-hero-title h1,
    .forn-hero .forn-hero-title .elementor-heading-title { font-size: 34px; }
    .forn-final-cta .forn-final-cta-title,
    .forn-final-cta .forn-final-cta-title .elementor-heading-title { font-size: 28px; }
    .forn-features .elementor-column { border-right: none; border-bottom: 0.5px solid rgba(139,125,107,0.2); }
}
