:root {
    /* Palette dei colori condivisa */
    --color-primary: #4D7298;     /* Blu scuro */
    --color-secondary: #77A6B6;   /* Blu medio */
    --color-accent: #9DC3C2;      /* Verde acqua */
    --color-light: #B3D89C;       /* Verde chiaro */
    --color-lighter: #D0EFB1;     /* Verde molto chiaro */
    --color-text: #333333;        /* Grigio scuro per il testo */
    --color-bg: #ffffff;          /* Bianco sfondo */
    --color-border: #9DC3C2;      /* Verde acqua per i bordi */
}

/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.recensioni-page {
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-bg);
}

/* WRAPPER PRINCIPALE */
.recensioni-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   1) SEZIONE CTA + IMMAGINE QUADRATA
======================================== */
.rec-cta-and-image {
    display: flex;
    width: 60%;
    gap: 50px;
    margin: 0 auto 60px;
    padding: 40px 0;
    align-items: center;
}

.rec-cta {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 25px 20px;
    background-color: var(--color-bg);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.rec-cta:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.rec-cta-plus {
    font-size: 50px;
    font-weight: 300;
    color: var(--color-primary);
    line-height: 1;
    transition: transform 0.3s ease;
}

.rec-cta:hover .rec-cta-plus {
    transform: rotate(90deg);
}

.rec-cta-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    text-align: center;
    max-width: 250px;
    line-height: 1.4;
}

.rec-cta-image {
    flex: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 400px;
}

.rec-cta-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rec-cta-and-image { display: flex; width: 60%; gap: 50px; margin: 0 auto 60px; padding: 40px 0; align-items: center; } .rec-cta-and-image a { text-decoration: none; color: inherit; flex: 1; }
/* ========================================
   2) TRE PANNELLI ORIZZONTALI (PILLARS)
======================================== */
.rec-pillars {
    display: flex;
    width: 60%;
    margin: 0 auto 80px;
    gap: 30px;
    padding: 20px 0;
    align-items: flex-end;
}

.pillar {
    flex: 1;
    padding: 30px 25px;
    background-color: var(--color-bg);
    border: none;
    border-radius: 12px;
    text-align: center;
    max-width: 320px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pillar:nth-child(1) {
    align-self: flex-end;
}

.pillar:nth-child(2) {
    align-self: flex-start;
    margin-top: -30px;
}

.pillar:nth-child(3) {
    align-self: flex-end;
}

.pillar h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.pillar p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.6;
}

/* ========================================
   3) BEST REVIEWS
======================================== */
.rec-best {
    width: 100%;
    margin-bottom: 80px;
}

.rec-best h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 1.5px;
}

/* ========================================
   4) ALL REVIEWS
======================================== */
.rec-all {
    width: 100%;
    margin-bottom: 60px;
}

.rec-all h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 1.5px;
}

.rec-all h2 .link-title {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.rec-all h2 .link-title:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* ========================================
   GRID DELLE CARD
======================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    margin-bottom: 40px;
}

/* ========================================
   SINGOLA REVIEW CARD
======================================== */
.review-card {
    background-color: var(--color-bg);
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.card-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--color-lighter);
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.review-card:hover .card-thumb img {
    transform: scale(1.1);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.card-meta .author {
    font-size: 14px;
    color: #000000;
    font-weight: 500;
}

.card-meta .country {
    font-size: 14px;
    color: #000000;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 600;
}

.badge.verified {
    background-color: var(--color-light);
    color: #000000;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-val {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

/* ========================================
   STELLE
======================================== */
.stars {
    display: inline-flex;
    gap: 2px;
}

.star {
    font-size: 18px;
    line-height: 1;
}

.star.full {
    color: #FFB800;
}

.star.half {
    color: #FFB800;
    opacity: 0.5;
}

.star.empty {
    color: #E0E0E0;
}

/* ========================================
   PULSANTE SEE ALL
======================================== */
.see-all {
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 16px 48px;
    background-color: var(--color-primary);
    color: var(--color-bg);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(77, 114, 152, 0.2);
}

.btn:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(77, 114, 152, 0.3);
}

.pillar-icon{
    width: auto;
    height: 50px;
    display: block;
    margin: 0 auto 12px;
}

.pillar h3 {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 14px;
    letter-spacing: 1px;
    text-align: center;
}

/* ========================================
   RESPONSIVE
======================================== */

/* --- TABLET (iPad landscape + portrait) --- */
@media (max-width: 1024px) {
    .rec-cta-and-image {
        width: 80%;
        gap: 30px;
    }

    .rec-pillars {
        width: 80%;
        gap: 20px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .rec-best h2,
    .rec-all h2 {
        font-size: 30px;
    }
}

/* --- TABLET PORTRAIT (iPad 768px) --- */
@media (max-width: 820px) {
    .rec-cta-and-image {
        width: 88%;
        gap: 24px;
        padding: 30px 0;
        margin-bottom: 40px;
    }

    .rec-cta {
        padding: 22px 18px;
    }

    .rec-cta-plus {
        font-size: 44px;
    }

    .rec-cta-text {
        font-size: 15px;
    }

    .rec-cta-image {
        max-width: 320px;
    }

    .rec-pillars {
        width: 88%;
        gap: 16px;
        margin-bottom: 50px;
        /* mantiene la disposizione orizzontale su iPad */
        align-items: stretch;
    }

    .pillar {
        padding: 24px 18px;
    }

    .pillar:nth-child(2) {
        margin-top: -20px;
    }

    .pillar h3 {
        font-size: 20px;
    }

    .pillar p {
        font-size: 14px;
    }

    .pillar-icon {
        height: 42px;
    }

    .rec-best,
    .rec-all {
        margin-bottom: 50px;
    }

    .rec-best h2,
    .rec-all h2 {
        font-size: 28px;
        margin-bottom: 28px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .card-thumb {
        height: 180px;
    }

    .card-title {
        font-size: 18px;
    }

    .btn {
        padding: 14px 40px;
        font-size: 16px;
    }
}

/* --- MOBILE (< 768px) --- */
@media (max-width: 767px) {
    .recensioni-wrapper {
        padding: 0 16px;
    }

    /* CTA + immagine: stack verticale, immagine sopra */
    .rec-cta-and-image {
        flex-direction: column-reverse;
        width: 100%;
        gap: 20px;
        padding: 24px 0;
        margin-bottom: 32px;
    }

    .rec-cta-and-image a {
        width: 100%;
    }

    .rec-cta {
        padding: 22px 20px;
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }

    .rec-cta-plus {
        font-size: 40px;
        flex-shrink: 0;
    }

    /* sul mobile il "+" non ruota — l'area toccabile è tutta la card */
    .rec-cta:hover .rec-cta-plus {
        transform: none;
    }

    .rec-cta-text {
        font-size: 15px;
        text-align: left;
        max-width: none;
    }

    .rec-cta-image {
        max-width: 100%;
        width: 100%;
    }

    /* Pillars: stack verticale, niente stagger */
    .rec-pillars {
        flex-direction: column;
        width: 100%;
        gap: 14px;
        margin-bottom: 40px;
        padding: 0;
        align-items: stretch;
    }

    .pillar {
        max-width: 100%;
        padding: 22px 20px;
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
    }

    .pillar:nth-child(1),
    .pillar:nth-child(2),
    .pillar:nth-child(3) {
        align-self: auto;
        margin-top: 0;
    }

    .pillar-icon {
        height: 38px;
        flex-shrink: 0;
        margin: 0;
    }

    .pillar h3 {
        font-size: 17px;
        margin-bottom: 4px;
        text-align: left;
    }

    .pillar p {
        font-size: 14px;
        color: var(--color-text);
    }

    /* Cards: singola colonna */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 28px;
    }

    .card-thumb {
        height: 190px;
    }

    .card-title {
        font-size: 17px;
    }

    .rec-best,
    .rec-all {
        margin-bottom: 40px;
    }

    .rec-best h2,
    .rec-all h2 {
        font-size: 24px;
        margin-bottom: 22px;
        letter-spacing: 1px;
    }

    .btn {
        padding: 14px 36px;
        font-size: 15px;
        width: 100%;
        text-align: center;
    }
}

/* --- MOBILE PICCOLO (< 480px) --- */
@media (max-width: 480px) {
    .recensioni-wrapper {
        padding: 0 12px;
    }

    .rec-cta {
        padding: 18px 14px;
        gap: 12px;
    }

    .rec-cta-plus {
        font-size: 36px;
    }

    .rec-cta-text {
        font-size: 14px;
    }

    .pillar {
        padding: 18px 14px;
        gap: 12px;
    }

    .pillar-icon {
        height: 32px;
    }

    .pillar h3 {
        font-size: 16px;
    }

    .card-thumb {
        height: 170px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-body {
        padding: 16px;
    }

    .rec-best h2,
    .rec-all h2 {
        font-size: 21px;
    }

    .btn {
        padding: 13px 28px;
        font-size: 14px;
    }
}

/* ===== Reset link solo dentro la pagina recensioni ===== */
.recensioni-page a {
    text-decoration: none;
    color: inherit;
  }
  
  /* Accessibilità: focus chiaro ma non invasivo */
  .recensioni-page a:focus-visible {
    outline: 2px solid #4D7298; /* usa il tuo primary */
    outline-offset: 2px;
    border-radius: 12px;
  }
  
  /* Le card diventano link a blocco, con hover gradevole */
  .review-card-link {
    display: block;
  }
  .review-card-link:hover .review-card,
  .review-card-link:focus .review-card {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    transition: transform 120ms ease, box-shadow 120ms ease;
  }
  
  /* Il bottone rimane senza underline */
  .btn { text-decoration: none; }
  
  /* Il titolo "ALL REVIEWS" non è sottolineato, ma lo diventa al passaggio del mouse (se ti piace così) */
  .link-title { text-decoration: none; }
  .link-title:hover { text-decoration: underline; }
  
  /* (opzionale) Per la CTA in alto, estendi l'area cliccabile */
  .rec-cta-and-image a {
    display: inline-block;
  }
  