/*
    Theme Name: Ristorante Da Filippo
    Version: 1.0
    Author: Mario Nastro
*/

:root {
    --light-bg-color: #FFFAF7;
    --dark-bg-color: #1E1E1E;
    --primary-color: #F14624;
    --secondary-color: #F3E1CE;
    --light-text-color: #FFF;
    --dark-text-color: #000;
    --swiper-theme-color: #F14624 !important;
}

html {
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    background-color: var(--light-bg-color);
    scroll-behavior: smooth;
}

/*
*    TEXTS
*/

p {
    font-weight: 300;
}

p b {
    font-weight: 400;
}

h1 {
    font-family: 'Tempting', cursive;
    font-size: 4em;
}

h2 {
    font-family: 'Baskerville Old Face', serif;
    font-size: 3em;
}

span.signature {
    font-family: 'Signature', serif;
    font-size: 2em;
}

@media screen and (min-width: 1280px) {
    h1 {
        font-size: 5em;
    }

    h2 {
        font-size: 4em;
    }

    span.signature {
        font-size: 2em;
    }
}

/*
*    LINKS
*/

a {
    cursor: pointer;
}

a.icon,
a.link {
    position: relative;
    text-decoration: none;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
}

a.icon:hover,
a.link:hover {
    opacity: 0.8;
}

a.link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -2px;
  left: 0;
  opacity: 0.8;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: bottom left;
  transition: transform 0.3s ease-out;
}

a.link:hover::after {
    transform: scaleX(1);
}

a.button {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 10%;
    padding: 1.75em 3.25em;
    font-weight: 400;
    cursor: pointer;
    appearance: none;
    transition: filter 0.2s ease-in-out;
}

a.button:hover {
    filter: saturate(115%);
}

a.button.primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

a.button.secondary {
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
}

a.button.tertiary {
    border: solid var(--primary-color) 2px;
    color: var(--primary-color);
    padding: 1.25em 4.25em;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

a.button.tertiary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

/*
 *  CAROUSEL
 */

.carousel-track:hover,
.carousel-track:active {
    animation-play-state: paused;
    cursor: pointer;
}

.animate-carousel,
.animate-carousel-reverse {
    animation-name: carousel-scroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

.animate-carousel-reverse {
    animation-direction: reverse;
}

@keyframes carousel-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); 
    }
}