/* RESET BASE */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 70px;
    width: 70px;
    object-fit: contain;
}

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

img {
    max-width: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top right, #ffe9f7, #faf7fc 50%, #ffffff);
    color: #c13131;
    line-height: 1.6;
    overflow-x: hidden;
}

body.shop-page {
    background:
        radial-gradient(circle at top left, rgba(244, 227, 255, 0.95), rgba(250, 247, 252, 0.88) 45%, rgba(253, 251, 255, 0.95)),
        linear-gradient(135deg, #fffaf7, #f8f1ff);
}

/* HEADER */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
    padding: 14px 8%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e6dff5;
    gap: 16px;
}

.logo {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    color: #6a4c93;
    letter-spacing: 0.05em;
}

.main-nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #4b3b63;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #c77dff;
    transition: width 0.25s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* SECTIONS */
.section {
    padding: 80px 8%;
}

/* HERO */
.hero {
    min-height: 80vh;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    align-items: center;
    gap: 48px;
    background:
        radial-gradient(circle at top left, rgba(244, 227, 255, 0.95), rgba(250, 247, 252, 0.88) 45%, rgba(253, 251, 255, 0.95)),
        linear-gradient(135deg, #fffaf7, #f8f1ff);
}

.hero-content {
    text-align: left;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: #9a5f2e;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    font-family: "Playfair Display", serif;
    font-size: 3rem;
    margin-bottom: 16px;
    color: #3b264f;
    line-height: 1.1;
}

.hero-content p {
    max-width: 560px;
    margin: 0 0 28px;
    color: #5b4a70;
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-showcase {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.carousel-window {
    position: relative;
    min-height: 500px;
    border-radius: 30px;
    padding: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(250, 240, 255, 0.92));
    box-shadow: 0 22px 60px rgba(73, 48, 100, 0.16);
    border: 1px solid rgba(213, 195, 242, 0.7);
}

.carousel-track {
    position: relative;
    min-height: 464px;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
    gap: 18px;
    align-items: stretch;
    opacity: 0;
    transform: translateX(24px);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.carousel-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.carousel-image-wrap {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(145deg, #fde9f4, #f2ecff);
    min-height: 100%;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 10px 8px 10px 4px;
}

.carousel-tag {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff3d8;
    color: #9c6317;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.carousel-copy h2 {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    line-height: 1.15;
    color: #3b264f;
    margin-bottom: 12px;
}

.carousel-copy p {
    color: #5b4a70;
    font-size: 0.98rem;
    margin: 0;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #5e3f84;
    box-shadow: 0 10px 20px rgba(70, 49, 97, 0.16);
    cursor: pointer;
    font-size: 1.2rem;
}

.carousel-arrow.prev {
    left: 12px;
}

.carousel-arrow.next {
    right: 12px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: none;
    background: rgba(106, 76, 147, 0.26);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-dot.is-active {
    background: #6a4c93;
    transform: scale(1.18);
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #6a4c93, #c77dff);
    color: #fff;
    box-shadow: 0 8px 18px rgba(106, 76, 147, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(106, 76, 147, 0.45);
}

.btn-secondary {
    background: #fff;
    color: #6a4c93;
    border: 1px solid #d5c3f2;
}

.btn-secondary:hover {
    background: #f4ebff;
}

.btn-paypal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    padding: 11px 18px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffc439, #ffb347);
    color: #1f2a44;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 10px 20px rgba(255, 196, 57, 0.3);
}

.btn-paypal:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(255, 196, 57, 0.36);
}

.payment-note {
    margin: 8px 4px 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #6b5a80;
}

.paypal-setup-note {
    margin-top: 28px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #ead7ff;
    color: #5b4a70;
    box-shadow: 0 14px 30px rgba(90, 60, 120, 0.08);
}

.paypal-setup-note h3 {
    margin-bottom: 8px;
    color: #3b264f;
    font-family: "Playfair Display", serif;
}

/* ABOUT */
.about {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    margin-bottom: 12px;
    color: #3b264f;
}

.about-text p {
    color: #5b4a70;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.about-img {
    background: linear-gradient(135deg, #e8d9ff, #fdfbff);
    border-radius: 16px;
    min-height: 120px;
}

/* SHOP */
.shop,
.contact {
    max-width: 100%;
    margin: 0;
    background: transparent;
}

.shop {
    padding: 0 8%;
}

.shop-header {
    max-width: 620px;
    margin-bottom: 32px;
}

.shop-title-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
}

.shop-title-image {
    display: block;
    width: clamp(120px, 16vw, 180px);
    aspect-ratio: 1 / 1;
    height: clamp(120px, 16vw, 180px);
    flex-shrink: 0;
    object-fit: cover;
    object-position: center 50%;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(118, 88, 48, 0.12);
}

.shop h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.3rem;
    line-height: 1.15;
    margin-bottom: 0;
    color: #3b264f;
}

.shop-subtitle {
    color: #6a5a82;
    font-size: 1rem;
    line-height: 1.7;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    background: #fff;
    border-radius: 18px;
    padding: 25px 20px;
    box-shadow: 0 10px 24px rgba(43, 34, 54, 0.06);
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 100%;/* più larga */
    min-height: auto; /* niente altezza forzata */
    border: 1px solid rgba(106, 76, 147, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(43, 34, 54, 0.1);
}


.product-card > img,
.product-img {
    width: 100%;
    height: 330px;
    display: block;
    object-fit: cover;
    object-position: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 8px;
    border-radius: 14px;
    overflow: hidden;
}

.product-slider {
    position: relative;
    width: 100%;
    height: 330px;
    margin-bottom: 8px;
    border-radius: 14px;
    overflow: hidden;
}

.product-slider .product-img {
    margin-bottom: 0;
    display: none;
    height: 100%;
}

.product-slider .product-img.is-active {
    display: block;
}

.product-img.product-img-contain {
    object-fit: contain;
}

.product-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #5e3f84;
    box-shadow: 0 10px 20px rgba(70, 49, 97, 0.16);
    cursor: pointer;
    font-size: 1.15rem;
}

.product-slider-arrow.prev {
    left: 12px;
}

.product-slider-arrow.next {
    right: 12px;
}

.product-slider-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(24, 19, 31, 0.68);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    backdrop-filter: blur(4px);
}


/* QUI PUOI COLLEGARE LE TUE FOTO REALI
   sostituendo url("img/...") con i tuoi percorsi */
.img-1 { background-image: url("9.jpg"); }
.img-2 { background-image: url("img/orecchini_rosa_mappa.jpg"); }
.img-3 { background-image: url("img/collana_fiori_blu.jpg"); }
.img-4 { background-image: url("img/set_stella_blu.jpg"); }
.img-5 { background-image: url("img/orecchini_fiore_azzurro.jpg"); }
.img-6 { background-image: url("img/collana_delicata.jpg"); }

.product-card h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    color: #3b264f;
    margin: 0;
}

.product-desc {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #6a5a82;
    margin: 0;
    flex-grow: 1;
}

.product-price {
    font-weight: 700;
    font-size: 1.05rem;
    color: #6a4c93;
    margin-top: 4px;
    margin-bottom: 8px;
}

.product-card .btn-paypal {
    margin-top: auto;
    text-align: center;
}

/* CONTACT */
.contact {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: flex-start;
}

.contact-left h2 {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #3b264f;
}

.contact-left p {
    color: #5b4a70;
    margin-bottom: 18px;
}

.contact-form {
    background: #fff;
    border-radius: 18px;
    padding: 18px 18px 20px;
    box-shadow: 0 10px 24px rgba(43, 34, 54, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form-title {
    margin: 0 0 6px;
    color: #6a4c93;
    font-family: "Playfair Display", serif;
}

.contact-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b3b63;
}

.contact-form input,
.contact-form textarea {
    border-radius: 10px;
    border: 1px solid #d5c3f2;
    padding: 8px 10px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #6a4c93;
    box-shadow: 0 0 0 2px rgba(199, 125, 255, 0.25);
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #5b4a70;
}

.checkbox input {
    width: 16px;
    height: 16px;
}

.form-feedback {
    font-size: 0.85rem;
    margin-top: 4px;
}

/* CONTACT RIGHT */
.contact-right h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #3b264f;
}

.contact-list {
    list-style: none;
    margin-bottom: 14px;
}

.contact-list li {
    margin-bottom: 6px;
    color: #5b4a70;
}

.contact-list a {
    color: #6a4c93;
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

.contact-note {
    font-size: 0.9rem;
    color: #6a5a82;
}

/* FOOTER */
.main-footer {
    text-align: center;
    padding: 18px 8%;
    font-size: 0.85rem;
    color: #7a6a8f;
    border-top: 1px solid #e6dff5;
    background: #faf7fc;
}

/* RESPONSIVE */
@media (max-width: 1280px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
        gap: 36px;
    }

    .shop-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .main-header {
        padding-inline: 5%;
    }

    .section,
    .shop {
        padding-inline: 5%;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 32px;
        min-height: auto;
    }

    .hero-content {
        max-width: 760px;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content p {
        max-width: 100%;
        font-size: 1rem;
    }

    .hero-showcase {
        width: 100%;
    }

    .carousel-window {
        min-height: 0;
        padding: 16px;
    }

    .carousel-track {
        min-height: 0;
    }

    .carousel-slide {
        position: relative;
        inset: auto;
        display: none;
        grid-template-columns: 1fr;
        gap: 18px;
        opacity: 1;
        transform: none;
        pointer-events: none;
    }

    .carousel-slide.is-active {
        display: grid;
        pointer-events: auto;
    }

    .carousel-image-wrap {
        min-height: 360px;
        height: 360px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(145deg, #fffdfc, #f6f0ff);
    }

    .carousel-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        background: transparent;
    }

    .carousel-copy {
        padding: 0 8px 8px;
    }

    .carousel-copy h2 {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }

    .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .about,
    .contact,
    .hero {
        grid-template-columns: 1fr;
    }

    .main-header {
        padding-inline: 5%;
    }

    .section {
        padding-inline: 5%;
    }

    .carousel-window {
        min-height: 560px;
    }

    .carousel-track {
        min-height: 524px;
    }

    .carousel-slide {
        grid-template-columns: 1fr;
    }

    .carousel-image-wrap {
        min-height: 300px;
        height: 300px;
    }

    .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact {
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .shop-header {
        margin-bottom: 24px;
    }

    .shop-title-row {
        gap: 14px;
        align-items: flex-start;
    }

    .shop-title-image {
        width: 110px;
        height: 110px;
    }

    .shop h2 {
        font-size: 1.9rem;
    }

    .shop-subtitle {
        font-size: 0.95rem;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .main-nav a {
        margin-left: 12px;
        font-size: 0.85rem;
    }

    .main-header {
        flex-direction: column-reverse;
        gap: 10px;
        text-align: center;
    }

    .logo {
        flex-direction: column;
        gap: 8px;
        font-size: 1.2rem;
    }

    .logo-img {
        width: 58px;
        height: 58px;
    }

    .hero {
        gap: 28px;
        min-height: auto;
    }

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

    .carousel-window {
        padding: 20px;
        min-height: 0;
        overflow: visible;
        border-radius: 18px;
        box-shadow: 0 10px 24px rgba(43, 34, 54, 0.06);
    }

    .carousel-track {
        min-height: 0;
    }

    .carousel-slide {
        position: relative;
        inset: auto;
        display: none;
        opacity: 1;
        transform: none;
        pointer-events: none;
        gap: 16px;
    }

    .carousel-slide.is-active {
        display: grid;
        pointer-events: auto;
    }

    .carousel-image-wrap {
        min-height: 220px;
        height: 220px;
        aspect-ratio: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border-radius: 14px;
        background: linear-gradient(145deg, #fffdfc, #f6f0ff);
    }

    .carousel-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        background: transparent;
    }

    .carousel-copy {
        justify-content: flex-start;
        padding: 0 4px 4px;
        gap: 8px;
    }

    .carousel-tag {
        margin-bottom: 0;
        font-size: 0.72rem;
        padding: 5px 9px;
    }

    .carousel-copy h2 {
        font-size: 1.05rem;
        line-height: 1.2;
        margin-bottom: 0;
    }

    .carousel-copy p {
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .btn-paypal {
        margin-top: 4px;
        padding: 9px 14px;
        font-size: 0.88rem;
    }

    .carousel-arrow {
        width: 34px;
        height: 34px;
    }

    .shop-grid {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .product-card {
        width: 100%;
        padding: 20px 16px;
    }

    .product-img {
        height: 220px;
    }

    .product-slider-arrow {
        width: 36px;
        height: 36px;
    }

    .contact-form {
        padding: 16px;
    }
}
