/* Variables */
:root {
    --color-primary: #4e2d74;
    --color-secondary: #f4c430;
    --color-accent: #a758c2;
    --color-green: #7cc46a;
    --color-dark: #2d2306;
    --color-white: #ffffff;
    --color-light: #f1f1f1;
    --color-grey: #383838;
}

/* Base Styles - Match original exactly */
body {
    font-family: "cndlr", sans-serif;
    font-size: 100%;
    color: var(--color-primary);
    margin: 0;
    padding: 0;
}

b, strong {
    font-weight: normal;
    font-style: normal;
    font-family: "cndlr", sans-serif;
}

a:link,
a:visited {
    text-decoration: none;
}

a:active,
a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    font-weight: normal;
    font-style: normal;
    margin: 0;
    padding: 0;
}

h4 {
    font-weight: normal;
    font-style: normal;
    margin: 0;
    padding: 0;
}

/* Layout Utilities */
.cntr {
    width: 98%;
    max-width: 1200px;
    margin: 0 auto;
}

.cntrs {
    width: 98%;
    max-width: 900px;
    margin: 0 auto;
}

.cntrxs {
    width: 98%;
    max-width: 700px;
    margin: 0 auto;
}

/* Typography - Match original exactly */
h1.tit {
    font-family: "llss", sans-serif;
    font-size: 3.4em;
    margin: 0 0 2% 0;
    color: var(--color-primary);
    font-weight: normal;
}

h2.sbt {
    font-size: 1.8em;
    line-height: 1.4em;
    color: var(--color-primary);
    font-weight: normal;
    font-family: "llss", sans-serif;
}

.txt {
    color: var(--color-primary);
    font-size: 1.2em;
}

.txt p {
    margin: 0.7% 0;
}

.txtaa {
    margin: 4% 0;
    color: var(--color-primary);
    text-align: center;
    text-transform: uppercase;
    font-size: 1.4em;
}

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 3;
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #ffffff 30%,
        #f4c430 30%,
        #f4c430 80%,
        transparent 80%,
        transparent 100%
    );
}

#hdr {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#hdr-lg-c {
    width: 18%;
    padding: 1% 0 0 0;
}

#hdr-lg {
    width: 100%;
    background: url(https://www.agricampingzafferano.it/immagini/lo-zafferano.png) center center/cover no-repeat;
}

#hdr-lg::before {
    content: "";
    padding: 36.6667% 0 0 0;
    display: block;
}

#hdr-mns {
    width: 80%;
}

#hdr-tp {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#hdr-tp::before {
    content: "";
    padding: 3% 0 0 0;
    display: block;
}

#hdr-tp h1 {
    color: #000;
    font-size: 0.9em;
    display: inline-block;
    vertical-align: middle;
    width: 84%;
    text-transform: uppercase;
    font-family: "cndlr", sans-serif;
}

/* Language Switcher */
#nwLng {
    width: 14%;
}

#nwLng ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: flex;
}

.lngFlg {
    width: 24px;
    height: auto;
}

/* Desktop Menu */
#dMenu {
    text-align: right;
}

#dMenu ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
}

#dMenu li {
    display: inline-block;
    margin: 0 0 0 20px;
}

#dMenu li a {
    text-decoration: none;
    font-size: 1.4em;
    color: var(--color-primary);
    padding: 0px 0px 0px 0px;
    font-family: "cndlr", sans-serif;
}

#dMenu li a.mnSel {
    color: #fff;
}

#dMenu li a:hover,
#dMenu li a:active,
#dMenu li a.mnSel:active,
#dMenu li a.mnSel:hover {
    color: #fff;
}

/* Hero Section */
#vtrn {
    position: relative;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-track {
    position: relative;
    width: 100%;
    padding-top: 32%;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slider-image.active {
    opacity: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.6);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 2;
}

.slider-btn:hover {
    background: var(--color-white);
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border: none;
    padding: 0;
}

.slider-dot.active {
    background: var(--color-white);
}

#vtrn-c {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    width: 100%;
    height: 90%;
    justify-content: flex-end;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

#vtrn-c h1 {
    font-family: "cndlb", sans-serif;
    color: var(--color-white);
    font-size: 2.2em;
}

/* Contact Bar */
#cnsl {
    width: 100%;
    background: var(--color-accent);
    margin: 0 auto;
    text-align: center;
}

.cnsl-pdd {
    display: inline-block;
    text-align: left;
    padding: 1.5% 0 2% 0;
    color: var(--color-white);
}

.contact-form-wrapper,
.newsletter-form-wrapper {
    display: inline-block;
    vertical-align: middle;
}

.date-range {
    display: inline-flex;
    gap: 15px;
    vertical-align: middle;
}

.form-group {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    margin-right: 15px;
}

.form-group label {
    color: #fff;
    font-family: "cndlr", sans-serif;
    text-transform: uppercase;
    font-size: 0.8em;
}

.date-input,
.email-input {
    background: #fff;
    height: 36px;
    font-size: 1em;
    padding: 0 8px;
    border: none;
    font-family: "cndlr", sans-serif;
}

.separator {
    display: inline-block;
    vertical-align: bottom;
    padding: 3% 10px;
    background: url(https://www.agricampingzafferano.it/immagini/pxl-w.jpg) center top repeat-y;
}

/* Buttons - Match original button classes */
.btn {
    display: inline-block;
    vertical-align: top;
    padding: 6px 20px 4px 20px;
    margin: 6% auto 0 auto;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.1em;
    font-family: "cndlr", sans-serif;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn:hover,
.btn:active {
    background: #f4c430;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
}

.btn-secondary {
    background: #fff;
    color: var(--color-primary);
}

.btn-tertiary {
    background: #fff;
    color: #2d2306;
}

/* Sections */
section {
    padding: 6% 0;
}

.sct-w {
    text-align: center;
}

.sct-w h1.tit,
.sct-w h2.sbt {
    color: var(--color-primary);
}

.sct-wb {
    background: #fff;
    text-align: center;
}

.sct-wb h1.tit {
    color: #2d2306;
}

.sct-wb h2.sbt {
    color: #2d2306;
}

.sct-wb .txt {
    color: #2d2306;
    margin: 4% 0 0 0;
}

.sct-grn {
    background: var(--color-green);
    text-align: center;
}

.sct-grn h1.tit,
.sct-grn h2.sbt,
.sct-grn .txt {
    color: var(--color-white);
}

/* Gallery Grid */
.md6c {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 4% 0 0 0;
    flex-wrap: wrap;
}

.gallery-item {
    background: #f1f1f1;
    width: 15%;
    display: inline-block;
    vertical-align: top;
    position: relative;
    margin: 10px 0;
    cursor: pointer;
}

.gallery-item::before {
    content: "";
    display: block;
    padding: 100% 0 0;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Green Stop Section */
.sct-gs24 {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #127433;
    border-bottom: 1px solid #127433;
    padding: 20px 0;
    font-weight: bold;
    margin: 4% auto;
    gap: 20px;
}

.sct-gs24 a {
    color: #e41514;
}

/* Pilgrim Route Section */
#hme-vdc-c {
    display: flex;
    align-items: center;
    gap: 30px;
}

#hme-vdc-f {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: url(https://www.agricampingzafferano.it/immagini/via-della-costa.png) center center/contain no-repeat;
}

#hme-vdc-t {
    flex: 1;
}

/* Partners */
.partners-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 4% 0;
}

#ftr-fb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

#ftr-nts {
    text-align: center;
    font-size: 0.8em;
    padding: 20px;
    border-top: 1px solid #ccc;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal[hidden] {
    display: none !important;
}

.modal-content {
    background: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--color-accent);
}

.modal .form-group {
    width: 100%;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.modal .form-group input,
.modal .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    font-family: "cndlr", sans-serif;
}

.modal .checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.feedback-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

/* Map */
#map-canvas {
    height: 300px;
    width: 100%;
    margin: 20px 0;
}

/* Mobile Menu Button (desktop hidden) */
#hd-nav-ico {
    display: none;
}