DeMuller | Celler de vins
#site-search-wrapper { position: relative; display: flex; justify-content: center; align-items: center; line-height: 1; height: 100%; z-index: 1000; } /* Botón de la lupa */ #site-search-button { background: transparent; border: 0; cursor: pointer; padding: 0; line-height: 1; font-size: 1rem; display: flex; align-items: center; justify-content: center; } /* Aseguramos que el icono se vea blanco SIEMPRE */ #site-search-button svg { width: 20px; height: 20px; stroke: #fff; /* línea blanca */ color: #fff; fill: transparent; } #site-search-button:hover svg { opacity: .8; } /* Caja desplegable */ #site-search-form { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); display: none; align-items: center; gap: .5rem; min-width: 240px; background: #ffffff; color: #000000; padding: .75rem 1rem; border-radius: .5rem; box-shadow: 0 20px 40px rgba(0,0,0,.16); border: 1px solid rgba(0,0,0,.07); font-size: 0.9rem; z-index: 99999; } #site-search-form.active { display: flex; } /* Campo de texto */ #site-search-input { appearance: none; border: 1px solid rgba(0,0,0,.15); background: #fff; color: #000; border-radius: .4rem; padding: .5rem .75rem; width: 100%; font-size: inherit; line-height: 1.2; min-width: 0; } #site-search-input:focus { outline: 2px solid rgba(0,0,0,.3); outline-offset: 0; } /* Botón enviar */ #site-search-submit { background: #000; /* fondo oscuro */ color: #fff; /* texto/icono blanco */ border: 0; border-radius: .4rem; padding: .5rem .6rem; line-height: 1; cursor: pointer; font-size: .8rem; display: flex; align-items: center; justify-content: center; min-width: 2rem; min-height: 2rem; } #site-search-submit svg { width: 16px; height: 16px; stroke: #fff; /* flecha blanca */ color: #fff; fill: transparent; } #site-search-submit:hover { opacity: .8; }
(function(){ const toggle = document.getElementById('site-search-button'); const form = document.getElementById('site-search-form'); const input = document.getElementById('site-search-input'); if (!toggle || !form) return; // abrir / cerrar toggle.addEventListener('click', function(e) { e.stopPropagation(); form.classList.toggle('active'); if (form.classList.contains('active') && input) { input.focus(); } }); // cerrar clicando fuera document.addEventListener('click', function(e) { if (!form.contains(e.target) && !toggle.contains(e.target)) { form.classList.remove('active'); } }); // cerrar con ESC document.addEventListener('keydown', function(e) { if (e.key === 'Escape') { form.classList.remove('active'); } }); })();

PROCESSOS D'ELABORACIÓ

Vi de Missa

Vi de misa

Els nostres Vi de Missa

Poseu-vos en contacte amb nosaltres

Afegiu aquí el vostre text d'encapçalament