@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

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

:root {
    --primary-color: #FF0027;
    --secondary-color: #245580;
    --text-color: #333;
    --background-color: #fff;

    --font-base: 'Nunito', serif;
    --font-secondary: 'Oswald', sans-serif;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-xxl: 2.5rem;

    --padding-sm: 10px;
    --padding-md: 20px;
    --padding-lg: 40px;
}

body {
    font-family: var(--font-base);
    font-size: var(--font-size-md);
    background-color: var(--background-color);
    color: var(--text-color);
}

/* ----- HEADER ----- */
header {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

header #top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 10%;
    border-bottom: 1px solid #e4e4e4;
}

header #top-header img#logo {
    width: 100%;
    max-width: 300px;
}

header #top-header #socials {
    display: flex;
    gap: 15px;
}

header #top-header #socials .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    font-size: 1.2rem;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

header #top-header #socials .social-icon:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

header nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

header nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: center;
    padding: var(--padding-md) 0;
    border-right: 1px solid #e4e4e4;
}

header nav ul li a {
    color: var(--text-color);
    font-family: var(--font-secondary);
    font-size: var(--font-size-lg);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 300;
    padding: var(--padding-md);
    transition: .3s ease;
    position: relative;
}

header nav ul li a:hover {
    color: var(--primary-color);
}

header nav ul li a::after {
    content: "";
    display: block;
    height: 3px;
    width: 0;
    background: var(--primary-color);
    position: absolute;
    left: 50%;
    bottom: 0px;
    transition: width 0.3s ease, left 0.3s ease;
}

header nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

/**
Generic Main
 */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

main section:not(#home, #find-us) {
    padding: 50px 10%;
}

main section h2 {
    font-size: var(--font-size-xxl);
    text-align: center;
    margin-bottom: var(--padding-lg);
    font-weight: 400;
}


/* START HOME */
main #home #slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

main #home #slider-container .slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

main #home #slider-container .slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex: 0 0 100%;
}

main #home #slider-container .prev,
main #home #slider-container .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 2rem;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: .3s ease;
}

main #home #slider-container .prev {
    left: 20px;
}

main #home #slider-container .next {
    right: 20px;
}

main #home #slider-container .prev:hover,
main #home #slider-container .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* END HOME */

/* START CONTENT WRAPPER (PRESENTATION + NEWS) */
main .content-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 auto;
    gap: var(--padding-lg);
}

main .content-wrapper #presentation {
    flex: 2;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    padding: var(--padding-lg) 0;
}

.cards .card {
    flex: 1 1 300px;
    max-width: 400px;
    background: white;
    border: 2px solid #e4e4e4;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cards .card:hover {
    transform: translateY(-1px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
}

.cards .card h3 {
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cards .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.cards .card p {
    font-size: var(--font-size-md);
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 15px;
}

main .content-wrapper #presentation h2 {
    text-align: left;
    margin-bottom: 0;
}

main .content-wrapper #presentation h3 {
    font-size: var(--font-size-xl);
    margin-top: var(--padding-md);
    color: var(--primary-color);
}

main .content-wrapper #presentation p {
    font-size: var(--font-size-md);
    line-height: 1.6;
    text-align: justify;
    margin-bottom: var(--padding-sm);
}

/* START NEWS */
main .content-wrapper #news {
    position: relative;
    overflow: hidden;
    background-color: var(--primary-color);
    padding: var(--padding-md);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: var(--font-secondary);
    font-weight: 300;
    color: white;
    width: 100%;
    max-width: 400px;
}

main .content-wrapper #news h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--padding-md);
    text-align: center;
}

main .content-wrapper #news #news-slider {
    display: flex;
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}

main .content-wrapper #news #news-slider .news-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

main .content-wrapper #news #news-slider .news-item.active {
    opacity: 1;
}

main .content-wrapper #news #news-slider .news-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    filter: brightness(0.8);
}

main .content-wrapper #news #news-slider .news-item .news-text {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 5px;
}

main .content-wrapper #news #news-slider .news-item .news-text h3 {
    font-size: var(--font-size-lg);
    font-weight: bold;
    margin-bottom: 5px;
}

main .content-wrapper #news #news-slider .news-item .news-text p {
    font-size: var(--font-size-md);
    margin: 0;
}

main .content-wrapper #news #news-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

main .content-wrapper #news #news-dots .dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: white;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

main .content-wrapper #news #news-dots .dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}
/* END NEWS */
/* END CONTENT WRAPPER (PRESENTATION + NEWS) */


/* START GALLERY */
main #gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 245px);
    gap: 10px;
    margin: 0 auto;
}

main #gallery .gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: .3s ease;
}

main #gallery .gallery-grid img:hover {
    transform: scale(1.05);
}

main #gallery .gallery-grid img:nth-child(1) {
    grid-column: span 2;
}

main #gallery .gallery-grid img:nth-child(2) {
    grid-row: span 2;
}
/* END GALLERY */

/* START REVIEWS */
main section#reviews {
    background-color: #f8f8f8;
    color: var(--text-color);
}

main section#reviews #review-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

main section#reviews #review-container {
    display: flex;
    overflow: hidden;
    width: 100%;
}

main section#reviews #review-container .review {
    flex: 0 0 25%;
    box-sizing: border-box;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

main section#reviews #review-container .review p {
    font-size: var(--font-size-md);
    margin-bottom: 10px;
}

main section#reviews #review-container .review .stars {
    font-size: var(--font-size-lg);
    color: gold;
}
/* END REVIEWS */

/* START COMPOSITION */
main #composition {
    background-color: #f9f9f9;
}

main #composition .composition-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

main #composition .composition-list .composition-item {
    text-align: center;
    max-width: 250px;
    font-family: var(--font-secondary);
}

main #composition .composition-list .composition-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 30px;
}
/* END COMPOSITION */



/* ----- CONTACT ----- */
main #contact {
    text-align: center;
    background-color: var(--secondary-color);
    color: white;
    width: 100%;
    padding: var(--padding-lg);
}

main #contact h2 {
    color: white;
}

main #contact article p {
    margin-bottom: 20px;
}


/* START FIND US */
main section#find-us {
    background: #f9f9f9;
}

main section#find-us #content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 400px;
}

main section#find-us #content #address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 40px 80px;
}

main section#find-us #content #address p {
    font-size: var(--font-size-lg);
    margin: 15px 0;
    font-family: var(--font-secondary);
    font-weight: 300;
}

main section#find-us #content #address i {
    color: var(--primary-color);
    margin-right: 10px;
}

main section#find-us #content #map {
    width: 100%;
    height: 100%;
}

main section#find-us #content #map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* END FIND US */

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    font-size: var(--font-size-lg);
    font-weight: bold;
    border-radius: 5px;
    transition: .3s ease;
}

.btn i {
    font-size: var(--font-size-md);
}

.btn:hover {
    opacity: .8;
    color: white;
}


/* START FOOTER */
footer {
    text-align: center;
    padding: var(--padding-md);
    background-color: black;
    color: white;
}
/* END FOOTER */