html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #111111;
    background-color: #0b1120;
    background-image:
        linear-gradient(rgba(9, 13, 22, 0.55), rgba(9, 13, 22, 0.55)),
        url('img/Arredamento-Living-Colors-Novara00007.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #111111;
}

p {
    color: #2a2a2a;
}

.container {
    width: min(1120px, 88%);
    margin: auto;
}

#navbar {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    padding: 18px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
    z-index: 1000;
    background: rgba(232, 87, 36, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#navbar.scrolled {
    background: rgba(232, 87, 36, 0.22);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 12px 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 54px;
    width: auto;
    display: block;
    border-radius: 14px;
}

#main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

#main-nav a {
    color: rgba(232, 87, 36, 1);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

#main-nav a:hover {
    opacity: 0.78;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    width: 42px;
    height: 42px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: rgba(232, 87, 36, 1);
    margin: 6px auto;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    overflow: hidden;
    background: transparent;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.50)),
        url('img/Arredamento-Living-Colors-Novara00005.jpg') center center / cover no-repeat;
    transform: scale(1);
    animation: heroZoom 18s ease-in-out infinite alternate;
}

.overlay {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    color: #ffffff;
    max-width: 700px;
    padding-top: 40px;
}

.hero h2 {
    font-size: clamp(2.4rem, 5vw, 4.3rem);
    line-height: 1.08;
    margin: 0 0 18px;
    color: #ffffff;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.75;
    max-width: 620px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.92);
}

.section {
    padding: 96px 0;
    scroll-margin-top: 90px;
}

.panel {
    margin: 42px auto;
}

.panel .container,
.cta-inner,
footer .container {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.50);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 36px clamp(22px, 3vw, 40px);
}

.team {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.member {
    text-align: center;
}

.member img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.member h3 {
    margin: 18px 0 8px;
}

.member p {
    margin: 0 0 12px;
}

.member a,
.contact-info a {
    color: #8e6d2f;
    text-decoration: none;
    font-weight: 600;
}

.cta {
    padding: 42px 0;
}

.cta-inner {
    text-align: center;
    background: rgba(232, 87, 36, 0.88);
}

.cta h2,
.cta p {
    color: #ffffff;
}

.btn {
    display: inline-block;
    border: 1px solid rgba(232, 87, 36, 1);
    padding: 12px 22px;
    color: #ffffff;
    background: rgba(232, 87, 36, 1);
    text-decoration: none;
    transition: all 0.25s ease;
    border-radius: 8px;
}

.btn:hover {
    background: #c94c1f;
    border-color: #c94c1f;
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    color: rgba(232, 87, 36, 1);
}

.btn-secondary:hover {
    background: rgba(232, 87, 36, 1);
    color: #ffffff;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 28px;
    margin-bottom: 36px;
    align-items: stretch;
}

.contact-info {
    padding: 28px;
    border: 1px solid rgba(232, 87, 36, 0.20);
    background: rgba(232, 87, 36, 0.05);
    border-radius: 10px;
}

.contact-info h3 {
    margin-top: 0;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.contact-map iframe {
    width: 100%;
    min-height: 340px;
    height: 100%;
    border: 0;
    display: block;
    border-radius: 10px;
}

.contact-form {
    display: grid;
    gap: 14px;
    max-width: 760px;
}

input,
textarea,
button {
    font: inherit;
}

input,
textarea {
    padding: 14px 16px;
    border: 1px solid rgba(232, 87, 36, 0.35);
    background: rgba(255, 255, 255, 0.92);
    color: #111111;
    border-radius: 8px;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: rgba(232, 87, 36, 0.68);
}

button[type="submit"] {
    width: fit-content;
    border: 1px solid rgba(232, 87, 36, 1);
    background: rgba(232, 87, 36, 1);
    color: #ffffff;
    padding: 12px 22px;
    cursor: pointer;
    border-radius: 8px;
}

button[type="submit"]:hover {
    background: #c94c1f;
    border-color: #c94c1f;
}

footer {
    padding: 34px 0;
    background: transparent;
}

footer p {
    color: #111111;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.footer-logo {
    height: 58px;
    width: auto;
    display: block;
    background: #ffffff;
    padding: 8px 14px;
    border-radius: 14px;
}

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.85s ease, transform 0.85s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-hero {
    animation: heroTextIn 1.2s ease-out 0.15s both;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

@keyframes heroTextIn {
    0% {
        opacity: 0;
        transform: translateY(38px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    body {
        background-attachment: scroll;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

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

    .menu-toggle {
        display: inline-block;
    }

    #main-nav {
        position: absolute;
        top: 100%;
        right: 6%;
        left: 6%;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 20px;
        background: rgba(255, 245, 241, 0.96);
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    #main-nav.is-open {
        display: flex;
    }

    .logo-img {
        height: 46px;
    }

    .footer-logo {
        height: 50px;
    }

    .hero {
        min-height: 620px;
    }

    .contact-info {
        padding: 22px;
    }

    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-secondary {
        text-align: center;
    }

    .panel {
        margin: 28px auto;
    }

    .section {
        padding: 64px 0;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(1120px, 92%);
    }

    .panel .container,
    .cta-inner,
    footer .container {
        padding: 26px 18px;
    }

    .team {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .member h3 {
        margin-top: 12px;
    }

    .hero {
        min-height: 580px;
    }

    .carousel {
        width: 92%;
        margin: 32px auto;
    }

    .carousel__button {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }

    .prev {
        left: 8px;
    }

    .next {
        right: 8px;
    }

    .carousel__dots {
        bottom: 10px;
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-bg,
    .reveal,
    .reveal-hero,
    .menu-toggle span,
    #navbar {
        animation: none !important;
        transition: none !important;
    }
}

.carousel {
  position: relative;
  width: min(1200px, 92%);
  margin: 50px auto;
  overflow: hidden;
  border-radius: 10px;
}

.carousel__viewport {
  overflow: hidden;
}

.carousel__track {
  position: relative;
  aspect-ratio: 16 / 9;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
  border-radius: 10px;
}

.carousel__slide.active {
  opacity: 1;
}

.carousel__button {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.carousel__button:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 16px;
}

.next {
  right: 16px;
}

.carousel__dots {
  position: absolute;
  z-index: 2;
  bottom: 16px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.carousel__dot.active {
  background: #fff;
}
